From b17e3ab25f1902e9b45b31d543fd360860d9c0dd Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Fri, 23 Jun 2023 20:03:32 +0800 Subject: [PATCH 1/2] remove depguard --- .github/workflows/golangci-lint.yml | 4 ++-- .golangci.yml | 23 +++++++++-------------- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 11e422b923..45e3b3c1d7 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -19,13 +19,13 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: "1.20" + go-version: '1.20' - uses: actions/checkout@v3 - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version - version: v1.52.2 + version: v1.53.3 # Optional: working directory, useful for monorepos # working-directory: somedir diff --git a/.golangci.yml b/.golangci.yml index 430440a76f..4d8fa8e249 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,14 +3,13 @@ run: timeout: 10m sort-results: true allow-parallel-runners: true - skip-dirs: - - "legacy_ibc_testing" - - "testutil" + skip-dirs: + - 'legacy_ibc_testing' + - 'testutil' linters: disable-all: true enable: - - depguard - dogsled - exportloopref - goconst @@ -31,28 +30,24 @@ linters: - unconvert - unused - - - - issues: exclude-rules: - - text: "Use of weak random number generator" + - text: 'Use of weak random number generator' linters: - gosec - - text: "ST1003:" + - text: 'ST1003:' linters: - stylecheck # FIXME: Disabled until golangci-lint updates stylecheck with this fix: # https://github.com/dominikh/go-tools/issues/389 - - text: "ST1016:" + - text: 'ST1016:' linters: - stylecheck - - path: "migrations" - text: "SA1019:" + - path: 'migrations' + text: 'SA1019:' linters: - staticcheck - - text: "leading space" + - text: 'leading space' linters: - nolintlint From b4a714c1cff32c4ab90689b7232ef2ad21da2b22 Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Mon, 21 Aug 2023 01:55:26 +0800 Subject: [PATCH 2/2] bump golangci-lint --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 45e3b3c1d7..56166af86a 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -25,7 +25,7 @@ jobs: uses: golangci/golangci-lint-action@v3 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version - version: v1.53.3 + version: v1.54.1 # Optional: working directory, useful for monorepos # working-directory: somedir