上からcheckstyleのjarをダウンロードする
循環複雑度をシュッとかけるためのxml
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name = "Checker">
<module name="TreeWalker">
<module name="CyclomaticComplexity">
<property name="max" value="7"/>
</module>
</module>
</module>
おもむろに実行してみる
java -jar <PATH>/checkstyle-9.0.1-all.jar -c <上のXML>.xml -o checkstyle_result.txt **/*.java