-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
UnusedPrivateClass: fix false negative with import directives #2817
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2817 +/- ##
============================================
+ Coverage 80.52% 80.54% +0.01%
Complexity 2335 2335
============================================
Files 387 387
Lines 6993 6994 +1
Branches 1269 1269
============================================
+ Hits 5631 5633 +2
Misses 726 726
+ Partials 636 635 -1
Continue to review full report at Codecov.
|
e80095b
to
87fe46c
Compare
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 for the fix 👍
} | ||
""" | ||
val findings = UnusedPrivateClass().lint(code) | ||
assertThat(findings).hasSize(1) |
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.
Please add also a:
assertThat(findings).hasSourceLocation(xxx, yyy)
This will make sure the rule is reporting the correct occurrence.
Fixes #2816