telegram-mcp-read-only/.golangci.yaml
2025-04-02 03:05:45 +03:00

99 lines
1.6 KiB
YAML

run:
concurrency: 4
timeout: 10m
issues-exit-code: 2
tests: true
build-tags: []
allow-parallel-runners: true
allow-serial-runners: true
go: '1.24'
output:
formats:
- format: colored-line-number
print-issued-lines: true
print-linter-name: true
path-prefix: ""
sort-results: true
sort-order:
- linter
- severity
- file
show-stats: true
linters:
enable:
- errcheck
- govet
- gosimple
- ineffassign
- staticcheck
- unused
- asciicheck
- bodyclose
- canonicalheader
- copyloopvar
- dupl
- errorlint
- gocheckcompilerdirectives
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- gosec
- grouper
- inamedparam
- lll
- makezero
- nestif
- nilerr
- nilnil
- nlreturn
- noctx
- perfsprint
- prealloc
- revive
- testifylint
- whitespace
- importas
- wrapcheck
- nolintlint
linters-settings:
lll:
line-length: 150
wrapcheck:
ignoreSigs:
- github.com/pkg/errors.Wrap(
- github.com/pkg/errors.Wrapf(
- github.com/pkg/errors.New(
- fmt.Errorf
gocyclo:
min-complexity: 15
dupl:
threshold: 100
issues:
exclude-dirs-use-default: true
exclude-files: []
exclude-rules:
- path: _test\.go
linters:
- gocyclo
- errcheck
- dupl
- gosec
- lll
- path: internal/config/
linters:
- importas
- path: cmd/.*\.go
text: "exitAfterDefer"
linters:
- gocritic
- text: "should be written without leading space as"
linters: [nolintlint]