SonarCloud doesn't analize all the lines of code files

Template for a good new topic, formatted with Markdown:

  • ALM used: Bitbucket
  • CI system used: Jenkins
  • Languages of the repository: html, sql, json
  • Error observed:
    We have the following problem.
    When analizing code from a short-lived branch, all lines of code in the index.html file are analized. But when analize the same code, without changes, in a long-lived branch, not all lines of code in this file are analized. For example, when reviewing the Code tab for the long-lived branch, Lines of Code indicates 620 lines for the file, which is a total of 717 lines that the file contains.
    I am using a paid SonarCloud license.
1 Like

Hi,

Welcome to the community!

Can you provide logs for the two analyses, sensitive values redacted?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Ann