Is there way to report SLOCs for functions?

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?


  • mstaronmstaron Posts: 26

    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.

  • 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.

  • mstaronmstaron Posts: 26

    Which C++test version do you use? I'm not sure if Metrics Analysis is available in this version.

  • Andrey MadanAndrey Madan Posts: 333 ✭✭✭

    @george_vlasov - please ping me and we can talk about it.

Sign In or Register to comment.