Update .golangci.yml

This commit is contained in:
Moroka8 committed 2026-04-04 17:30:09 +07:00
1 parent 6949cbd275
commit 8a4d2e57a2
1 file changed
+26 -23
+26 -23
View File
@@ -1,28 +1,19 @@
version: 1
version: "2"
run:
tests: true
linters:
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- revive
- misspell
- bodyclose
linters-settings:
- misspell
- revive
settings:
errcheck:
check-blank: true
check-type-assertions: true
check-blank: true
govet:
enable-all: true
disable:
- fieldalignment
enable-all: true
revive:
rules:
- name: blank-imports
@@ -42,12 +33,24 @@ linters-settings:
- name: unexported-return
- name: indent-error-flow
- name: errorf
run:
timeout: 5m
tests: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
issues:
exclude-use-default: true
max-issues-per-linter: 0
max-same-issues: 0
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$