Eclipse plugin for measuring lines of code
问题 I'm running Eclipse Helios (3.6) and was wondering if there is a nice plugin out there that will count the number of logical lines of code in a java source file. By logical, I mean if (j > 6) { j--; } In other words, 2 logical lines of code (2 statements) will be counted instead of 3 physical lines of code. 回答1: Metrics2 is an updated version of the Metrics plug-in described by js3v that should do what you need. It can also aggregate some of the measurements (e.g. add up the LOC of classes in