I've been working with CheckStyle for over a year now.
Very useful tool.
Recently I discovered the metrics checks.
All my "most complex" methods in terms of cyclomatic
complexity contain large switch statements with lots of
cases, usually converting some enum like values into
Strings or so. There's absolutely no way to reduce the
complexity as it is counted now.
It would be useful to have an option in the cyclomatic
complexity rule to disable the counting of "case"
statements. (See http://www.testersedge.com/ezmetrics.htm).
Log in to post a comment.