useless postfix expression isn't useless #7037
Labels
bug
good first issue
Issue that is easy to pickup for people that are new to the project
help wanted
rules
Expected Behavior
Detekt should not complain about postfix expression being useless if it increases a value that lives outside the scope of the method it is used.
Observed Behavior
Detekt complaints that the postfix example below is useless, while in fact it does exactly the job it is suppose to do.
Steps to Reproduce
Context
Not a big issue, just a false negative.
Your Environment
Maven build
detekt plugin in IntelliJ 2.3.0
Kotlin 1.9.22
The text was updated successfully, but these errors were encountered: