-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from yoheimuta/enumNamesUpperCamelCase-fixer
feat: Support a fixer for EnumNamesUpperCamelCase
- Loading branch information
Showing
13 changed files
with
290 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
syntax = "proto3"; | ||
|
||
enum enum { | ||
option allow_alias = true; | ||
UNKNOWN = 0; | ||
STARTED = 1; | ||
RUNNING = 2 [(custom_option) = "hello world"]; | ||
} | ||
|
||
enum Enum_allowing_alias { | ||
option allow_alias = true; | ||
UNKNOWN = 0; | ||
STARTED = 1; | ||
RUNNING = 2 [(custom_option) = "hello world"]; | ||
} | ||
|
||
enum enumAllowing { | ||
option allow_alias = true; | ||
UNKNOWN = 0; | ||
STARTED = 1; | ||
RUNNING = 2 [(custom_option) = "hello world"]; | ||
} | ||
|
23 changes: 23 additions & 0 deletions
23
_testdata/rules/enumNamesUpperCamelCase/upperCamelCase.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
syntax = "proto3"; | ||
|
||
enum Enum { | ||
option allow_alias = true; | ||
UNKNOWN = 0; | ||
STARTED = 1; | ||
RUNNING = 2 [(custom_option) = "hello world"]; | ||
} | ||
|
||
enum EnumAllowingAlias { | ||
option allow_alias = true; | ||
UNKNOWN = 0; | ||
STARTED = 1; | ||
RUNNING = 2 [(custom_option) = "hello world"]; | ||
} | ||
|
||
enum EnumAllowing { | ||
option allow_alias = true; | ||
UNKNOWN = 0; | ||
STARTED = 1; | ||
RUNNING = 2 [(custom_option) = "hello world"]; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.