From 58cb8fa9b7d62ff5a39e1efe5e3d0e18fabea405 Mon Sep 17 00:00:00 2001 From: soWhoAmI Date: Tue, 29 Dec 2020 16:00:45 +0300 Subject: [PATCH] feature/more-prefixes-boolean-methods(#417) ### What's done: * Added more prefixes ### Need to be done: * Configuration option * More tests --- .../kotlin/org/cqfn/diktat/ruleset/rules/IdentifierNaming.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/IdentifierNaming.kt b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/IdentifierNaming.kt index a11a038431..145ee19869 100644 --- a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/IdentifierNaming.kt +++ b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/IdentifierNaming.kt @@ -432,7 +432,7 @@ class IdentifierNaming(private val configRules: List) : Rule("ident // FixMe: this should be moved to properties val oneCharIdentifiers = setOf("i", "j", "k", "x", "y", "z") - val booleanMethodPrefixes = setOf("has", "is") + val booleanMethodPrefixes = setOf("has", "is", "are", "have", "should") val confusingIdentifierNames = setOf("O", "D", "I", "l", "Z", "S", "e", "B", "h", "n", "m", "rn") } }