Top "Cyclomatic-complexity" questions

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

Sonar cyclomatic complexity rule issue - discourages multiple return statements

For the following piece of code, sonarqube computes the method cyclomatic complexity as 9 String foo() { if (cond1) return a; if (…

java sonarqube cyclomatic-complexity
What is the highest Cyclomatic Complexity of any function you maintain? And how would you go about refactoring it?

I was doing a little exploring of a legacy system I maintain, with NDepend (great tool check it out), the …

refactoring cyclomatic-complexity
cyclomatic complexity = 1 + #if statements?

I found the following paragraph regarding cyclomatic complexity on Wikipedia: It can be shown that the cyclomatic complexity of any …

if-statement code-metrics cyclomatic-complexity
Turn off cyclmatic complexity in JSHint

I am using JSHint and I want to turn off cyclomatic complexity. How can I do this?

javascript node.js jshint cyclomatic-complexity
Cyclomatic complexity of IF((A>B) AND (C>D)) and IF((A>B) OR (C>D))

I want to know the cyclomatic complexity of two section of code, IF((A>B) AND (C>D)) { …

cyclomatic-complexity
How does Sonar calculate the cyclomatic complexity?

Sonar gives me the following cyclomatic complexity number : 22. For the following program : private static SomeDto checkSomething(AnotherDto anotherDto, String reference) { …

java sonarqube graph-algorithm checkstyle cyclomatic-complexity
Do you find cyclomatic complexity a useful measure?

I've been playing around with measuring the cyclomatic complexity of a big code base. Cyclomatic complexity is the number of …

refactoring metrics code-metrics cyclomatic-complexity
How to check code cyclomatic complexity in Android studio?

How to check code cyclomatic complexity in Android Studio? Is there any plugin available for Android Studio to check code …

android android-studio cyclomatic-complexity
How complex should code be?

I'm studying about algorithms which can help me write smaller but more complex code. Instead of writing 150 lines of if-else …

algorithm maintainability cyclomatic-complexity code-complexity
Reducing the cyclomatic complexity, multiple if statements

I have the following code: private Facility updateFacility(Facility newFacility, Facility oldFacility) { if (newFacility.getCity() != null) oldFacility.setCity(newFacility.getCity()); …

java sonarqube cyclomatic-complexity