-
-
Notifications
You must be signed in to change notification settings - Fork 769
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
IgnoreReturnValue: config options #2712
IgnoreReturnValue: config options #2712
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2712 +/- ##
============================================
+ Coverage 80.49% 80.52% +0.03%
- Complexity 2318 2322 +4
============================================
Files 378 378
Lines 6927 6944 +17
Branches 1257 1258 +1
============================================
+ Hits 5576 5592 +16
+ Misses 727 725 -2
- Partials 624 627 +3
Continue to review full report at Codecov.
|
detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/bugs/IgnoredReturnValue.kt
Outdated
Show resolved
Hide resolved
detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/bugs/IgnoredReturnValue.kt
Outdated
Show resolved
Hide resolved
detekt-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/bugs/IgnoredReturnValueSpec.kt
Outdated
Show resolved
Hide resolved
…/bugs/IgnoredReturnValueSpec.kt Co-authored-by: M Schalk <30376729+schalkms@users.noreply.github.com>
…/bugs/IgnoredReturnValue.kt Co-authored-by: Brais Gabín <braisgabin@gmail.com>
Do we know what's happening with the build here? It seems to fail on the compilation of the test snippet. I'm not able to reproduce locally. Moreover I see a failure in
That seems unrelated. |
You should be able to reproduce it with
🤔 Maybe that test is flaky... strange. |
I've already experienced this problem. It could occur because of conflicting |
Follow-up to #2698: adding two config to the
IgnoreReturnValue
rule:restrictToAnnotatedMethods: true
to toggle the analysis only on annotated methodsreturnValueAnnotations: ["*.CheckReturnValue", "*.CheckResult"]
to provide a list of annotations to use during the inspection.