Is there a way to make declarations which are only...
# intellij
g
Is there a way to make declarations which are only used in tests be highlighted as unused? We're actively adding unit tests in our large project and I'm afraid this will result in a lot of unused code in the long term
e
or delete all the tests and see what gets marked (of course you can put the tests back after)
g
I found that the
Unused symbol
inspection has options to only run on production scope and ignore test sources, but it doesn't seem to work:
foo1
is still not detected even though it is only used in test