Skip to content

Commit 9f9057c

Browse files
theakshaypantzakisk
authored andcommitted
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 <[email protected]>
1 parent 683cdf7 commit 9f9057c

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
@@ -82,6 +82,22 @@ linters:
8282
path: _test\.go
8383
- path: pkg/resolve/resolve.go
8484
text: don't use `init` function
85+
- linters:
86+
- revive
87+
path: pkg/errors/
88+
text: "var-naming"
89+
- linters:
90+
- revive
91+
path: pkg/llm/context/
92+
text: "var-naming"
93+
- linters:
94+
- revive
95+
path: pkg/sort/
96+
text: "var-naming"
97+
- linters:
98+
- revive
99+
path: pkg/test/http/
100+
text: "var-naming"
85101
paths:
86102
- vendor
87103
- pkg/provider/gitea/structs

0 commit comments

Comments
 (0)