https://kotlinlang.org logo
Title
p

Paul Woitaschek

09/26/2019, 12:59 PM
If a class is only used from a test, the unused symbol inspection does not mark the class as unsued. Is it possible to fix that somehow?
b

Bruno_

09/26/2019, 1:29 PM
there's a
@file:Suppress("unused")
not sure how to apply it to the whole module tho
as there's no thing like
AnnotationTarget.module
or
AnnotationTarget.pakcage
p

Paul Woitaschek

09/26/2019, 1:31 PM
No I don't want to suppress unused usages. Currently I don't find unused symbols if they are referenced from tests only
b

Bruno_

09/26/2019, 1:50 PM
I misunderstood you, well I don't think that's possible
s

SiebelsTim

09/26/2019, 2:33 PM
Mark the test folder as excluded temporarily. Doesn't have a nice experience, however it might help you achieve what you want
e

Eugen Martynov

09/26/2019, 2:38 PM
Thanks for the suggestion 🙂