Skip to content

Commit

Permalink
Disable auto format for enum entry name for now
Browse files Browse the repository at this point in the history
  • Loading branch information
yukukotani committed Nov 25, 2019
1 parent 4175378 commit b9af042
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit b9af042

Please sign in to comment.