VarCouldBeVal: don't report assigned property that is defined in anonymous object#3880
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3880 +/- ##
============================================
+ Coverage 83.50% 83.51% +0.01%
- Complexity 3115 3118 +3
============================================
Files 456 456
Lines 9001 8992 -9
Branches 1757 1752 -5
============================================
- Hits 7516 7510 -6
Misses 566 566
+ Partials 919 916 -3
Continue to review full report at Codecov.
|
| * </compliant> | ||
| */ | ||
| @ActiveByDefault(since = "1.16.0") | ||
| @RequiresTypeResolution |
There was a problem hiding this comment.
It seems quite unfortunate that we are now converting plain rules to type resolving rules like such.
I think this PR should still be good to go, but I would want to highlight this for us to favor detekt compiler plugin.
There was a problem hiding this comment.
I believe we could mention this in the release notes but we're good to go imho.
cortinico
left a comment
There was a problem hiding this comment.
Great work, thanks for fixing this 🙏
| } | ||
| } | ||
|
|
||
| describe("properties defined in anonymous object - #3805") { |
There was a problem hiding this comment.
Would you be able to add a test case also for:
#3805 (comment)
Fixes #3805