From 6b6d8067a1e4baa6c81df399a66f56fe8a388c72 Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Tue, 3 Feb 2026 09:58:18 +0800 Subject: [PATCH] chore: move golangci-lint config to config file --- .github/workflows/lint.yaml | 2 -- .golangci.yaml | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 51faac6..c535c2e 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -18,8 +18,6 @@ jobs: with: go-version: stable - uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 - with: - args: --timeout=180s --enable gocritic lint-commits: permissions: contents: read diff --git a/.golangci.yaml b/.golangci.yaml index 3506354..f83d768 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,5 +1,9 @@ version: "2" +run: + timeout: 180s linters: + enable: + - gocritic exclusions: presets: - std-error-handling