Top "Cyclomatic-complexity" questions

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

Measuring the complexity of SQL statements

The complexity of methods in most programming languages can be measured in cyclomatic complexity with static source code analyzers. Is …

sql static-analysis cyclomatic-complexity
Cyclomatic Complexity of switch case statement

I'm confusing about the CC of switch statement If I have following code: if (n >= 0) { switch(n) { case 0: case 1: …

cyclomatic-complexity
What is Cyclomatic Complexity?

A term that I see every now and then is "Cyclomatic Complexity". Here on SO I saw some Questions about "…

language-agnostic architecture cyclomatic-complexity
Reduce Cyclomatic Complexity of Switch Statement - Sonar

I want to reduce cyclomatic complexity of my switch case my code is : public String getCalenderName() { switch (type) { case COUNTRY: …

java switch-statement sonarqube cyclomatic-complexity
Automatic generation of Unit test cases for .NET and Java

Is there a good tool to generate unit test cases given say a .NET or Java project, it generates unit …

c# java .net unit-testing cyclomatic-complexity
The Cyclomatic Complexity of this method is greater than authorized

I am using below method for checking null or empty field: public boolean isVoNotNull(){ return null != this.cardNo && …

java cyclomatic-complexity
Code Metrics Calculation in Visual Studio

What is the prefered score range for the code metrics calculation for the following Maintainability Index Cyclomatic Complexity Depth of …

c# visual-studio-2008 code-metrics maintainability cyclomatic-complexity
Best tool to determine code Cyclomatic complexity

Can people suggest the best tool to determine the cyclic complexity with in a C# winforms code base.

c# cyclomatic-complexity
Difference between "complexity" metric and "complexity / method" metric

In Sonar, for a particular Java class, I see : Complexity: 830 Complexity /method: 8,1 How could you explain the difference between those …

sonarqube cyclomatic-complexity
Tool to calculate Cyclomatic Complexity for C code

I want a tool to analyse my code quality and after a bit of googling I think I understand that …

c cyclomatic-complexity