Files
detekt/detekt-rules-style
Dominic Zirbel 2e2d4711c2 UnnecessaryInnerClass: add test for safe qualified expressions (#4864)
Add a unit test for a bug in which safe qualified references to a nullable field
in the parent class (i.e. as `?.`) would not be marked as warnings in release
1.20.0. This issue has been inadvertently fixed by
https://github.com/detekt/detekt/pull/4738, but adding a unit test will guard
against future regressions.

I was able to confirm this test fails by checking out the 1.20.0 tag and running
the unit test; against that tag the fix was to override the
visitSafeQualifiedExpression() function with the same logic as
visitCallExpression().
2022-05-27 09:16:34 +02:00
..