scrutinizer-ci/scrutinizer

Allow to configure how to count lines

Opened this issue · 0 comments

The current method to count lines of code includes code and comments.

php_loc offers different metrics to calculate the number of lines in a file.

  Lines of Code (LOC)                       %10d
  Comment Lines of Code (CLOC)              %10d (%.2f%%)
  Non-Comment Lines of Code (NCLOC)         %10d (%.2f%%)

The current implementation looks to be "Lines of Code (LOC) "
It will be very useful being able to chose "Non-Comment Lines of Code" as measure for a class