Skip to content

Commit 62dfc00

Browse files
committed
fix: golangci-lint version issues
1 parent ba3b89c commit 62dfc00

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
run: make lint-gomod
3939

4040
- name: Run golangci-lint
41-
uses: golangci/golangci-lint-action@v8
41+
uses: golangci/golangci-lint-action@v9
4242
with:
43-
version: v2.4
43+
version: v2.7
4444
args: --timeout=5m
4545

4646
- name: Run tests

‎.golangci.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ linters:
5353
- common-false-positives
5454
- legacy
5555
- std-error-handling
56+
rules:
57+
- path: _test\.go
58+
linters:
59+
- goconst
5660
paths:
5761
- vendor
5862
- third_party$

‎internal/config/alt/fs_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func TestFindConfigDir(t *testing.T) {
1515

1616
t.Run("XDG_CONFIG_HOME exists", func(t *testing.T) {
1717
switch runtime.GOOS {
18-
case "windows", "darwin", "ios", "plan9": //nolint:goconst
18+
case "windows", "darwin", "ios", "plan9":
1919
t.Skip()
2020
}
2121
err := os.Setenv("XDG_CONFIG_HOME", tempDir)

0 commit comments

Comments
 (0)