https://kotlinlang.org logo
#detekt
Title
# detekt
z

zmunm

06/22/2021, 1:50 AM
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

chao

06/22/2021, 2:48 AM
Do you mean that idea plugin does not enable type resolution, so it is raising false positives for
UnusedPrivateMember
?
z

zmunm

06/22/2021, 2:59 AM
Exactly, Is there any way to activate it? You can see it in this test case.
does not report used plus operator - #1354
c

chao

06/22/2021, 3:08 AM
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

gammax

06/22/2021, 8:57 AM
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
3 Views