From d00f204cc527e7549244a5fe2ada70cd002bbd23 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 4 Apr 2025 23:46:40 +0200 Subject: [PATCH] chore: update golangci-lint to v2 --- .gitlab-ci.yml | 2 +- .golangci.yaml | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 80aa57607..e9a288746 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,7 +30,7 @@ golangci-lint: stage: lint image: golangci/golangci-lint script: - - golangci-lint run --exclude-dirs pkg/paths + - golangci-lint run packer: stage: lint diff --git a/.golangci.yaml b/.golangci.yaml index 7718ccda2..f5473b2b9 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,5 +1,13 @@ --- -linters-settings: - staticcheck: - checks: ["all", "-SA1019" ] +version: "2" +linters: + settings: + staticcheck: + checks: + - all + - -SA1019 + - -ST1000 + exclusions: + paths: + - pkg/paths