Skip to content

How does Codacy measure complexity in my repository?#

Codacy uses cyclomatic complexity to identify complex files in your repository.

Cyclomatic complexity is a software metric used to indicate the complexity of a program. It's a quantitative measure of the number of linearly independent paths through a program's source code.

A complex file is a file with a complexity value bigger than the threshold defined on the repository quality settings.

Code complexity is calculated based on the maximum number of complex methods in a file.

In your Repository Dashboard you can see how complexity is evolving for your repository.

Feedback

Did this page help you?

Thank you for the feedback!

We're sorry to hear that. Please let us know what we can improve.

If you have a question, please ask our community or contact support@codacy.com.

Last modified February 11, 2021