From 941d682dc1327d6f35946a6ddd5837b0b559f457 Mon Sep 17 00:00:00 2001 From: Stefan Vacareanu Date: Wed, 12 Feb 2025 15:11:57 +0100 Subject: [PATCH 1/2] Update Lizard Doc --- docs/getting-started/supported-languages-and-tools.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/getting-started/supported-languages-and-tools.md b/docs/getting-started/supported-languages-and-tools.md index 234c68fb67..05a972aaf8 100644 --- a/docs/getting-started/supported-languages-and-tools.md +++ b/docs/getting-started/supported-languages-and-tools.md @@ -701,6 +701,10 @@ The following table lists the Codacy GitHub repositories corresponding to each s codacy/codacy-jackson-linter +Lizard +codacy/codacy-lizard + + markdownlint codacy/codacy-markdownlint From 5677fb5923157c288cf8f7f3242c526ec6279d6e Mon Sep 17 00:00:00 2001 From: Stefan Vacareanu Date: Thu, 28 Aug 2025 13:07:57 +0200 Subject: [PATCH 2/2] Improve cyclomatic complexity definition --- docs/faq/code-analysis/which-metrics-does-codacy-calculate.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/faq/code-analysis/which-metrics-does-codacy-calculate.md b/docs/faq/code-analysis/which-metrics-does-codacy-calculate.md index 7bab1a3e08..1c943ecc18 100644 --- a/docs/faq/code-analysis/which-metrics-does-codacy-calculate.md +++ b/docs/faq/code-analysis/which-metrics-does-codacy-calculate.md @@ -84,13 +84,13 @@ Codacy calculates complexity as follows: - The complexity value of a file is the total sum of the cyclomatic complexities of all methods within it. - 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). -- The complexity value of a commit or pull request is determined by the cyclomatic complexity of its changes. +- The complexity value of a commit or pull request is calculated by summing the complexity differences of all changed files where the difference is 4 or more. Codacy displays complexity on the following places: |Place|Metric| |-----|------| -|[Commit detail page](../../repositories/commits.md)
[Pull request detail page](../../repositories/pull-requests.md)
[Email notifications](../../account/emails.md#managing-your-email-notifications)|The complexity variation introduced by a commit or pull request is defined as the sum of the changes in code complexity for each file modified in the commit or pull request| +|[Commit detail page](../../repositories/commits.md)
[Pull request detail page](../../repositories/pull-requests.md)
[Email notifications](../../account/emails.md#managing-your-email-notifications)|The complexity variation introduced by a commit or pull request is calculated by summing the complexity differences of all changed files where the difference is 4 or more. |[Files page](../../repositories/files.md)|The file complexity value is the sum of the complexity values of all methods defined within the file| |[Repository Dashboard](../../repositories/repository-dashboard.md)|Percentage of complex files in your repository and how the metric is evolving over time| |[Organization overview](../../organizations/organization-overview.md)|Average percentage of complex files in the repositories in your organization and percentage of complex files in each repository|