Skip to content

Commit e93bf3a

Browse files
committed
chore(lint): scope revive var-naming exclusion to specific packages
Replace global var-naming rule disable with targeted exclusions for packages that conflict with Go stdlib names: pkg/errors, pkg/llm/context, pkg/sort, and pkg/test/http. Signed-off-by: Akshay Pant <akshay.akshaypant@gmail.com>
1 parent 610dd2c commit e93bf3a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.golangci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,22 @@ linters:
9090
path: _test\.go
9191
- path: pkg/resolve/resolve.go
9292
text: don't use `init` function
93+
- linters:
94+
- revive
95+
path: pkg/errors/
96+
text: "var-naming"
97+
- linters:
98+
- revive
99+
path: pkg/llm/context/
100+
text: "var-naming"
101+
- linters:
102+
- revive
103+
path: pkg/sort/
104+
text: "var-naming"
105+
- linters:
106+
- revive
107+
path: pkg/test/http/
108+
text: "var-naming"
93109
paths:
94110
- vendor
95111
- pkg/provider/gitea/structs

0 commit comments

Comments
 (0)