Seeking C++ metrics tool for Linux [closed]
Asked Answered
Z

3

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.

Zaslow answered 1/2, 2012 at 3:16 Comment(2)
Wine can run many Windows binaries unchanged on Linux, might be worth a try.Regenerate
possible duplicate of A free tool to check C/C++ source code against a set of coding standards?Akers
C
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.

Centroclinal answered 22/3, 2012 at 21:7 Comment(0)
C
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.

Candycecandystriped answered 13/2, 2013 at 20:47 Comment(2)
pmccabe works well and is shipped w/ Ubuntu (pkg pmccabe). Great!Hydrocarbon
I have added the Ubuntu package reference in the answer.Candycecandystriped
A
1

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

Artless answered 12/8, 2013 at 10:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.