| title | Interpreting the code quality results for your repository | ||
|---|---|---|---|
| shortTitle | Interpret results | ||
| allowTitleToDifferFromFilename | true | ||
| intro | View {% data variables.product.prodname_code_quality %} findings for your default branch. | ||
| versions |
|
||
| product | {% data reusables.gated-features.code-quality-availability %} | ||
| permissions | {% data reusables.permissions.code-quality-see-repo-findings %} | ||
| contentType | how-tos | ||
| redirect_from |
|
||
| category |
|
{% data reusables.code-quality.code-quality-preview-note %}
- {% data variables.product.prodname_code_quality_short %} is enabled, see AUTOTITLE.
{% data reusables.code-quality.dashboard-navigation-repo %} {% data reusables.code-quality.dashboard-all-findings %}
Alternatively, if you want to view AI-powered findings for the most recently changed files, see AUTOTITLE.
The "{% data variables.code-quality.all_findings %}" dashboard shows all the results found by {% data variables.product.prodname_codeql %} analysis on the default branch of your repository. This view helps you visualize the full backlog of quality results and prioritize work to fix specific types of problems.
The overview, at the top of the page, summarizes the maintainability and reliability of the codebase.
Underneath the overview, the full list of results is shown with a header with filters that you can use to focus on a specific set of findings. The results are:
- Grouped by the rule that detected each finding
- Within each rule, ordered by file path alphabetically
Explore the results by expanding a rule to list the affected files and clicking on the name of a rule to see full details of the findings.
Code quality results should always be interpreted in the context of your repository. For example:
- Small repositories, or repositories with only a small amount of code written in supported languages, tend to have few results and good ratings.
- Repositories with a lot of generated code may have many maintenance results, lowering the rating for maintainability. This is not a problem if the source code itself is maintainable.
- Large repositories with a lot of code in a fully supported language often have many results even if the majority of the code has good maintainability and reliability standards.
To learn more about the metrics and how the ratings are calculated, see AUTOTITLE.
After code coverage is configured for your repository, the {% data variables.code-quality.pr_commenter %} posts a coverage summary comment on each pull request. The comment includes:
- Branch-vs-default-branch comparison: The aggregate coverage percentage for the pull request branch and the default branch (for example, "65% on pull request branch, 44% on default branch").
- Most impacted files: The 10 files with the largest coverage changes between the default branch and the pull request branch. This list may include files not directly modified in the pull request. New or modified files are ranked above deleted files. Within each group, files are sorted by the absolute change in line coverage weighted by the number of lines in the file, with coverage magnitude and then filename as tiebreakers.
- Per-file breakdown: An expandable section listing each file with its coverage percentage and delta value. A positive delta means the file gained coverage on this branch. A negative delta indicates coverage decreased, which may signal untested code paths introduced by the change.
Use the coverage summary to identify files with low or declining coverage and prioritize review attention on untested changes.
For more information about how the coverage percentage is calculated, see AUTOTITLE.

