-
-
Notifications
You must be signed in to change notification settings - Fork 768
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
Support guard clause exclusion for ThrowsCount rule #2025
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2025 +/- ##
===========================================
+ Coverage 80.68% 80.7% +0.02%
- Complexity 1985 1991 +6
===========================================
Files 329 329
Lines 5591 5597 +6
Branches 1021 1022 +1
===========================================
+ Hits 4511 4517 +6
Misses 539 539
Partials 541 541
Continue to review full report at Codecov.
|
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.
I like it, thanks!
val count = function | ||
.collectDescendantsOfType<KtThrowExpression>() | ||
.filterNot { | ||
excludeGuardClauses && it.isGuardClause() |
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.
nit: can we put this line on the same as filterNot ?
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.
Done.
* Support guard clause exclusion for ThrowsCount rule * Fix feedback issues
* Support guard clause exclusion for ThrowsCount rule * Fix feedback issues
PR for #2006.