-
-
Notifications
You must be signed in to change notification settings - Fork 757
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
Baseline adds file path instead package #2985
Comments
detekt only works with files, doesn't work with packages. And, for example, Any way... is this |
I have same issue, it troubles me because this path can be different between dev envs and ci/cd |
I've faced with this behavior only on MaximumLineLength rule, another rules works ok number 23 it's just example, it's line with code which reach limits (120 chars) |
It seems that it happens in 1.11.1, in 1.10.0 everything is ok |
Thanks for the report! I will look into this and release a bug fix release asap. |
Expected Behavior
<ID>MaximumLineLength:com.example.app.di.Module.kt:23</ID>
Observed Behavior
<ID>MaximumLineLength:com.example.app.di./Users/nikitakarnaukh/Develop/android/application/example/app/src/main/java/com/example/app/di/Module.kt:23</ID>
Steps to Reproduce
DetektCreateBaselineTask with configured baseline file and with warning in code by rule
MaximumLineLength
addsContext
I can run detekt tasks on another machines(CI/colleges)
Your Environment
CI/local macbook pro 15
The text was updated successfully, but these errors were encountered: