Store configuration file path as relative to the project root
See original GitHub issueRight 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:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hm it’s the same I’ve done, but I’m on Windows. Maybe that’s the difference
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.