Hi In detekt idea plugin, operator function consta...
# detekt
z
Hi In detekt idea plugin, operator function constantly raises
UnusedPrivateMember
I checked that the relevant content has already been regressed, but how about skipping the operator if there is no type resolution? In idea plugin, false positives seem to have a greater effect than ignore
c
Do you mean that idea plugin does not enable type resolution, so it is raising false positives for
UnusedPrivateMember
?
z
Exactly, Is there any way to activate it? You can see it in this test case.
does not report used plus operator - #1354
c
Just read the code, it would not be an easy task to enable type resolution, because pure jvm, android, multiplatform projects require different classpaths. I would open an issue for the detekt plugin for now.
👍 1
g
I believe the problem here is still those rules with “mixed” behavior: https://github.com/detekt/detekt/issues/2994 The IntelliJ plugin exposes this problem as rules are running without type resolution