Skip to content

Files

Latest commit

 

History

History
23 lines (14 loc) · 440 Bytes

BooleanPropertyNaming.md

File metadata and controls

23 lines (14 loc) · 440 Bytes

Pattern: Malformed boolean property name

Issue: -

Description

Reports when a boolean property doesn’t match a pattern.

Example of incorrect code (allowedPattern: '^(is|has|are)'):

val progressBar: Boolean = true

Example of correct code:

val hasProgressBar: Boolean = true

Further Reading