2022-05-09 05:19:02 +02:00
|
|
|
linters-settings:
|
|
|
|
gofmt:
|
|
|
|
# Simplify code: gofmt with `-s` option.
|
|
|
|
# Default: true
|
|
|
|
simplify: false
|
|
|
|
misspell:
|
|
|
|
locale: US,UK
|
|
|
|
|
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
|
|
|
- gofmt
|
|
|
|
- goheader
|
|
|
|
- misspell
|
|
|
|
# - typecheck
|
|
|
|
# - dogsled
|
|
|
|
# - dupl
|
|
|
|
# - depguard
|
|
|
|
# - funlen
|
|
|
|
# - goconst
|
|
|
|
# - gocritic
|
|
|
|
# - gocyclo
|
|
|
|
# - goimports
|
|
|
|
# - goprintffuncname
|
|
|
|
# - ineffassign
|
|
|
|
# - nakedret
|
|
|
|
# - nolintlint
|
|
|
|
# - revive
|
2022-06-16 11:42:46 +02:00
|
|
|
- whitespace
|
2022-05-26 04:32:07 +02:00
|
|
|
- bodyclose
|
|
|
|
- deadcode
|
2022-06-07 11:00:36 +02:00
|
|
|
- errcheck
|
2022-05-09 05:19:02 +02:00
|
|
|
# - gosec
|
2022-06-14 07:44:09 +02:00
|
|
|
- gosimple
|
2022-05-26 04:32:07 +02:00
|
|
|
- govet
|
2022-05-09 05:19:02 +02:00
|
|
|
# - noctx
|
|
|
|
# - rowserrcheck
|
|
|
|
# - staticcheck
|
|
|
|
# - structcheck
|
|
|
|
# - stylecheck
|
|
|
|
# - unconvert
|
|
|
|
# - unparam
|
|
|
|
# - unused
|
|
|
|
# - varcheck
|
|
|
|
|
|
|
|
run:
|
|
|
|
skip-files:
|
|
|
|
- ".*_test.go"
|
|
|
|
- ".*test.go"
|
2022-05-26 04:32:07 +02:00
|
|
|
skip-dirs:
|
2022-06-07 11:00:36 +02:00
|
|
|
- "testing"
|
2022-05-09 05:19:02 +02:00
|
|
|
timeout: 5m
|
|
|
|
|
|
|
|
issue:
|
|
|
|
max-same-issues: 0
|
|
|
|
max-per-linter: 0
|