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 Ideally it should be split in |
|
I get it now! Thanks for the explanation. That have sense. |
Fixes #4340