diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 91feb3940..245f7e983 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,6 +19,7 @@ jobs: uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: go-version: 1.17 + cache: false - name: Checkout repository uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 - name: Setup golangci-lint diff --git a/.golangci.yml b/.golangci.yml index 4d163db1a..170626bfd 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,21 +1,21 @@ issues: max-same-issues: 0 - exclude-rules: - - linters: - - gosec - text: "G204" - - linters: - - revive - text: "var-naming" - - linters: - - revive - text: "exported" - - linters: - - revive - text: "empty-block" - - linters: - - revive - text: "unused-parameter" + exclude-rules: + - linters: + - gosec + text: "G204" + - linters: + - revive + text: "var-naming" + - linters: + - revive + text: "exported" + - linters: + - revive + text: "empty-block" + - linters: + - revive + text: "unused-parameter" linters: enable: - asciicheck @@ -26,6 +26,7 @@ linters: - gofmt - gofumpt - goimports + - gomodguard - gosec - gosimple - importas @@ -46,10 +47,16 @@ linters: - structcheck - unused - varcheck - linters-settings: gci: sections: - - standard - - default - - prefix(github.com/shirou) + - standard + - default + - prefix(github.com/shirou) + gomodguard: + blocked: + modules: + - io/ioutil: + recommandations: + - io + - os