Search code examples
code-metrics

Good code measuring tools?


Are there any good code measuring tools available?

I found code measure pretty useful and interesting, but I don't think I can pay $1K/year for just using the measuring tool.

I imagine there might be a tool that is/can

  • open source software
  • language independent
  • OS independent
  • measure the metrics from different categories : LOC, LOC without blank lines, Number of functions ...

Solution

  • For basic line-count metrics like the ones you describe, try cloc.

    My 2c-worth: code metrics are generally worse than useless. The only value I've ever gotten out of them is to measure the efficiency of one language against another.