News for hackers. Stuff that matters.
Re:What's The Best Language For Safety Critical Software? by djcb on Tuesday May 08, 2012 @03:04PM (#3945321)
There's the 'pmccabe' tool, which can check for # of lines of functions and their cyclomatic complexity.

Then,

  pmccabe `find . -name '*.c'` | sort -nr | awk '($1 > 10)'
gives me all functions that have a cyclomatic complexity over 10; I often add it as a target in a Makefile, so I can easily check this. Similar, for functions of a certain length.

There are no comments on this comment yet.