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
Add ignoreAnnotatedFunctions to TooManyFunctions #6875
Add ignoreAnnotatedFunctions to TooManyFunctions #6875
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6875 +/- ##
=========================================
Coverage 84.12% 84.12%
+ Complexity 3932 3928 -4
=========================================
Files 577 577
Lines 13180 13180
Branches 2488 2489 +1
=========================================
Hits 11088 11088
Misses 851 851
Partials 1241 1241 ☔ View full report in Codecov by Sentry. |
...-complexity/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/complexity/TooManyFunctions.kt
Show resolved
Hide resolved
...-complexity/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/complexity/TooManyFunctions.kt
Show resolved
Hide resolved
|
...-complexity/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/complexity/TooManyFunctions.kt
Fixed
Show fixed
Hide fixed
This reverts commit 3d16e57.
@@ -100,3 +100,15 @@ private fun FooLazyColumnPreview() { // Violation for FooLazyColumnPreview() | |||
#### Recommended configuration | |||
|
|||
* Set `ignoreAnnotated` to `['Preview']` | |||
* |
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.
This *
should be removed
* Add ignoreAnnotatedFunctions to TooManyFunctions * Add TooManyFunctions recommendation to compose docs * Ensure Preview annotation in tests is declared * Simplify hasAnnotation check * Revert "Simplify hasAnnotation check" This reverts commit 3d16e57.
* Add ignoreAnnotatedFunctions to TooManyFunctions * Add TooManyFunctions recommendation to compose docs * Ensure Preview annotation in tests is declared * Simplify hasAnnotation check * Revert "Simplify hasAnnotation check" This reverts commit 3d16e57.
* Add ignoreAnnotatedFunctions to TooManyFunctions * Add TooManyFunctions recommendation to compose docs * Ensure Preview annotation in tests is declared * Simplify hasAnnotation check * Revert "Simplify hasAnnotation check" This reverts commit 3d16e57.
This fixes #6516