About 134,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. 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 …

  4. 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 …

  5. 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 …

  6. 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 …

  7. code metrics - How to calculate Cyclomatic Complexity exactly ...

    May 8, 2016 · Don't bother. McCabe Cyclomatic Complexity (MCC) has been shown, on real code, to be VERY (emphasis added) strongly correlated with raw number of source lines of …

  8. 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 …

  9. Newest 'cyclomatic-complexity' Questions - Software Engineering …

    Sep 10, 2022 · How to compute cyclomatic complexity for empty whiles and if + breaks? conditions cyclomatic-complexity

  10. 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 …