Skip to content

Cyclomatic Complexity

coloradokim edited this page Dec 29, 2017 · 1 revision

Cyclomatic Complexity

Cyclomatic Complexity Refactoring Tips for Javascript Developers

  • Cycolmatic complexity a way to measure of the number of execution scenarios in your code
  • Conditional statements, while and for loops, switch/case, ||, catch and ternary operators increase cycolmatic complexity in javascript.
  • Max complexity is 3
  • Write more functions to refactor something
Clone this wiki locally