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.
|
…/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
IgnoreReturnValuerule:restrictToAnnotatedMethods: trueto toggle the analysis only on annotated methodsreturnValueAnnotations: ["*.CheckReturnValue", "*.CheckResult"]to provide a list of annotations to use during the inspection.