This article provides definitions for the metrics and scores used by Code Quality.
You can see the rule-based results for your repository on your Security and quality tab, in the Standard findings tab under " Code quality".
Metric definitions
The following table provides definitions for each metric that is reported for your repository.
Severity levels
Severity levels are used to indicate the potential impact or urgency of a code quality finding. They help users prioritize remediation efforts and communicate risks to stakeholders. Severity is determined by the rule that detected the issue, following conventions from CodeQL and industry standards.
| Severity | Definition |
|---|---|
| Error | Indicates a high-severity issue that is likely to cause bugs, failures, or major maintainability risks. |
| Warning | Indicates a moderate-severity issue that may impact code quality or reliability, but is not immediately critical. |
| Note | Indicates a low-severity issue, minor improvement, or recommendation. These findings are useful for ongoing code health and maintainability. |
Scores definitions
These scores are used to summarize the overall reliability and maintainability of a repository based on the severity of rule-based results found by CodeQL scans of the full default branch:
Code coverage
For details about how Code Quality measures and reports code coverage, see Code coverage reference.
