Is there way to report SLOCs for functions?
Options
george_vlasov
Posts: 9 ✭
in C/C++test
I was looking for a rule similar to "Report Cyclomatic Complexity [METRICS-29-5]", but for LOCs. Is there such a rule or some other way to report LOCs for the functions?
0
Answers
-
You can use Metrics Analysis. It contains metrics like Source Lines in Methods [METRIC.NOSLIM] or Logical Lines in Methods [METRIC.NOLLOCIM] (I'm not sure which one is better for you). You should use the 'Metrics' configuration to enable these metrics.
0 -
Sounds good! Could you point me to the manual document that describes Metrics Analysis? I searched in the "c++test_96_rules.pdf" file and could not find any references.
0 -
Which C++test version do you use? I'm not sure if Metrics Analysis is available in this version.
0 -
@george_vlasov - please ping me and we can talk about it.
0
