Chore: linter

This commit is contained in:
Grail Finder
2025-05-19 10:42:10 +03:00
parent a7e7da6f99
commit 94df5b830c
6 changed files with 53 additions and 44 deletions

View File

@@ -1,32 +1,44 @@
version: "2"
run:
timeout: 1m
concurrency: 2
tests: false
linters:
enable-all: false
disable-all: true
default: none
enable:
- bodyclose
- errcheck
- gosimple
- fatcontext
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- noctx
- perfsprint
- prealloc
presets:
- performance
linters-settings:
funlen:
lines: 80
statements: 50
lll:
line-length: 80
- staticcheck
- unused
settings:
funlen:
lines: 80
statements: 50
lll:
line-length: 80
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
issues:
exclude:
# Display all issues
max-issues-per-linter: 0
max-same-issues: 0
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$