Extend analysis scope of java:S1128 (unnecessary imports) - test scope

The rule “Unnecessary imports should be removed” (java:S1128) is currently applied only to main sources (src/main/java).
It would be nice to be able to enable it also for test sources, because unnecessary imports in tests are as useless as in main code.

Hello @lrozenblyum,

Your suggestion is a particular case of this one:

There is certainly not only java:S1128 which would be valuable for tests.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.