From aa025a5be26188d853bf3ffbf23e893f11c4752a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 22:26:40 +0000 Subject: [PATCH] chore(deps): update golangci/golangci-lint-action action to v7 (#787) * chore(deps): update golangci/golangci-lint-action action to v7 * bump golangci-lint version Signed-off-by: eternal-flame-AD --------- Signed-off-by: eternal-flame-AD Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: eternal-flame-AD --- .github/workflows/build.yml | 6 +- .golangci.yml | 107 ++++++++++++++++++++---------------- 2 files changed, 63 insertions(+), 50 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 72273a5..80ad201 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,9 +14,9 @@ jobs: - uses: actions/checkout@v4 - run: (cd ui && yarn) - run: make build-js - - uses: golangci/golangci-lint-action@v6 + - uses: golangci/golangci-lint-action@v7 with: - version: v1.64 + version: v2.0.2 args: --timeout=5m skip-cache: true - run: go mod download @@ -32,7 +32,7 @@ jobs: run: | export LD_FLAGS="-w -s -X main.Version=$VERSION -X main.BuildDate=$(date "+%F-%T") -X main.Commit=$(git rev-parse --verify HEAD) -X main.Mode=prod" echo "LD_FLAGS=$LD_FLAGS" >> $GITHUB_ENV - + make build sudo chown -R $UID build make package-zip diff --git a/.golangci.yml b/.golangci.yml index b8315d6..70c70cf 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,49 +1,62 @@ -issues: - exclude-dirs: - - plugin/example - - plugin/testing - +version: "2" linters: - enable: - - asciicheck - - copyloopvar - - godot - - gofmt - - gofumpt - - goimports - - gomodguard - - goprintffuncname - - gosimple - - govet - - ineffassign - - misspell - - nakedret - - nolintlint - - sqlclosecheck - - staticcheck - - stylecheck - - typecheck - - unconvert - - unused - - whitespace - disable: - - err113 - - errcheck - - funlen - - gochecknoglobals - - gocognit - - goconst - - gocyclo - - godox - - lll - - nestif - - nlreturn - - noctx - - testpackage - - wsl - -linters-settings: - gofumpt: - extra-rules: true + enable: + - asciicheck + - copyloopvar + - godot + - gomodguard + - goprintffuncname + - misspell + - nakedret + - nolintlint + - sqlclosecheck + - staticcheck + - unconvert + - whitespace + disable: + - err113 + - errcheck + - funlen + - gochecknoglobals + - gocognit + - goconst + - gocyclo + - godox + - lll + - nestif + - nlreturn + - noctx + - testpackage + - wsl + settings: misspell: - locale: US + locale: US + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + paths: + - plugin/example + - plugin/testing + - third_party$ + - builtin$ + - examples$ +formatters: + enable: + - gofmt + - gofumpt + - goimports + settings: + gofumpt: + extra-rules: true + exclusions: + generated: lax + paths: + - plugin/example + - plugin/testing + - third_party$ + - builtin$ + - examples$