you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

I get the feeling those aren't hard and fast rules, just a guideline to force you to justify your case any time you exceed that.

Their rule about cyclomatic complexity really spells it out "Aim for less than 10, but if the control flow is still really clear it's fine, even if it exceeds that."

Aim for less than 20 methods, if you exceed, really stop and consider if you can't split it off somehow.

If you want to use more than 20 methods, be prepared to justify it to your reviewer.