question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Store configuration file path as relative to the project root

See original GitHub issue

Right now, as of v1.17.1, the Detekt configuration path is stored as an absolute path. Given that the Detekt IJ plugin settings are per-project, and thus saved in .idea/detekt.xml, this prevents folks from sharing the Detekt plugin configuration with other devs by committing the .idea/detekt.xml file as that contains absolute paths which will only work for one user.

This would easily be solved by using relative paths instead, referred to the project root directory.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rock3rcommented, Aug 17, 2021

Hm it’s the same I’ve done, but I’m on Windows. Maybe that’s the difference

0reactions
rock3rcommented, Aug 7, 2022

I can confirm that the issue is that the IDE expects paths to be stored in POSIX format and will automatically relativize them only if they are in that format. I’m taking care of this as part of the work I am doing for #231 and the larger UI overhaul.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PhpStorm: how to use project root variable or relative path in ...
All Run/Debug configurations are stored inside workspace.xml config file, which is developer-specific and not to be shared via VCS. It's better ...
Read more >
Simple trick to work with relative paths in Python | by Mike Huls
The trick is to define a variable that calculate the absolute path to our root in a file and then import this variable...
Read more >
How to use Relative Paths in Run/Debug Configurations?
In .xml file that stores Mocha run configuration, path to tests dir, etc. is stored relative to project root, using $PROJECT_DIR$ macro:.
Read more >
Relative and absolute paths, in the file system and on the web ...
If the path is built starting from the system root, it is called absolute. If the path is built starting from the current...
Read more >
Relative Paths to Project Resources | ReadyAPI Documentation
${projectDir} – The path to the folder the project is stored in. ${workspaceDir} – The path to the folder containing the workspace file....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found