Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
djcb
on May 8, 2012
|
parent
|
context
|
favorite
| on:
What's The Best Language For Safety Critical Softw...
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Then,
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.