メトリクスとってみた。
これ最強。特にソフトウェアの複雑度のマックスとアベレージが出るのがうれしい。
Project Name org.seasar.dolteng.eclipse.plugin Files 314 Lines 41,211 Statements 19,150 Percent Branch Statements 10.5 Method Call Statements 10,588 Percent Lines with Comments 28.0 Classes and Interfaces 501 Methods per Class 4.72 Average Statements per Method 5.00 Line Number of Most Complex Method {undefined} Name of Most Complex Method Validator.{none}() Maximum Complexity 39 Line Number of Deepest Block {undefined} Maximum Block Depth 9+ Average Block Depth 1.96 Average Complexity 2.29 Project Name org.seasar.dolteng.projects Files 21 Lines 2,135 Statements 1,113 Percent Branch Statements 10.2 Method Call Statements 650 Percent Lines with Comments 24.2 Classes and Interfaces 28 Methods per Class 4.25 Average Statements per Method 5.75 Line Number of Most Complex Method {undefined} Name of Most Complex Method ProjectBuildConfigResolver.resolve() Maximum Complexity 9 Line Number of Deepest Block {undefined} Maximum Block Depth 7 Average Block Depth 1.88 Average Complexity 2.16 Project Name org.seasar.dolteng.scaffold Files 5 Lines 210 Statements 51 Percent Branch Statements 0.0 Method Call Statements 20 Percent Lines with Comments 53.3 Classes and Interfaces 5 Methods per Class 1.60 Average Statements per Method 1.50 Line Number of Most Complex Method {undefined} Name of Most Complex Method Activator.Activator() Maximum Complexity 1 Line Number of Deepest Block {undefined} Maximum Block Depth 2 Average Block Depth 0.71 Average Complexity 1.00
javaのコードだけなんで、freemarkerのマクロとか、plugin.xmlとかそういうのは含まれてませぬ。
思った程複雑でも無いらしい。