2022-07-03 14:34:46 +00:00
|
|
|
run:
|
2023-06-28 17:34:30 +00:00
|
|
|
timeout: 5m
|
2022-07-03 14:34:46 +00:00
|
|
|
tests: false
|
|
|
|
|
|
|
|
output:
|
|
|
|
sort-results: true
|
|
|
|
|
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
2023-02-25 16:24:44 +00:00
|
|
|
# Default
|
2022-07-03 14:34:46 +00:00
|
|
|
- errcheck
|
|
|
|
- gosimple
|
|
|
|
- govet
|
2022-11-20 14:14:44 +00:00
|
|
|
- ineffassign
|
2022-07-03 14:34:46 +00:00
|
|
|
- staticcheck
|
|
|
|
- typecheck
|
|
|
|
- unused
|
2023-02-25 16:24:44 +00:00
|
|
|
# Custom
|
2024-05-04 02:26:09 +00:00
|
|
|
- err113
|
2022-11-20 14:14:44 +00:00
|
|
|
- errchkjson
|
2022-07-03 14:34:46 +00:00
|
|
|
- errname
|
|
|
|
- errorlint
|
2023-02-25 16:24:44 +00:00
|
|
|
- forcetypeassert
|
2022-11-20 14:20:04 +00:00
|
|
|
- gocritic
|
2022-07-03 14:34:46 +00:00
|
|
|
- gofumpt
|
|
|
|
- gosec
|
|
|
|
- importas
|
|
|
|
- makezero
|
|
|
|
- nilnil
|
2023-06-28 17:34:30 +00:00
|
|
|
- noctx
|
2022-07-03 14:34:46 +00:00
|
|
|
- prealloc
|
2023-02-25 16:24:44 +00:00
|
|
|
- reassign
|
|
|
|
- sqlclosecheck
|
2022-07-03 14:34:46 +00:00
|
|
|
- unconvert
|
|
|
|
fast: true
|
|
|
|
|
|
|
|
linters-settings:
|
2023-02-25 16:24:44 +00:00
|
|
|
# Default
|
2022-07-03 14:34:46 +00:00
|
|
|
govet:
|
|
|
|
check-shadowing: false
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
|
|
|
- assign
|
|
|
|
- atomic
|
|
|
|
- bools
|
|
|
|
- buildtag
|
|
|
|
- composites
|
|
|
|
- copylocks
|
|
|
|
- fieldalignment
|
|
|
|
- httpresponse
|
|
|
|
- loopclosure
|
|
|
|
- lostcancel
|
|
|
|
- nilfunc
|
|
|
|
- printf
|
|
|
|
- unmarshal
|
|
|
|
- unreachable
|
|
|
|
- unusedresult
|
2023-06-28 17:34:30 +00:00
|
|
|
staticcheck:
|
|
|
|
checks: ["all", "-SA1019"]
|
2023-02-25 16:24:44 +00:00
|
|
|
# Custom
|
2022-11-20 14:20:04 +00:00
|
|
|
gocritic:
|
2023-02-25 16:24:44 +00:00
|
|
|
disabled-checks:
|
|
|
|
- ifElseChain
|
|
|
|
- singleCaseSwitch
|
2023-06-28 17:34:30 +00:00
|
|
|
- unnamedResult
|
|
|
|
- whyNoLint
|
2022-11-20 14:20:04 +00:00
|
|
|
enabled-tags:
|
2023-02-25 16:24:44 +00:00
|
|
|
- diagnostic
|
2022-11-20 14:20:04 +00:00
|
|
|
- style
|
2023-02-25 16:24:44 +00:00
|
|
|
gosec:
|
2023-06-28 17:34:30 +00:00
|
|
|
excludes:
|
|
|
|
- G101
|
|
|
|
- G112
|
|
|
|
- G402
|
|
|
|
- G404
|
|
|
|
- G501
|
|
|
|
- G505
|
2023-02-25 16:24:44 +00:00
|
|
|
exclude-generated: true
|
|
|
|
reassign:
|
|
|
|
patterns:
|
|
|
|
- ".*"
|
2024-05-04 02:26:09 +00:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-dirs:
|
|
|
|
- ".*test.*"
|
|
|
|
- ".*mock.*"
|
|
|
|
- ".*example.*"
|
|
|
|
- ".*utils.*"
|
|
|
|
exclude-files:
|
|
|
|
- ".*Mock.*"
|
|
|
|
- ".*_mock.*"
|