New lines of code not detected

The scan itself works, finds the test coverage and executes the scan without any errors. But if you look at the report you can see that no new lines of code were detected. Therefore the quality gate on new code is passed but just because the code is not detected.

  • ALM used (GitHub)
  • CI system used (Bitrise / Command line)
  • Scanner command used when applicable: sonar-scanner
  • Languages of the repository: TS

INFO: Analysing [/PROJECTPATH/../coverage/]

1 Like

Same problem for me.

Ran with the command line

mvn -B sonar:sonar -Dsonar.organization=kode-konveyor -Dsonar.externalIssuesReportPaths=issuesReport.json -Dsonar.tests=src/test,src/integration-test -Dsonar.projectKey=tidy-up -Pintegration-test

I do have issues on the code. both target/pmd_full.xml and issuesReport.json contain errors.
They are not shown on the output.
When I take a lok at new code, changes to pom.xml are shown, but nothing for src/main/java/com/kodekonveyor/tidyup/ which contains both of the errors.

I can share more information (like pom.xml, build output) if needed to analyze the problem.