RSM is a good staticCodeQuality Check tool, provide code line statistics, complexity statistics and other functions, see: http://msquaredtechnologies.com/m2rsm/docs/index.htm
RSM supports the language
Syntax of ansi c, ansi c ++, C # and Java.
RSM creates HTML reports
For visual metrics that interacts with source code hyperlinks and CSV or comma
Separated value format for direct input to MS Excel or other spreadsheets.
Feature:
- Number of public, private, protected data attributes
- Number of public, private, protected Methods
- Template type
- Inheritance
- Depth of inheritance tree example
- Number of derived child classes per base class
- Loc lines of code
- Eloc (objective LOC)
- Lloc (logical statements LOC)
- Comments lines
- Blank lines
- Physical lines
- Number of input parameters
- Number of return points
- Interface complexity (parameters + returns)
- Cyclomatic complexity logical branching
- Class complexity (interface + cyclomatic)
- Class Quality Analysis RSM Quality Analysis
Source monitor has similar functions. The advantage is that it is free, and the disadvantage is that it only supports windows.
Sonar is also a good tool for measuring code quality, but the current support for C ++ is not good enough.