How are the Lines of code calculated?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

I am using SQ 8.1 version. Attached is the screenshot of Loc of a project. From the Project dashboard I see the loc is 4k. When I click that I see additional details on the lines of code(screenshot). What is the actual loc? Is it the sum of all or how is this calculated in general?Screen Shot 2020-02-04 at 10.50.13 AM


Welcome to the community!

Here are the docs on that.