2022-07-04 05:37:10 +00:00
|
|
|
run:
|
2023-02-25 16:30:20 +00:00
|
|
|
timeout: 2m
|
2022-07-04 05:37:10 +00:00
|
|
|
tests: false
|
|
|
|
skip-dirs:
|
|
|
|
- ".*test.*"
|
|
|
|
- ".*mock.*"
|
|
|
|
- ".*generated.*"
|
|
|
|
- ".*example.*"
|
2023-02-25 16:30:20 +00:00
|
|
|
- ".*utils.*"
|
2022-07-04 05:37:10 +00:00
|
|
|
skip-files:
|
|
|
|
- ".*Mock.*"
|
|
|
|
- ".*_mock.*"
|
|
|
|
- ".*_generated.*"
|
|
|
|
|
|
|
|
output:
|
|
|
|
sort-results: true
|
|
|
|
|
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
2023-02-25 16:30:20 +00:00
|
|
|
# Default
|
2022-07-04 05:37:10 +00:00
|
|
|
- errcheck
|
|
|
|
- gosimple
|
|
|
|
- govet
|
2022-12-01 02:47:19 +00:00
|
|
|
- ineffassign
|
2022-07-04 05:37:10 +00:00
|
|
|
- staticcheck
|
|
|
|
- typecheck
|
|
|
|
- unused
|
2023-02-25 16:30:20 +00:00
|
|
|
# Custom
|
2022-12-01 02:47:19 +00:00
|
|
|
- errchkjson
|
2022-07-04 05:37:10 +00:00
|
|
|
- errname
|
|
|
|
- errorlint
|
|
|
|
- execinquery
|
2023-02-25 16:30:20 +00:00
|
|
|
- forcetypeassert
|
2022-12-01 02:47:19 +00:00
|
|
|
- gocritic
|
2022-07-04 05:37:10 +00:00
|
|
|
- goerr113
|
|
|
|
- gofumpt
|
2023-02-25 16:30:20 +00:00
|
|
|
- gomodguard
|
2022-07-04 05:37:10 +00:00
|
|
|
- gosec
|
|
|
|
- importas
|
|
|
|
- makezero
|
|
|
|
- nilnil
|
|
|
|
- prealloc
|
2023-02-25 16:30:20 +00:00
|
|
|
- reassign
|
|
|
|
# - rowserrcheck
|
|
|
|
- sqlclosecheck
|
2022-07-04 05:37:10 +00:00
|
|
|
- unconvert
|
2023-02-25 16:30:20 +00:00
|
|
|
# - wastedassign
|
2022-07-04 05:37:10 +00:00
|
|
|
fast: true
|
|
|
|
|
|
|
|
linters-settings:
|
2023-02-25 16:30:20 +00:00
|
|
|
# Default
|
2022-07-04 05:37:10 +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-02-25 16:30:20 +00:00
|
|
|
# Custom
|
2022-12-01 02:47:19 +00:00
|
|
|
gocritic:
|
2023-02-25 16:30:20 +00:00
|
|
|
disabled-checks:
|
|
|
|
- ifElseChain
|
|
|
|
- singleCaseSwitch
|
2022-12-01 02:47:19 +00:00
|
|
|
enabled-tags:
|
2023-02-25 16:30:20 +00:00
|
|
|
- diagnostic
|
2022-12-01 02:47:19 +00:00
|
|
|
- style
|
|
|
|
- performance
|
2023-02-25 16:30:20 +00:00
|
|
|
gosec:
|
|
|
|
exclude-generated: true
|
|
|
|
reassign:
|
|
|
|
patterns:
|
|
|
|
- ".*"
|