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.
|
['run', '--out-format', 'line-number', ...flags.parse(golangciLintFlags)], |
When we do
--out-format line-numberthe 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.
action-golangci-lint/src/main.ts
Line 63 in 77873b3