Skip to content

Commit

Permalink
chore: update linter to latest version and disable govet
Browse files Browse the repository at this point in the history
  • Loading branch information
mbreithecker committed Dec 12, 2024
1 parent 58f43ef commit c2d0ccc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jobs:
go-version-file: 'go.mod'
# Lint go files with golangci-lint
- name: Lint go files with golangci-lint
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=10m
# TODO temporarily disable govet
args: --timeout=10m -D govet
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ dev-continue:
###############################################################################

gofumpt_cmd=mvdan.cc/gofumpt
golangci_lint_cmd=github.com/golangci/golangci-lint/cmd/golangci-lint
golangci_lint_cmd=github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2

format:
@echo "🤖 Running formatter..."
Expand All @@ -143,7 +143,8 @@ format:

lint:
@echo "🤖 Running linter..."
@go run $(golangci_lint_cmd) run --skip-dirs scripts --timeout=10m
# TODO temporarily disabled govet
@go run $(golangci_lint_cmd) run --exclude-dirs scripts --timeout=10m -D govet
@echo "✅ Completed linting!"

###############################################################################
Expand Down

0 comments on commit c2d0ccc

Please sign in to comment.