Contents > C: List of Design Rules > C.6 Parameter Rules

C.6 Parameter Rules

Rule: UnnamedCategory: Completeness
Severity: 1-highApplies to: all areas
Parameter has no name.

Note that this rule does not check return parameters, as they are unnamed in most programming languages.


Rule: NoTypeCategory: Completeness
Severity: 2-medApplies to: all areas
The parameter has no specified type.
  • See also rule NoType for attributes.


Rule: KeywordCategory: Naming
Severity: 2-medApplies to: design
Parameter name is a Java or C++ keyword.

Return parameters are not checked, as they are unnamed in many programming languages. Also, some modeling tools assign the name 'return' as default name to return parameters.