Enumeration member casing ![cc4m_logo_inline](../images/cc4m_logo.png)
ID | NAMING-13 |
Title | Enumeration members shall be UpperCamelCased and shall not contain numbers. |
Priority | Recommended |
Severity level | 8 |
Description | Members of an enumeration class shall be UpperCamelCased (PascalCased) and shall not contain numbers. |
Rationale | Consistency in enumeration member naming improves readability of the code. |
Avoid:
classdef TheClass < handle
enumeration
chargingFrom0
FULL
end
end
Instead use:
classdef TheClass < handle
enumeration
ChargingFromEmpty
Full
end
end