About 137,000 results
Open links in new tab
  1. What does the 'cyclomatic complexity' of my code mean?

    Oct 11, 2018 · For example, the cyclomatic complexity is the number of test cases needed to achieve 100% branch coverage, assuming well-written tests. A good starting point might be …

  2. unit testing - Understanding Cyclomatic Complexity - Software ...

    I've recently come across Cyclomatic Complexity and I'd like to try to understand it better. What are some practical coding examples of the different factors that go into calculating the …

  3. design - Cyclomatic Complexity Ranges - Software Engineering …

    The level of cyclomatic complexity that each group can tolerate is almost certainly going to vary substantially. It's a subjective metric; evaluate the setting on your Code Metrics solution, and …

  4. Avoid too complex method - Cyclomatic Complexity

    Not sure how to go about this method to reduce Cyclomatic Complexity. Sonar reports 13 whereas 10 is expected. I am sure nothing harm in leaving this method as it is, however, just …

  5. Relation between LOC and Cyclomatic Complexity

    Jul 31, 2017 · Is there something that ratio of the metrics LOC and Sum Cyclomatic Complexity in a project with many modules can talk about? Does it show the logical complexity of a …

  6. Summing cyclomatic complexity of function or files

    Jul 13, 2019 · McCabe developed cyclomatic complexity in the context of unstructured programs: built around gotos or jumps rather than if/else, loops, and functions. Part of his motivation is to …

  7. Reducing cyclomatic complexity of a state machine

    Apr 5, 2023 · The problem of a state machine is whether it is encoding correctly a state transition diagram - and is that state transition diagram itself correct? Cyclomatic complexity or any other …

  8. Cyclomatic Complexity spread over non-reusable functions

    Mar 17, 2017 · Measuring cyclomatic complexity on a per function basis leads people to what I consider "cheating". Functions are split into many functions that only work when used with …

  9. Is cyclomatic complexity density a good software quality metric?

    Jul 22, 2015 · Where I define Cyclomatic complexity density as: Cyclomatic complexity density = Cyclomatic complexity / Lines of code I was reading previous discussions about cyclomatic …

  10. Why is cyclomatic complexity that important for a single method?

    Dec 2, 2016 · 2 Cyclomatic complexity of a method is related to the number of test cases required for a method. Specifically, a cyclomatic complexity of 10 means that 10 is the upper bound for …