Skip to content
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

Ignore private operators when we don't have ContextBingding in UnusedPrivateMember #4441

Merged
merged 1 commit into from Jan 8, 2022

Conversation

BraisGabin
Copy link
Member

@BraisGabin BraisGabin commented Jan 2, 2022

Maintaining mixed rules is really painful: #2994.

Note: the change seems big but I just added the filterNot on the top. The problem is that with the reformat git thinks that all is new.

fixes #4242
#4435 is related. This will fix the false positives without type solving. But we still have false positives with type solving.

@codecov
Copy link

codecov bot commented Jan 2, 2022

Codecov Report

Merging #4441 (5ae8347) into main (eb0f1cf) will increase coverage by 0.00%.
The diff coverage is 92.30%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #4441   +/-   ##
=========================================
  Coverage     84.32%   84.33%           
  Complexity     3293     3293           
=========================================
  Files           472      472           
  Lines         10522    10525    +3     
  Branches       1885     1886    +1     
=========================================
+ Hits           8873     8876    +3     
  Misses          671      671           
  Partials        978      978           
Impacted Files Coverage Δ
...turbosch/detekt/rules/style/UnusedPrivateMember.kt 92.81% <92.30%> (+0.13%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb0f1cf...5ae8347. Read the comment docs.

@BraisGabin BraisGabin added this to the 1.20.0 milestone Jan 3, 2022
@BraisGabin BraisGabin merged commit 83cdc23 into main Jan 8, 2022
@BraisGabin BraisGabin deleted the fix-4242 branch January 8, 2022 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UnusedPrivateMember false positive with operator in
3 participants