Skip to content

Commit 3f870ef

Browse files
authored
Add default linters and bump golangci-lint version
1 parent ff98fc4 commit 3f870ef

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
- name: golangci-lint
2121
uses: golangci/golangci-lint-action@v8
2222
with:
23-
version: v2.1
23+
version: v2.5

.golangci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ linters:
1111
- misspell
1212
- nakedret
1313
- revive
14+
- errcheck
15+
- staticcheck
16+
- govet
17+
- ineffassign
18+
- unused
1419
exclusions:
1520
generated: lax
1621
presets:

script/lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ gofmt -s -w .
55

66
BINDIR="$(git rev-parse --show-toplevel)"/bin
77
BINARY=$BINDIR/golangci-lint
8-
GOLANGCI_LINT_VERSION=v2.2.1
8+
GOLANGCI_LINT_VERSION=v2.5.0
99

1010
if [ ! -f "$BINARY" ]; then
1111
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s "$GOLANGCI_LINT_VERSION"

0 commit comments

Comments
 (0)