Skip to content

Commit 06ecda1

Browse files
committed
chore: migrate to golangci-lint v2
1 parent 73b1ede commit 06ecda1

2 files changed

Lines changed: 121 additions & 112 deletions

File tree

.golangci.yaml

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
---
2+
version: "2"
3+
4+
run:
5+
go: "1.23"
6+
7+
linters:
8+
default: none
9+
enable:
10+
- bodyclose
11+
- copyloopvar
12+
- dogsled
13+
- errcheck
14+
- exhaustive
15+
- exhaustruct
16+
- funlen
17+
- gochecknoinits
18+
- gocognit
19+
- goconst
20+
- gocritic
21+
- gocyclo
22+
- godot
23+
- gomodguard
24+
- goprintffuncname
25+
- gosec
26+
- govet
27+
- ineffassign
28+
- lll
29+
- makezero
30+
- misspell
31+
- mnd
32+
- nakedret
33+
- nestif
34+
- nilerr
35+
- nolintlint
36+
- prealloc
37+
- revive
38+
- rowserrcheck
39+
- sqlclosecheck
40+
- staticcheck
41+
- tagliatelle
42+
- testpackage
43+
- unconvert
44+
- unparam
45+
- unused
46+
- wastedassign
47+
- whitespace
48+
- wsl
49+
settings:
50+
errcheck:
51+
check-type-assertions: true
52+
check-blank: true
53+
gocritic:
54+
disabled-checks:
55+
- dupImport
56+
enabled-tags:
57+
- diagnostic
58+
- experimental
59+
- opinionated
60+
- performance
61+
- style
62+
gocyclo:
63+
min-complexity: 20
64+
gomodguard:
65+
blocked:
66+
modules:
67+
- github.com/golang/protobuf:
68+
recommendations:
69+
- google.golang.org/protobuf
70+
lll:
71+
line-length: 160
72+
misspell:
73+
locale: US
74+
tagliatelle:
75+
case:
76+
rules:
77+
json: snake
78+
unparam:
79+
check-exported: true
80+
unused:
81+
exported-fields-are-used: false
82+
varnamelen:
83+
ignore-names:
84+
- err
85+
- tc
86+
- id
87+
exclusions:
88+
generated: lax
89+
rules:
90+
- linters:
91+
- funlen
92+
path: _test\.go
93+
paths:
94+
- third_party$
95+
- builtin$
96+
- examples$
97+
98+
issues:
99+
max-issues-per-linter: 0
100+
max-same-issues: 0
101+
102+
formatters:
103+
enable:
104+
- gci
105+
- gofumpt
106+
- goimports
107+
settings:
108+
gci:
109+
sections:
110+
- standard
111+
- default
112+
- prefix(github.com/get-eventually/go-eventually)
113+
goimports:
114+
local-prefixes:
115+
- prefix(github.com/get-eventually/go-eventually)
116+
exclusions:
117+
generated: lax
118+
paths:
119+
- third_party$
120+
- builtin$
121+
- examples$

.golangci.yml

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)