-
-
Notifications
You must be signed in to change notification settings - Fork 794
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
UnusedPrivateMember should not report external classes/interfaces #4347
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4347 +/- ##
=========================================
Coverage 84.24% 84.24%
Complexity 3261 3261
=========================================
Files 474 474
Lines 10325 10326 +1
Branches 1826 1827 +1
=========================================
+ Hits 8698 8699 +1
Misses 666 666
Partials 961 961
Continue to review full report at Codecov.
|
🤔 I don't get why things that aren't private are flagged by this rule. I'm wondering if there is an underlying bug here. I mean, why this rule mixes external and private? |
Yup the tests were confusing, I've fixed them. The rule is reporting private members and parameters that are unused and in my tests I accidentally removed the parameters. |
I should be missing something here... What is external class Bugsnag {
companion object {
fun start(value: Int)
fun notify(error: String)
}
} This rule should only flag code that is marked as |
The confusion is that Lines 54 to 56 in 5e34645
Ideally it should be split in |
I get it now! Thanks for the explanation. That have sense. |
Fixes #4340