-
-
Notifications
You must be signed in to change notification settings - Fork 821
Fix NestedBlockDepth false negative #2086
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 @@
## master #2086 +/- ##
============================================
+ Coverage 80.86% 80.86% +<.01%
Complexity 2010 2010
============================================
Files 336 336
Lines 5779 5780 +1
Branches 1060 1060
============================================
+ Hits 4673 4674 +1
Misses 546 546
Partials 560 560
Continue to review full report at Codecov.
|
...t-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/complexity/NestedBlockDepthSpec.kt
Outdated
Show resolved
Hide resolved
...t-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/complexity/NestedBlockDepthSpec.kt
Outdated
Show resolved
Hide resolved
|
Thanks again for the great PR.It kinda feels wrong to hold back all the good improvements and fixes from the community :/. I try to finish #1921 this WE and release a new version soon. |
…/complexity/NestedBlockDepthSpec.kt Co-Authored-By: M Schalk <[email protected]>
…/complexity/NestedBlockDepthSpec.kt Co-Authored-By: M Schalk <[email protected]>
|
Done. Sorry for the late update. Busy days. |
* Fix NestedBlockDepth * Update detekt-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/complexity/NestedBlockDepthSpec.kt Co-Authored-By: M Schalk <[email protected]> * Update detekt-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/complexity/NestedBlockDepthSpec.kt Co-Authored-By: M Schalk <[email protected]>
* Fix NestedBlockDepth * Update detekt-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/complexity/NestedBlockDepthSpec.kt Co-Authored-By: M Schalk <[email protected]> * Update detekt-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/complexity/NestedBlockDepthSpec.kt Co-Authored-By: M Schalk <[email protected]>
Fix #2085
I also improve the tests a bit simplifing the code and using
compileAndLint()