From bd5d8b4652f47fea523c6d41d70071e7b29e93c1 Mon Sep 17 00:00:00 2001 From: kitamin <11195207+meian@users.noreply.github.com> Date: Fri, 9 Sep 2022 02:31:58 +0900 Subject: [PATCH] fixup! #96 Add lint github action --- .github/config/.golangci.yml | 11 +++++++++++ .github/workflows/lint.yml | 17 ----------------- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/.github/config/.golangci.yml b/.github/config/.golangci.yml index c760022..49a84ec 100644 --- a/.github/config/.golangci.yml +++ b/.github/config/.golangci.yml @@ -7,4 +7,15 @@ run: go: "1.18" linters: enable-all: true + disable: + - deadcode + - exhaustivestruct + - golint + - ifshort + - interfacer + - maligned + - nosnakecase + - scopelint + - structcheck + - varcheck fast: false diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0ad930c..c197ac2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,20 +19,3 @@ jobs: # Can pass --config flag to change golangci-lint behavior and target directory. golangci_lint_flags: "--config=.github/config/.golangci.yml ./testdata" - # workdir: subdirectory/ - - # You can add more and more supported linters with different config. - errcheck: - name: errcheck - runs-on: ubuntu-latest - steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: errcheck - uses: reviewdog/action-golangci-lint@v2 - with: - go_version: "1.18" - golangci_lint_flags: "--disable-all -E errcheck" - tool_name: errcheck - level: info - fail_on_error: true