Skip to content

Commit db8bb43

Browse files
feat: new Coverage and overview metrics (#2590)
* moving all report pages to one single place in the navbar * fix build * fixing repositories page * Update docs/faq/code-analysis/which-metrics-does-codacy-calculate.md Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com> * fix routes * fix table * drafting organization overview doc * adding sections, making anchors work * clean-up + image placeholders * adding images * Update docs/organizations/reporting/organization-overview.md Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com> * Update docs/organizations/reporting/organization-overview.md Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com> * add health image * Update docs/organizations/reporting/organization-overview.md Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com> * Update docs/organizations/reporting/organization-overview.md Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com> * remove overall chart * Duplication + Complexity descriptions * fixing url * add coverage section * Apply suggestions from codacy code review Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com> * download mention * fix url * chatgpt review * Update docs/organizations/reporting/organization-overview.md Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com> * fix table * formatting * Update docs/organizations/reporting/organization-overview.md Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com> * add org level metric definitions * rewrite 100 repos mention * re add coverage img * last gpt review * Apply suggestions from Codacy code review Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com> --------- Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com>
1 parent 61bd2b3 commit db8bb43

7 files changed

Lines changed: 115 additions & 30 deletions
163 KB
Loading
339 KB
Loading
306 KB
Loading
337 KB
Loading
251 KB
Loading
485 KB
Loading
Lines changed: 115 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,149 @@
11
---
2-
description: The Organization overview provides an overview of the repositories belonging to your Git provider organization. Here you can compare their statuses and check for items that require your attention.
2+
description: The Organization overview summarizes repositories in your Git provider organization so you can compare status and quickly identify items that need attention.
33
---
44

55
# Organization overview
66

7-
The **Organization overview** provides an overview of the repositories belonging to your Git provider organization that you [follow on Codacy](../managing-repositories.md). Here you can compare their statuses and check for items that require your attention.
7+
Codacy provides high-level visibility into your organization's code quality, security posture, AI risk, usage, and configuration metrics. The **Organization overview** consolidates these signals in a single view.
88

9-
To access your Organization overview, select an organization from the top navigation bar and select **Overview** on the left navigation sidebar.
9+
The **Organization overview** summarizes repositories in your Git provider organization that you [follow on Codacy](../managing-repositories.md). Use it to compare repository status and identify areas that require action.
1010

11-
Use the drop-down list at the top of the page to filter the information displayed on all dashboard areas based on the repositories that you select. For example, you can use the filter to monitor the quality of the repositories maintained by specific teams or that include certain programming languages, or to ignore legacy repositories that are no longer maintained. The selected repositories are stored in your browser so that the same filter is applied between your visits to the Organization overview page.
11+
To open the Organization overview, select an organization in the top navigation bar, then select **Overview** in the left sidebar.
1212

13-
On the Organization overview you have the following areas to help you monitor your repositories:
13+
![Image of the Organization Overview on the Overview tab](./images/organization-overview.png)
1414

15-
- [Overall quality chart](#overall-quality-chart)
16-
- [Last updated repositories](#last-updated-repositories)
17-
- [Issues metrics](issues-metrics.md)
15+
The Organization overview includes the following tabs:
16+
17+
- [Overview](#overview)
18+
- [Open issues](./issues-metrics.md)
19+
- [Grade](#grade)
20+
- [Complexity](#complexity)
21+
- [Duplication](#duplication)
22+
- [Coverage](#coverage)
23+
- [Codacy usage](./codacy-usage.md)
24+
- [AI Risk Hub](./ai-risk-hub.md)
1825

19-
On this page, you can also see the **Organization setup** area, which provides you with a checklist of items that you should complete to ensure that your organization is set up correctly and that you're getting the most out of Codacy.
26+
<div id="overview-filters">Use the filters at the top of the page to scope all dashboard data by repositories or segments. For example, filter by repositories owned by specific teams, repositories using specific languages, or exclude legacy repositories that are no longer maintained. Filter selections are stored in your browser and persist across visits.</div>
2027

21-
The following sections provide a detailed description of the repository-related dashboard areas.
28+
This page documents the Overview, Grade, Complexity, Duplication, and Coverage sections.
2229

2330
{% include-markdown "../../assets/includes/dashboard-api-report-note.md" %}
2431

25-
## Overall quality chart
32+
## Overview
2633

27-
The **Overall quality** chart compares the repositories that you follow regarding [grade](../../faq/code-analysis/which-metrics-does-codacy-calculate.md#grade), [issues](../../faq/code-analysis/which-metrics-does-codacy-calculate.md#issues), [complex files](../../faq/code-analysis/which-metrics-does-codacy-calculate.md#complexity), [duplication](../../faq/code-analysis/which-metrics-does-codacy-calculate.md#duplication), and [code coverage](../../faq/code-analysis/which-metrics-does-codacy-calculate.md#code-coverage). Each tab displays the average value for the corresponding metric for the last updated repositories.
34+
The Organization overview page includes the following areas to help you monitor repository health:
2835

29-
!!! important
30-
- The overall quality chart calculates metrics and displays data only for the **repositories that you follow** on Codacy. This means that depending on their list of followed repositories, two users can see different results on this chart.
36+
- [Code health and security](#code-health-and-security)
37+
- [Last updated repositories](#last-updated-repositories)
38+
39+
This page also includes the **Organization setup** area, which provides a checklist of recommended actions to ensure your organization is configured correctly and fully using Codacy capabilities.
3140

32-
- The overall quality chart displays information for **at most the last 100 updated repositories**.
41+
<div id="overall-quality-chart"></div>
42+
### Code health and security
3343

34-
![Overall quality chart](images/organization-overview-overall-quality.png)
44+
![Image of Code health and security section](./images/organization-overview-code-health-security.png)
3545

36-
- Hover the mouse pointer over the bars to see the metrics for the corresponding repositories.
37-
- Click the bars to navigate directly to the corresponding repository.
46+
The **Code health and security** area provides an organizational snapshot and highlights key hotspots. It shows open issues, new vs. fixed issues, prevented issues, and complexity, duplication, coverage, and security metrics. Select any metric to open detailed results.
3847

39-
If you have over 8 repositories, the chart displays your repositories grouped by grade or percentage intervals. Click the bars to see and navigate directly to the corresponding repositories.
48+
Some metrics depend on your billing plan and use plan-specific calculations. For details, see the following table:
4049

41-
![Overall quality chart with grouped repositories](images/organization-overview-overall-quality-grouped.png)
50+
| Metric | Availability | How it is calculated |
51+
| ------ | ------------ | -------------------- |
52+
| Open issues, New and Fixed issues, and Prevented issues | Paid plans | [More details](../../faq/code-analysis/which-metrics-does-codacy-calculate.md#issues) |
53+
| Grade | Open source and trial plans | [More details](../../faq/code-analysis/which-metrics-does-codacy-calculate.md#grade) |
54+
| Complexity | All plans | [More details](../../faq/code-analysis/which-metrics-does-codacy-calculate.md#complexity) |
55+
| Duplication | All plans | [More details](../../faq/code-analysis/which-metrics-does-codacy-calculate.md#duplication) |
56+
| Coverage | All plans <a href="#coverage-note"><sup>1</sup></a> | [More details](../../faq/code-analysis/which-metrics-does-codacy-calculate.md#code-coverage) |
57+
| Security | All plans | [More details](../managing-security-and-risk.md) |
4258

43-
!!! tip
44-
If you don't have coverage set up for any of your repositories yet, the coverage tab provides you with instructions on [how to add coverage for your repositories](../../coverage-reporter/index.md).
4559

60+
!!! important
61+
- The **Code health and security** area calculates and displays metrics only for **repositories you follow** on Codacy. As a result, users with different followed repositories can see different values.
62+
63+
- Some organization-level metrics are limited to the 100 most recently updated repositories, depending on the metric and plan.
64+
65+
<sup><span id="coverage-note">1</span></sup>: Coverage metrics are calculated differently for paid plans versus open source and trial plans. [Learn more](#coverage).
4666

47-
## Last updated repositories
67+
### Last updated repositories
4868

49-
The **Last updated repositories** list displays the last updated repositories, sorted by reverse date of the last update.
69+
The **Last updated repositories** list shows repositories sorted by most recent update first.
5070

51-
![Last updated repositories](images/organization-overview-repositories-last-updated.png)
71+
![Last updated repositories](./images/organization-overview-repositories-last-updated.png)
5272

5373
!!! note
54-
The exact value of the last updated date of the repositories depends on your Git provider:
74+
The source of the "last updated" value depends on your Git provider:
5575

56-
- **GitHub:** date of the last commit to any branch of the repository (value of `pushed_at` from the [GitHub Repositories API](https://docs.github.com/en/rest/repos/repos#list-organization-repositories){: target=_"blank"}).
57-
- **GitLab:** date when the project was last updated (value of `last_activity_at` from the [GitLab Groups API](https://docs.gitlab.com/ee/api/groups.html)). Note that this value is only updated [at most once per hour](https://gitlab.com/gitlab-org/gitlab/-/issues/20952)).
58-
- **Bitbucket:** date when the repository was last updated (value of `updated_on` from the [Bitbucket Repositories API](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-group-repositories)). **On Bitbucket Server** Codacy can't obtain this information and the list displays the repositories in alphabetical order.
76+
- **GitHub:** Date of the most recent commit to any branch (`pushed_at` in the [GitHub Repositories API](https://docs.github.com/en/rest/repos/repos#list-organization-repositories)).
77+
- **GitLab:** Date when the project was last updated (`last_activity_at` in the [GitLab Groups API](https://docs.gitlab.com/ee/api/groups.html)). This value updates [at most once per hour](https://gitlab.com/gitlab-org/gitlab/-/issues/20952).
78+
- **Bitbucket:** Date when the repository was last updated (`updated_on` in the [Bitbucket Repositories API](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-group-repositories)). On **Bitbucket Server**, Codacy cannot retrieve this value, so repositories are listed alphabetically.
5979

60-
## See also
80+
## Grade
81+
82+
![Image of the Grade tab](./images/organization-overview-grade.png)
83+
84+
The **Grade** tab shows grade distribution across repositories. Use this view to identify higher-risk repositories by selecting a grade in the distribution chart.
85+
86+
At organization level, **Grade** is the average grade across the 100 most recently updated repositories.
87+
88+
For calculation details, see [how metrics are calculated](../../faq/code-analysis/which-metrics-does-codacy-calculate.md#grade).
89+
90+
## Complexity
91+
92+
![Image of the Complexity tab](./images/organization-overview-complexity.png)
93+
94+
The **Complexity** tab helps identify repositories where code may be harder to test and more defect-prone.
95+
96+
At organization level, **Complexity** is the percentage of complex files across the 100 most recently updated repositories.
97+
98+
This tab shows your organization's complexity status (based on complex file counts) and how repositories compare against configured [goals](../../repositories-configure/adjusting-quality-goals.md). A file is considered complex when its cyclomatic complexity exceeds the repository-level goal. For details, see [how metrics are calculated](../../faq/code-analysis/which-metrics-does-codacy-calculate.md#complexity).
99+
100+
The panel classifies the top 100 most recently updated repositories as above goal, below goal, or without a goal. Because lower complexity is better, repositories above goal are highlighted for review.
101+
102+
At the bottom of the tab, complex-file distribution shows whether files above goal, below goal, or without goals are driving complexity. Repository goal distributions are filterable; file-level data is not.
61103

104+
## Duplication
105+
![Image of the Duplication tab](./images/organization-overview-duplication.png)
106+
107+
The **Duplication** tab identifies repeated code sequences that appear in at least two locations in a repository.
108+
109+
At organization level, **Duplication** is the average duplication across the 100 most recently updated repositories.
110+
111+
This tab shows average duplication and indicates which repositories are above goal, below goal, or without configured [goals](../../repositories-configure/adjusting-quality-goals.md).
112+
113+
For metric details, see [how duplication is calculated](../../faq/code-analysis/which-metrics-does-codacy-calculate.md#duplication).
114+
115+
116+
## Coverage
117+
118+
The **Coverage** tab provides organization-level visibility into coverage status. Higher coverage helps reduce regression risk when code changes.
119+
120+
At organization level, **Coverage** depends on your plan:
121+
122+
- On trial and open source plans, it is the average coverage across the 100 most recently updated repositories.
123+
- On paid plans, it is a line-based percentage calculated as `coveredLines / coverableLines` across repositories that report coverage.
124+
125+
For calculation details, see [how code coverage is calculated](../../faq/code-analysis/which-metrics-does-codacy-calculate.md#code-coverage).
126+
127+
### Coverage dashboard on Paid plans
128+
129+
![Image of the Coverage tab](./images/organization-overview-coverage.png)
130+
131+
The Coverage tab on paid plans uses two key metrics:
132+
133+
- **Covered lines**: Number of covered lines reported to Codacy.
134+
- **Coverable lines**: Number of lines that can be covered, based on coverage reports.
135+
136+
These metrics drive all dashboard components:
137+
138+
| Metric | Description |
139+
| ------ | ----------- |
140+
| **Coverage** | `coveredLines / coverableLines` <br/>Aggregation of all covered lines divided by all coverable lines across all repositories (or the current filter selection, see [filters](#overview-filters)). Includes only repositories reporting coverage. |
141+
| **Repositories reporting coverage** | Repositories with coverage data from the latest merged pull request. For example, if the latest merged pull request reported coverage metrics to Codacy, that repository is counted as reporting coverage. |
142+
| **Coverage trend** | Time-based trend for covered lines, uncovered lines, and organization coverage (or the current filter selection, see [filters](#overview-filters)). You can choose time ranges and granularities, and select a date to see which repositories changed the most during that period. |
143+
144+
You can export data from each chart using the ellipsis icon in the top-right corner in JSON or CSV format.
145+
146+
## See also
62147
- [Which metrics does Codacy calculate?](../../faq/code-analysis/which-metrics-does-codacy-calculate.md)
63148
- [Using the Codacy API to obtain current issues in repositories](../../codacy-api/examples/obtaining-current-issues-in-repositories.md)
64149
- [Using the Codacy API to obtain code quality metrics for files](../../codacy-api/examples/obtaining-code-quality-metrics-for-files.md)

0 commit comments

Comments
 (0)