
use golangci/golangci-lint-action instead of reviewdog/action-golangci-lint as the second was not reporting any failures even if there was some. Report code coverage with codecov/codecov-action I have set some flags per dialect and go version Several linters has been fixed, some disabled so the build can pass
33 lines
665 B
YAML
33 lines
665 B
YAML
linters:
|
|
disable:
|
|
- cyclop
|
|
- errcheck
|
|
- gosec
|
|
- ineffassign
|
|
- staticcheck
|
|
- structcheck
|
|
enable:
|
|
- errorlint
|
|
- exportloopref
|
|
- gci
|
|
- gocritic
|
|
- gofumpt
|
|
- misspell
|
|
- prealloc
|
|
- unconvert
|
|
- unparam
|
|
issues:
|
|
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
|
|
max-issues-per-linter: 0
|
|
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
|
|
max-same-issues: 0
|
|
exclude-rules:
|
|
- linters:
|
|
- gocritic
|
|
text: "singleCaseSwitch"
|
|
- linters:
|
|
- gocritic
|
|
text: "ifElseChain"
|
|
linters-settings:
|
|
gci:
|
|
local-prefixes: gorm.io/gorm |