Skip to content

Commit ff4b81e

Browse files
committed
chore(SOFA-599): upgrade to golangci-lint v2
1 parent 80493da commit ff4b81e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

‎.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: make fmtcheck
2727

2828
- name: Linter
29-
uses: golangci/golangci-lint-action@v6
29+
uses: golangci/golangci-lint-action@v8
3030

3131
build:
3232
name: test

‎.golangci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
version: "2"
12
run:
23
timeout: 5m
3-
linters:
4+
formatters:
45
enable:
56
- goimports
6-
- revive
7-
- ineffassign
8-
- errcheck

‎Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ clean:
1717
if [ -f "${NAME}" ] ; then rm ${NAME} ; fi
1818

1919
lint:
20-
docker run --rm -v $(PWD):/app -w /app golangci/golangci-lint:v1.59.1 golangci-lint run -v
20+
docker run --rm -v $(PWD):/app -w /app golangci/golangci-lint:v2.1.6 golangci-lint run -v
2121

2222
fmtcheck: tools.goimports
2323
@echo "--> checking code formatting with 'goimports' tool"

0 commit comments

Comments
 (0)