Skip to content

Commit 560d1bb

Browse files
update-complexity-definition
1 parent 7bea76e commit 560d1bb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/faq/code-analysis/which-metrics-does-codacy-calculate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Codacy calculates complexity as follows:
8282

8383
- The complexity value of a file is the total sum of the cyclomatic complexities of all methods within it.
8484
- A file is considered complex if its cyclomatic complexity value is higher than the threshold [**File is complex when over**](../../repositories-configure/adjusting-quality-goals.md).
85-
- The complexity value of a commit or pull request is determined by the cyclomatic complexity of its changes, but only for files with a minimum cyclomatic complexity of 4.
85+
- The complexity value of a commit or pull request is determined by the cyclomatic complexity of its changes.
8686

8787
Codacy displays complexity on the following places:
8888

docs/repositories/commits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ The **Duplication** tab displays the lists of clones (duplicated code blocks) th
111111
The **Complexity** tab displays the complexity changes introduced by the {{ page.meta.page_name }}. Use the sidebar filters to filter the list by high increase (4 or more), low increase (1 to 3), or improvement (less than 0).
112112

113113
!!! note
114-
When calculating the complexity variation introduced by a {{ page.meta.page_name }}, Codacy only considers files with a high increase in complexity. For more information, see [how Codacy calculates cyclomatic complexity](../faq/code-analysis/which-metrics-does-codacy-calculate.md#complexity).
114+
For more information, see [how Codacy calculates cyclomatic complexity](../faq/code-analysis/which-metrics-does-codacy-calculate.md#complexity).
115115

116116
![Complexity tab](./images/{{ page.meta.file_name }}-tab-complexity.png)
117117

0 commit comments

Comments
 (0)