From f2d1ccdfaee6d9b824c3623196868a46fb23bb7b Mon Sep 17 00:00:00 2001 From: myeunee Date: Sun, 3 Nov 2024 19:51:26 +0900 Subject: [PATCH] =?UTF-8?q?golangci-lint=20=ED=8C=8C=EC=9D=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20Finallllllllllllllllllll?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/golangci.yml | 7 ++++--- .golangci.yml | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/golangci.yml b/.github/workflows/golangci.yml index 66450d2..b8810fc 100644 --- a/.github/workflows/golangci.yml +++ b/.github/workflows/golangci.yml @@ -9,13 +9,14 @@ jobs: name: golangci-lint runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory + - name: Check out code uses: actions/checkout@v3 - - name: golangci-lint + + - name: Run golangci-lint with reviewdog uses: reviewdog/action-golangci-lint@v2 with: github_token: ${{ secrets.GITHUB_TOKEN }} golangci_lint_flags: "--config=../../.golangci.yml ./..." fail_on_error: true reporter: "github-pr-review" - working-directory: chapter15/section57 # golangci-lint 실행 디렉터리 설정 \ No newline at end of file + workdir: "chapter15/section57" \ No newline at end of file diff --git a/.golangci.yml b/.golangci.yml index 630728e..aca61ee 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -10,7 +10,7 @@ linters: disable-all: true enable: - goimports - - deadcode + - unused - errcheck - gocognit - gocyclo @@ -18,4 +18,4 @@ linters: - govet - misspell - staticcheck - - whitespace + - whitespace \ No newline at end of file