Skip to content

Files

Latest commit

 

History

History
24 lines (15 loc) · 669 Bytes

UnnecessaryAnnotationUseSiteTarget.md

File metadata and controls

24 lines (15 loc) · 669 Bytes

Pattern: Unnecessary annotation use-site Target

Issue: -

Description

This rule inspects the use of the Annotation use-site Target. In case that the use-site Target is not needed it can be removed.

Example of incorrect code:

@@property:Inject private val foo: String = "bar" // violation: unnecessary @property:
class Module(@param:Inject private val foo: String) // violation: unnecessary @param:

Example of correct code:

class Module(@Inject private val foo: String)

Further Reading