Skip to content

Commit d9b19c5

Browse files
committed
Changed ruleset for Enum types.
The ruleset for enum definition "shall" is not useful in many cases where "_UNKNOWN_" and "_OTHER_" is more confusing than helpful. So it should only be a recommendation for future implmentations. Signed-off-by: Thomas Hempen <thomas.hempen@thi.de>
1 parent 8ca260f commit d9b19c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

content/contributing/naming_conventions.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ message EnvironmentalConditions
4343

4444
Enum field names shall use _UPPER_SNAKE_CASE_.
4545
Enum fields shall always be prefixed with the name of the corresponding enum.
46-
The first enum field shall always use the suffix _UNKNOWN_.
47-
The second enum field shall always use the suffix _OTHER_.
46+
The first enum field should always use the suffix _UNKNOWN_.
47+
The second enum field should always use the suffix _OTHER_.
4848

4949
[source,protobuf,linenums]
5050
----

0 commit comments

Comments
 (0)