0 new lines of code in sonarcloud portal but i have 2 changes

Template for a good new topic, formatted with Markdown:

  • ALM used (GitHub, Bitbucket Cloud, Azure DevOps)
    github
  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI
    Azure devops
  • Scanner command used when applicable (private details masked)
    build-wrapper-linux-x86-64 --out-dir path build command
  • Languages of the repository
    c cpp h
  • Only if the SonarCloud project is public, the URL
    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
    in begining showing log “SCM reported 2 files changed in the branch” but after analysis sonarcloud portal showing 0 new lines of code

end of log it is showing “SCM reported changed lines for 0 files in the branch”

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hey there.

What file(s) did you change? Were they C/C++ files, or other code?

i have changed c file

Do you see that file in the Code tab of your pull request?

in the code tab, iam seeing white space, no code is showing

Okay. In that case I think it makes sense to include your full analysis logs, preferably at DEBUG level (sonar-scanner -X) of a pull request that doesn’t result in code changes being shown.

It would further be useful to know the file paths of the files you expect to see as changed lines in SonarCloud.