CodeCheck Violations is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.
CodeCheck Violations
API ID: CountCCViolLanguages: Any
Targets: Architectures, Files, Functions, Project
The number of CodeCheck Violations.
For example, if the violation browser for a file showed these violations:
- non-void function does not return a value
- Remove unused global object `name`
- Remove unused local object dummy
- 'header.h' file not found.
Then the value of this metric would be 3 because the fourth violation is an analysis error and this metric only counts CodeCheck violations.
See also CountAnalysisError for a count of analysis errors and CountAnalysisWarning for a count of analysis warnings.