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
BooleanPropertyNaming reports double for local variables (in some TBD case) #5392
Comments
Putting this code in our test environment doesn't report the same code location twice. |
Yes, but I tried (=false) and it doesn't make a difference: https://github.com/TWiStErRob/net.twisterrob.cinema/blob/db7342d5a0895f93fa595568883165c24f25dc07/Heroku/gradle/plugins/src/main/kotlin/net/twisterrob/cinema/heroku/plugins/DetektPlugin.kt#L27 |
I'm trying to narrow it down:
This is the point where I cannot think of any more simplifications, and no conclusive cause found. Creating minimalish self-contained repro:
Note: I have enabled
|
Based on the repro I did a |
oh, no-repro on rc2 |
Fixed by #5212 which was first available in v1.22.0-RC1 |
Context
Consider code like this (note the inferred types of all
isEmpty()
areBoolean
):Observed Behavior
Notice the line numbers: 18, 19, 21, 18, 19, 21
Expected Behavior
1 report for each local variable.
Steps to Reproduce
Couldn't figure a simple way, so:
gradlew :backend:feed:detektTest
BooleanPropertyNaming
is duplicated, the others are uniqueYour Environment
The text was updated successfully, but these errors were encountered: