Skip to content

Instantly share code, notes, and snippets.

View ramonfsk's full-sized avatar

Ramon Ferreira ramonfsk

  • Brasilia, Brazil
  • 22:22 (UTC -03:00)
View GitHub Profile

Metric and evaluate code complexity guided by CDD

Metric rules

  1. Conditionals (if, loops, ternary if): 1CP
  2. Aditional block of codes (try, catch, cases of switch, closures or lambdas): 1CP
  3. Coupling with specific project classes: 1CP

How to evaluate what was measured?

  • If it's greenfiled, suggest start in a way more restrictive and evaluate, initial limit is 10.
  • If it's a legacy of knowledge that already comes with a lot of complexity, increase the initial limit to 50.