2021-08-19 11:16:18 +03:00
|
|
|
run:
|
|
|
|
timeout: 5m
|
2021-08-19 10:46:31 +03:00
|
|
|
linters:
|
|
|
|
enable:
|
2021-09-28 06:37:31 +03:00
|
|
|
- asciicheck
|
|
|
|
- dogsled
|
|
|
|
- durationcheck
|
|
|
|
- errcheck
|
|
|
|
- errorlint
|
|
|
|
- exportloopref
|
|
|
|
- gci
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
|
|
|
- gosec
|
|
|
|
- misspell
|
|
|
|
- nakedret
|
|
|
|
- nilerr
|
|
|
|
- nolintlint
|
2024-11-15 18:51:12 +03:00
|
|
|
- perfsprint
|
2021-09-28 06:37:31 +03:00
|
|
|
- revive
|
2024-07-14 15:33:08 +03:00
|
|
|
- testifylint
|
2024-11-15 18:52:16 +03:00
|
|
|
- usestdlibvars
|
2021-09-28 06:37:31 +03:00
|
|
|
- wastedassign
|
2023-04-26 09:13:56 +03: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
|
2024-11-15 18:51:12 +03:00
|
|
|
perfsprint:
|
|
|
|
err-error: true
|
|
|
|
errorf: true
|
|
|
|
fiximports: true
|
|
|
|
int-conversion: true
|
|
|
|
sprintf1: true
|
|
|
|
strconcat: true
|
2024-07-14 15:33:08 +03:00
|
|
|
testifylint:
|
|
|
|
enable-all: true
|
2023-04-26 09:13:56 +03:00
|
|
|
|
2021-08-19 10:46:31 +03:00
|
|
|
issues:
|
|
|
|
exclude-rules:
|
2021-09-28 06:37:31 +03:00
|
|
|
- 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-04-26 09:13:56 +03:00
|
|
|
- linters:
|
|
|
|
- revive
|
|
|
|
path: _test\.go
|
2024-05-09 04:17:06 +03:00
|
|
|
- path: gin.go
|
|
|
|
linters:
|
|
|
|
- gci
|