开发者

Easiest way to know LOC on Eclipse

开发者 https://www.devze.com 2022-12-13 06:27 出处:网络
I am working on a project using Eclipse 3.4.2, and would like to know how many Non Comment Lines of Code (NCLOC) it has.

I am working on a project using Eclipse 3.4.2, and would like to know how many Non Comment Lines of Code (NCLOC) it has.

It is OK to be a simple plugin, but 开发者_如何学JAVAI don't wan too much bloat. My machine is already slow the way it is.


Use Eclipse regular Expression: Search->File, check Regular expression.

  • LOC: \n[\s]* (without blanks)

  • Comments: [*]+

you can subtract to get NCLOC with selected resource


You could try a metric plugin (like the ones I mention in this SO question)

That, plus a good eclipse.ini (making your eclipse run with the latest JDK), should make your configuration able to display what you want in a timely fashion.

0

精彩评论

暂无评论...
验证码 换一张
取 消