From 75bc7afb9387a751f4f02ed4e85481ba6b54d25d Mon Sep 17 00:00:00 2001 From: Mahe Tardy Date: Tue, 18 Jun 2024 11:44:49 +0200 Subject: [PATCH] deps: update golangci-lint workflows, config and version Signed-off-by: Mahe Tardy --- .github/workflows/golangci-lint.yaml | 10 +++++----- .golangci.yaml | 5 ++--- Makefile | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 984d1e4..4e720a6 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -14,13 +14,13 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: - go-version: 1.19 - - uses: actions/checkout@v3 + go-version: 1.22.4 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1 with: - version: v1.49.0 + version: v1.59.0 # Optional: show only new issues if it's a pull request. The default value is `false`. only-new-issues: true diff --git a/.golangci.yaml b/.golangci.yaml index ba367e0..042b4cc 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,20 +1,19 @@ run: - go: '1.19' timeout: 5m linters: disable-all: true # Enable specific linter enable: - # default linters as of v1.49.0 + # default linters as of v1.59.0 - errcheck - gosimple - govet - ineffassign - staticcheck - - typecheck - unused # specific linters + - typecheck - dupl - whitespace - revive diff --git a/Makefile b/Makefile index 8b0d9ca..ad845c8 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ VERSION=$$(git describe --tags 2>/dev/null || echo dev) GITCOMMIT=$$(git rev-parse HEAD) BUILDERARCH=$$(uname -m) -GOLANGCI_VERSION=1.49.0 +GOLANGCI_VERSION=1.59.0 OUTPUTNAME=kdigger