Skip to content

Files

Latest commit

 

History

History
26 lines (17 loc) · 508 Bytes

ForbiddenAnnotation.md

File metadata and controls

26 lines (17 loc) · 508 Bytes

Pattern: Forbidden annotation

Issue: -

Description

This rule allows to set a list of forbidden annotations. This can be used to discourage the use of language annotations which do not require explicit import.

Example of incorrect code:

@@SuppressWarnings("unused")
class SomeClass()

Example of correct code:

@@Suppress("unused")
class SomeClass()

Further Reading