5

I'm looking for a C++ code quality metrics tool that can run on Linux. Having Eclipse integration would be a bonus but is not required.

I found a decent tool called Source Monitor, but that only works on Windows, and the source code is not available to rebuild on Linux.

I also saw cccc out there, but based on the bug list, it doesn't seem to be maintained any more.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
KenK
  • 263
  • 2
  • 10
  • 1
    Wine can run many Windows binaries unchanged on Linux, might be worth a try. – Ben Voigt Feb 01 '12 at 03:28
  • possible duplicate of [A free tool to check C/C++ source code against a set of coding standards?](http://stackoverflow.com/questions/93260/a-free-tool-to-check-c-c-source-code-against-a-set-of-coding-standards) – RiaD Aug 12 '13 at 13:21

3 Answers3

4

Depending on what kinds of metrics you need, you might consider CLOC that calculates lines of code metrics, or, for instance, CCFinder that calculates different metrics related to code duplication. CCFinder GUI version does not seem to work but the command line version seems to work just fine.

Moreover, many commercial tools, e.g., CMT++ by Testwell often can provide evaluation licenses.

Iharob Al Asimi
  • 52,653
  • 6
  • 59
  • 97
Alexander Serebrenik
  • 3,567
  • 2
  • 16
  • 32
2

Some month ago, a colleage of mine had shown me the results of cppdepends analysis on a software we were working on, and I remember it gave me a good impression. You may check their linux version.

There is also pmccabe which has an available Debian/Ubuntu package. It computes the McCabe complexity for each function.

Stephane Rolland
  • 38,876
  • 35
  • 121
  • 169
1

Metrix++ works on linux and has got some code quality metrics. http://metrixplusplus.sourceforge.net/

Andrew
  • 2,055
  • 2
  • 20
  • 27