Skip to content

Commit 51384d8

Browse files
committed
bump golanglint-ci.
1 parent a51abbd commit 51384d8

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Check out source
1919
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3
2020
- name: Install Linters
21-
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.3"
21+
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.2.2"
2222
- name: Build
2323
run: go build ./...
2424
- name: Test

.golangci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1+
version: 2
2+
13
run:
2-
deadline: 10m
4+
timeout: 10m
35

46
linters:
57
disable-all: true
68
enable:
79
- asciicheck
810
- bidichk
911
- bodyclose
10-
- gofmt
11-
- goimports
12-
- gosimple
1312
- govet
1413
- grouper
1514
- ineffassign
@@ -20,6 +19,9 @@ linters:
2019
- rowserrcheck
2120
- sqlclosecheck
2221
- tparallel
23-
- typecheck
2422
- unconvert
2523
- unused
24+
25+
formatters:
26+
- gofmt
27+
- goimports

goclean.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ go mod download
2020
go mod tidy
2121
UPDATED_MOD_STATUS=$(git status --porcelain go.mod go.sum)
2222
if [ "$UPDATED_MOD_STATUS" != "$MOD_STATUS" ]; then
23-
echo "Running `go mod tidy` modified go.mod and/or go.sum"
23+
echo "Running $(go mod tidy) modified go.mod and/or go.sum"
2424
exit 1
2525
fi
2626

0 commit comments

Comments
 (0)