Short global name¶
ID: cpp/short-global-name Kind: problem Severity: recommendation Precision: very-high Tags: - maintainability Query suites: - cpp-security-and-quality.qls
This rule finds global variables which have a name of length three characters or less. It is particularly important to use descriptive names for global variables. Use of a clear naming convention for global variables helps document their use, avoids pollution of the namespace and reduces the risk of shadowing with local variables.
Review the purpose of the each global variable flagged by this rule and update each name to reflect the purpose of the variable.