diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 506a2cf6..74f2ad39 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,17 +2,16 @@ name: Lint Check on: [pull_request] jobs: - build: + lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install Go - uses: actions/setup-go@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: 1.17 + go-version: '1.21' - name: "Run lint" - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: - version: v1.41 + version: v1.57.2 args: --timeout=10m only-new-issues: true \ No newline at end of file diff --git a/.golangci.yaml b/.golangci.yaml index 348669d1..f859d0cb 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -16,23 +16,25 @@ linters: - cyclop - nestif - gocognit + - structcheck + - ifshort + - nosnakecase + - deadcode + - varcheck service: - golangci-lint-version: 1.41 + golangci-lint-version: 1.57.2 -run: - skip-dirs: +issues: + new: true + exclude-dirs: - gov/simulation - gov/client - simulation - - skip-files: + exclude-files: - _test.go - "test_.*" -issues: - new: true - linters-settings: errcheck: check-type-assertions: true