2022-09-28 19:30:40 +02:00
|
|
|
run:
|
|
|
|
timeout: 5m
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- asciicheck
|
|
|
|
- dogsled
|
|
|
|
- durationcheck
|
|
|
|
- errcheck
|
|
|
|
- errorlint
|
|
|
|
- exportloopref
|
|
|
|
- gci
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
|
|
|
- gosec
|
|
|
|
- misspell
|
|
|
|
- nakedret
|
|
|
|
- nilerr
|
|
|
|
- nolintlint
|
|
|
|
- revive
|
|
|
|
- wastedassign
|
2023-06-01 23:20:16 +02:00
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
gosec:
|
|
|
|
# To select a subset of rules to run.
|
|
|
|
# Available rules: https://github.com/securego/gosec#available-rules
|
|
|
|
# Default: [] - means include all rules
|
|
|
|
includes:
|
|
|
|
- G102
|
|
|
|
- G106
|
|
|
|
- G108
|
|
|
|
- G109
|
|
|
|
- G111
|
|
|
|
- G112
|
|
|
|
- G201
|
|
|
|
- G203
|
|
|
|
|
2022-09-28 19:30:40 +02:00
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
- linters:
|
|
|
|
- structcheck
|
|
|
|
- unused
|
|
|
|
text: "`data` is unused"
|
|
|
|
- linters:
|
|
|
|
- staticcheck
|
|
|
|
text: "SA1019:"
|
|
|
|
- linters:
|
|
|
|
- revive
|
|
|
|
text: "var-naming:"
|
|
|
|
- linters:
|
|
|
|
- revive
|
|
|
|
text: "exported:"
|
|
|
|
- path: _test\.go
|
|
|
|
linters:
|
|
|
|
- gosec # security is not make sense in tests
|
2023-06-01 23:20:16 +02:00
|
|
|
- linters:
|
|
|
|
- revive
|
|
|
|
path: _test\.go
|