Eclipse count lines of code

后端 未结 10 1182
孤城傲影
孤城傲影 2021-01-29 19:06

I\'ve tried the Metrics plugin and although it\'s nice and all, it\'s not what my boss is looking for. It counts a line with just one } as a line and he doesn\'t wa

10条回答
  •  南方客
    南方客 (楼主)
    2021-01-29 19:18

    Another way would by to use another loc utility, like LocMetrics for instance.
    It also lists many other loc tools. The integration with Eclipse wouldn't be always there (as it would be with Metrics2, which you can check out because it is a more recent version than Metrics), but at least those tools can reason in term of logical lines (computed by summing the terminal semicolons and terminal curly braces).
    You can also check with eclipse-metrics is more adapted to what you expect.

提交回复
热议问题