Skip to content

Commit db0594e

Browse files
committed
Run golangci-lint in CI
1 parent bc8b604 commit db0594e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
cache: false
1414
- run: make check
1515
env: { SKIP_LINT: true }
16-
# - uses: golangci/golangci-lint-action@v4
17-
# with: { version: "latest" }
16+
- uses: golangci/golangci-lint-action@v6
17+
with: { version: "latest" }
1818
- run: make cov
1919
env: { GOEXPERIMENT: rangefunc }
2020
- uses: codecov/codecov-action@v4

.golangci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ linters-settings:
66
package-average: 0.5
77
skip-tests: false
88

9-
govet:
10-
check-shadowing: true
11-
enable-all: true
9+
govet: { enable-all: true }
1210

1311
misspell: { locale: US }
1412

1513
depguard:
1614
rules:
17-
main: { allow: ["$gostd", "github.com/BooleanCat/go-functional"] }
15+
main: { allow: ["$gostd", "github.com/BooleanCat/go-functional/v2"] }
1816

1917
linters:
2018
disable-all: true

0 commit comments

Comments
 (0)