Golangci-lint and eslint reports not being fully processed by SonarQube

Template for a good bug report, formatted with Markdown:

  • versions used
    • sonarsource/sonarqube-scan-action@master
    • SonarScanner 4.6.2.2472
    • SonarQube 9.1.0.47736
  • error observed
    • not all the entries in eslint or golangci-lint report files are processed successfuly
  • steps to reproduce
  • potential workaround

I have the following golangci-lint report file:

<?xml version="1.0" encoding="UTF-8"?>

<checkstyle version="5.0">
  <file name="internal/cmd/setup.go">
    <error column="0" line="5" message="File is not `gci`-ed with -local github.com/foo/bar" severity="info" source="gci">
    </error>
    <error column="0" line="8" message="File is not `gci`-ed with -local github.com/foo/bar" severity="info" source="gci">
    </error>
  </file>
</checkstyle>

When uploading that report only one error is reported in SonarQube (the one in line 8)

Same thing happens with eslint reports.

Any idea of what might be happening?

Hi,

It would be helpful to have the analysis logs to see the errors and their context.

 
Ann

A post was split to a new topic: Golangci-lint issues missing