From 5e4a10c573f0667135f51eca177cac2f5f2d1a58 Mon Sep 17 00:00:00 2001 From: s1d3sw1ped_bot <12+s1d3sw1ped_bot@git.s1d3sw1ped.com> Date: Wed, 2 Sep 2026 02:22:16 +0000 Subject: [PATCH] ci: Bump tag-release golangci-lint to v8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Align tag-release Lint with push-ci / PR CI: - golangci/golangci-lint-action@v8 - version: v2.13.2 - args: --timeout=5m Gate the Fyne release job with needs: [lint, test] so a broken lint cannot publish (root cause of tag v1.0.2 overall failure). Add optional .golangci.yml from steamcache2 v2 skeleton (misspell; no steamcache-specific path excludes; no gosec until Rex wants it). Keep Fyne + release-action path; no GoReleaser; no master→main rename. Fixes https://git.s1d3sw1ped.com/s1d3sw1ped/SwipedModSwitcher/issues/34 --- .gitea/workflows/tag-release.yaml | 6 ++-- .golangci.yml | 49 +++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 .golangci.yml diff --git a/.gitea/workflows/tag-release.yaml b/.gitea/workflows/tag-release.yaml index 246782c..7bfe80c 100644 --- a/.gitea/workflows/tag-release.yaml +++ b/.gitea/workflows/tag-release.yaml @@ -28,9 +28,10 @@ jobs: run: go mod tidy - name: Lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v8 with: - version: latest + version: v2.13.2 + args: --timeout=5m test: name: Test @@ -64,6 +65,7 @@ jobs: release: name: Build versioned release + needs: [lint, test] runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..cc77230 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,49 @@ +# .golangci.yml — SwipedModSwitcher (golangci-lint v2) +# Adapted from steamcache2 v2 skeleton; no project-specific path excludes yet. +# Run with: golangci-lint run ./... +version: "2" + +run: + timeout: 5m + modules-download-mode: readonly + +linters: + # Defaults (errcheck, govet, ineffassign, staticcheck, unused, …) plus: + enable: + - misspell + settings: + errcheck: + check-type-assertions: false + check-blank: false + staticcheck: + checks: + - all + - "-ST*" + - "-QF*" + govet: + enable-all: true + disable: + - fieldalignment + - shadow + exclusions: + generated: lax + paths: + - dist + - bin + rules: + - path: _test\.go + linters: + - errcheck + +formatters: + enable: + - goimports + exclusions: + generated: lax + paths: + - dist + - bin + +issues: + max-issues-per-linter: 0 + max-same-issues: 0