Skip to content

Commit

Permalink
fix: Update linter and ignore new lints
Browse files Browse the repository at this point in the history
  • Loading branch information
smf8 committed Dec 25, 2023
1 parent b91d756 commit 9ec9448
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- uses: golangci/golangci-lint-action@v3
name: golangci-lint
with:
version: v1.46.2
version: v1.55.2
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ linters:
- exhaustivestruct
- exhaustruct
- nolintlint
- depguard
- gosmopolitan
- goconst
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ format: check-formatter
find . -type f -name "*.go" -not -path "./vendor/*" | xargs -n 1 -I R gofumpt -w R

check-linter:
which golangci-lint || go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.46.2
which golangci-lint || go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2

lint: check-linter
golangci-lint run ./...
Expand Down

0 comments on commit 9ec9448

Please sign in to comment.