Top > Research > Tools > CyclomaticNumberCounter |
java -jar CyclomaticNumberCounter.jar source_file |
"source_file name,cyclomatic number"
find dir -name *.java -exec java -jar CyclomaticNumberCounter.jar \{\} \; |
CyclomaticNumberCounter parser = new CyclomaticNumberCounter(new java.io.FileInputStream(fileName)); parser.CompilationUnit(); int metricValue = parser.getValue(); |