Use annotations to configure rules in rules-naming#3769
Use annotations to configure rules in rules-naming#3769picklebento merged 18 commits intodetekt:mainfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3769 +/- ##
=========================================
Coverage 83.52% 83.52%
Complexity 2915 2915
=========================================
Files 452 452
Lines 8765 8767 +2
Branches 1665 1665
=========================================
+ Hits 7321 7323 +2
Misses 542 542
Partials 902 902
Continue to review full report at Codecov.
|
| const val VARIABLE_PATTERN = "variablePattern" | ||
| const val PRIVATE_VARIABLE_PATTERN = "privateVariablePattern" | ||
| const val EXCLUDE_CLASS_PATTERN = "excludeClassPattern" |
There was a problem hiding this comment.
Do we still need these constants?
There was a problem hiding this comment.
Yes, they are used in NamingConventionCustomPatternTest which tests multiple rules at the same time and I think it would lead to confusion if they were inlined there. This way you at least have a chance to see where they are coming from.
There was a problem hiding this comment.
We should simplify split that test in multiple ones. But that's completely out of the scope of this PR.
| const val VARIABLE_PATTERN = "variablePattern" | ||
| const val PRIVATE_VARIABLE_PATTERN = "privateVariablePattern" | ||
| const val EXCLUDE_CLASS_PATTERN = "excludeClassPattern" |
There was a problem hiding this comment.
We should simplify split that test in multiple ones. But that's completely out of the scope of this PR.
|
@BraisGabin Let's use #3784 to document configuration naming / deprecations |
This belongs to #3670 and replaces all configuration kdoc tags in
rules-namingwith annotations.