0 lines of code shown but new lines identified on duplication part

Hi,

I recently integrated our repo but getting 0 lines of code on the summary page.

On the PR summary part, it was identifying the new lines. Same on the duplication part.

“There is not enough lines to compute coverage shown” but the PR has added tests which we thought would give us a figure

If it helps, this is my sonar properties
sonar.projectKey=r****
sonar.organization=r*****
sonar.javascript.lcov.reportPaths=coverage/lcov.info,coverage_jest/lcov.info
sonar.sources=app
sonar.tests=tests

Hi,

Welcome to the community!

What changed in this PR? Was it code or just configuration or maybe comments/formatting?

 
Thx,
Ann

Hi Ann,

There are several lines of code added (which include some logic change on displaying something on the UI) and tests were added too

Hi,

First, SonarQube makes a distinction between code and tests. So assuming you’ve configured analysis to recognize everything under tests as test code, then those changes don’t count toward having code changes in the PR.

What language are .hbs files in?

 
Thx,
Ann