-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
36 lines (33 loc) · 961 Bytes
/
Copy path.golangci.yml
File metadata and controls
36 lines (33 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# golangci-lint v2 config. v1 cannot lint this module at all: it only supports
# Go versions up to the one it was built with, and go.mod declares `go 1.26`.
# The pinned version lives in .github/workflows/ci.yml (GOLANGCI_LINT_VERSION).
version: "2"
linters:
# standard = errcheck, govet, ineffassign, staticcheck, unused.
default: standard
enable:
- copyloopvar
- misspell
- revive
settings:
misspell:
locale: US
exclusions:
presets:
- comments
- std-error-handling
- common-false-positives
- legacy
rules:
# Tests assert on values, not on the error of every Close/Write.
- path: _test\.go
linters: [errcheck]
issues:
# Report everything. The defaults (50 per linter, 3 per message) silently
# truncate: the first run of this config showed 12 issues where there were 19.
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gofmt
- goimports