Skip to content

Feature08_CyclomaticComplexity

Andrei Ignat edited this page Oct 6, 2024 · 1 revision

Cyclomatic Complexity

Cyclomatic Complexity for assembly, class, method

The cyclomatic complexity of a section of code is the number of linearly independent paths through the code. It is a quantitative measure of the number of linearly independent paths through a program's source code.

The program is showing the cyclomatic complexity of the assembly, class, and method. You should start with the method - it is the easy to analyze .

diagram

Also , you can see on which methods you should focus to refactor - the ones with the highest cyclomatic complexity.

diagram

https://learn.microsoft.com/en-us/visualstudio/code-quality/code-metrics-cyclomatic-complexity?view=vs-2022

Clone this wiki locally