code_junkie

What is the fascination with code metrics?

Nov 11th, 2011
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Method’s Cyclomatic Complexity % of coverage required to be
  2. below CRAPpy threshold
  3. ------------------------------ --------------------------------
  4. 0 – 5 0%
  5. 10 42%
  6. 15 57%
  7. 20 71%
  8. 25 80%
  9. 30 100%
  10. 31+ No amount of testing will keep methods
  11. this complex out of CRAP territory.
Add Comment
Please, Sign In to add comment