Sonar

New definition of "Lines of code", "Lines" (physical vs logical LOC) and "Statements"

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5.1
  • Fix Version/s: 1.9
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

We are getting confused by the fact that http://www.kclee.de/clemens/java/javancss/ is calculating different total results than e.g. http://cloc.sourceforge.net/ for physical lines of code (excluding blank and comment lines).

By simply renaming the name of the current "lines of code" metric to "lines of non commenting source statements" this confusion could be prevented.

See also http://en.wikipedia.org/wiki/Source_lines_of_code

Issue Links

Activity

Hide
Freddy Mallet added a comment -

You're right Eike, and in fact we should provide both metrics "physical lines of code" and "lines of non commenting source statements". What would be great is to calculate "physical lines of code", "physical blank lines" and "physical comment lines" with a new plugin in order to measure those metrics on java, C, JSP, PL/SQL, ... files .

Show
Freddy Mallet added a comment - You're right Eike, and in fact we should provide both metrics "physical lines of code" and "lines of non commenting source statements". What would be great is to calculate "physical lines of code", "physical blank lines" and "physical comment lines" with a new plugin in order to measure those metrics on java, C, JSP, PL/SQL, ... files .
Hide
Freddy Mallet added a comment -

See SONAR-765. We haven't adopted exactly the same definitions as yours but it's definitely clearest.

Show
Freddy Mallet added a comment - See SONAR-765. We haven't adopted exactly the same definitions as yours but it's definitely clearest.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: