Created
May 28, 2009 15:34
-
-
Save kulp/119386 to your computer and use it in GitHub Desktop.
Show C functions sorted by decreasing cyclomatic complexity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cyc() | |
{ | |
mcstrip $1 | cyclo -c -n 0 | perl -le 'print for map "@$_", sort { $b->[1] <=> $a->[1] } map [ split ], <>' | column -t | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment