gorm/.golangci.yml
MOREL Matthieu 21423b914f require lint before tests
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
2021-12-27 09:33:36 +01:00

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