action-golangci-lint icon indicating copy to clipboard operation
action-golangci-lint copied to clipboard

Severity is not being passed from golangci-lint into reviewdog

Open algojack opened this issue 3 years ago • 1 comments

When we do --out-format line-number the word error, warning, etc doesn’t appear. So golangci-lint is not telling reviewdog the severity of any issues, and setting default severity: warning in the golangci-lint config doesn’t have any effect.

The work around is to use the “checkstyle” format. Which is an XML format supported by both reviewdog and golangci-lint that includes a severity=“XXX” field.

https://github.com/reviewdog/action-golangci-lint/blob/77873b3ad8215667886946b6f893580883f10d4f/src/main.ts#L63

algojack avatar Aug 18 '21 20:08 algojack

@algojack What should be the errorformat for "checkstyle" format

vinita-razor avatar Jul 16 '23 15:07 vinita-razor