From 6e2b10b788315996037cec3b9430a3d79a339f82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sun, 20 Mar 2022 14:40:47 +0800 Subject: [PATCH] fix lint --- .github/workflows/pull.yml | 3 +++ .github/workflows/push.yml | 2 ++ .golangci.yml | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index f1b99554..ef4a65fa 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -25,6 +25,9 @@ jobs: # Optional: golangci-lint command line arguments. # args: --issues-exit-code=0 + # Optional: if set to true then the action will use pre-installed Go. + skip-go-installation: true + # Optional: show only new issues if it's a pull request. The default value is `false`. # only-new-issues: true diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index e7eb1571..a66debe7 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -18,6 +18,8 @@ jobs: with: version: latest args: --issues-exit-code=0 + # Optional: if set to true then the action will use pre-installed Go. + skip-go-installation: true - name: Commit back continue-on-error: true run: | diff --git a/.golangci.yml b/.golangci.yml index 047abed8..182d0ee8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -26,7 +26,7 @@ linters: - exhaustive #- funlen #- goconst - #- gocritic + - gocritic #- gocyclo - gofmt - goimports