-
-
Notifications
You must be signed in to change notification settings - Fork 821
FunctionMaxLength false positive for overridden methods #5590 #5599
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #5599 +/- ##
===========================================
+ Coverage 0 85.90% +85.90%
- Complexity 0 3645 +3645
===========================================
Files 0 516 +516
Lines 0 12191 +12191
Branches 0 2175 +2175
===========================================
+ Hits 0 10473 +10473
- Misses 0 628 +628
- Partials 0 1090 +1090
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
BraisGabin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM
I see that you copied the description of this parameter from other rules so we should merge this as it is. But probably we could improve the description on other pr. More than function with the override modifier I would call them override functions.
|
Fixes #5590 |
...t-rules-naming/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/naming/VariableMaxLength.kt
Outdated
Show resolved
Hide resolved
|
@BraisGabin putting "fixes" in a comment, doesn't trigger GitHub to pick it up, it has to be in OP, or manually linked in the sidebar. (I added it manually) |
Following rules were reworked to always ignore overriden methods/properties: - `FunctionMaxLength` - `FunctionMinLength` - `VariableMaxLength` - `VariableMinLength`
By analogy with other naming rules a new
ignoreOverriddenproperty with default valuetruewas introduced for following rules:FunctionMaxLengthFunctionMinLengthVariableMaxLengthVariableMinLength