scrutinizer-ci / scrutinizer

Legacy repository - archives past feature requests/bug reports
https://scrutinizer-ci.com/docs
140 stars 36 forks source link

Allow to configure how to count lines #358

Open goetas opened 8 years ago

goetas commented 8 years ago

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