Sonar

Comment lines on a line of code falsify NCLOC

Details

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

Description

Comment lines on a line of code are not calculated correctly and falsify NCLOC result :

public void run() {
      int i = 5; // comment on line of code, ncloc should not be impacted
      int j = 5; /** test comment 
      tst 2 comment
      **/
      int k = 5; /* another test comment 
      */
    }

will count 2 ncloc instead of 5

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: