Top "Cyclomatic-complexity" questions

Cyclomatic complexity is a number used to express the complexity of source code (e.g. of a method).

Calculation of Cyclomatic Complexity

I am at learning stage of cyclomatic complexity(CC). For practise, I am calculating cyclomatic complexity of 2 examples and want …

cyclomatic-complexity
How can I reduce the Cyclomatic Complexity of this?

I have a method that receives an Object and does something based on what type of object it detects: void …

java refactoring instanceof cyclomatic-complexity
How can I analyze Python code to identify problematic areas?

I have a large source repository split across multiple projects. I would like to produce a report about the health …

python static-analysis cyclomatic-complexity
How to reduce cyclomatic complexity?

I'm working on a class which sends a RequestDTO to a Web Service. I need to validate the request before …

java validation cyclomatic-complexity
how could I reduce the cyclomatic complexity?

Whenever I lint a piece of code I'm working on I get the This function's cyclomatic complexity is too high. (7). …

javascript jshint cyclomatic-complexity
Control flow graph & cyclomatic complexity for following procedure

insertion_procedure (int a[], int p [], int N) { int i,j,k; for (i=0; i<=N; i++) p[i] = …

c control-flow cyclomatic-complexity black-box white-box
In a switch vs dictionary for a value of Func, which is faster and why?

Suppose there is the following code: private static int DoSwitch(string arg) { switch (arg) { case "a": return 0; case "b": return 1; …

c# dictionary clr switch-statement cyclomatic-complexity
Calculate Cyclomatic Complexity for Javascript

Are there any tools available for calculating Cyclomatic Complexity in Javascript? I've found it a very helpful metric in the …

javascript metrics cyclomatic-complexity
Conditional logging with minimal cyclomatic complexity

After reading "What’s your/a good limit for cyclomatic complexity?", I realize many of my colleagues were quite annoyed …

language-agnostic logging coding-style cyclomatic-complexity
How to improve Cyclomatic Complexity?

Cyclomatic Complexity will be high for methods with a high number of decision statements including if/while/for statements. So …

c# design-patterns complexity-theory cyclomatic-complexity