From b9af042cb88d71d97ade5234a3eb483352d2ab67 Mon Sep 17 00:00:00 2001 From: Yuku Kotani Date: Mon, 25 Nov 2019 20:38:56 +0900 Subject: [PATCH] Disable auto format for enum entry name for now --- .../ktlint/ruleset/experimental/EnumEntryNameCaseRule.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ktlint-ruleset-experimental/src/main/kotlin/com/pinterest/ktlint/ruleset/experimental/EnumEntryNameCaseRule.kt b/ktlint-ruleset-experimental/src/main/kotlin/com/pinterest/ktlint/ruleset/experimental/EnumEntryNameCaseRule.kt index 1d87489519..33197dbb13 100644 --- a/ktlint-ruleset-experimental/src/main/kotlin/com/pinterest/ktlint/ruleset/experimental/EnumEntryNameCaseRule.kt +++ b/ktlint-ruleset-experimental/src/main/kotlin/com/pinterest/ktlint/ruleset/experimental/EnumEntryNameCaseRule.kt @@ -27,7 +27,7 @@ class EnumEntryNameCaseRule : Rule("enum-entry-name-case") { if (!name.startsWithUpperCase()) { emit( node.startOffset, - ERROR_MESSAGE, true + ERROR_MESSAGE, false ) if (autoCorrect) correct(enumEntry, name) @@ -37,7 +37,7 @@ class EnumEntryNameCaseRule : Rule("enum-entry-name-case") { else if (name.contains("_") && name.containsLowerCase()) { emit( node.startOffset, - ERROR_MESSAGE, true + ERROR_MESSAGE, false ) if (autoCorrect) correct(enumEntry, name)