Skip to content

Files

Latest commit

 

History

History
23 lines (14 loc) · 521 Bytes

UseArrayLiteralsInAnnotations.md

File metadata and controls

23 lines (14 loc) · 521 Bytes

Pattern: Use of arrayOf(...) syntax

Issue: -

Description

This rule detects annotations which use the arrayOf(...) syntax instead of the array literal [...] syntax. The latter should be preferred as it is more readable.

Example of incorrect code:

@@PositiveCase(arrayOf("..."))

Example of correct code:

@@NegativeCase(["..."])

Further Reading