-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store configuration file path as relative to the project root #135
Comments
used both 1.17.x and 1.18.0 (PR) - saved normally in the .idea/detekt.xml file:
There is only a problem with the file selector settings - it displays the full path to the file, not a relative. But at the same time saved relative path |
It saves them as absolute paths on my computer, but maybe it's because I used the file picker |
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. |
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.
The text was updated successfully, but these errors were encountered: