Pattern: Unused import
Issue: -
Looks for unused imports from other namespaces.
Rule provides the following settings:
searchAnnotations
(defaults tofalse
): enables searching for class names in annotations.ignoredAnnotationNames
: case-sensitive list of annotation names that the rule should ignore (only the name is ignored, annotation content is still searched). Useful for name collisions like@testCase
annotation andTestCase
class.ignoredAnnotations
: case-sensitive list of annotation names that the rule ignore completely (both name and content are ignored). Useful for name collisions like@group Cache
annotation andCache
class.