diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 68d283aa..2b2c1a17 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,6 +16,8 @@ jobs: golangci-lint: uses: networkservicemesh/.github/.github/workflows/golangci-lint.yaml@main + with: + linter-version: v1.53.3 exclude-fmt-errorf: uses: networkservicemesh/.github/.github/workflows/exclude-fmt-errorf.yaml@main diff --git a/.golangci.yaml b/.golangci.yaml index 182f9c15..674f69de 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,7 +1,7 @@ --- run: # concurrency: 6 - go: "1.17" + go: "1.20" timeout: 2m issues-exit-code: 1 tests: true @@ -42,13 +42,14 @@ linters-settings: min-len: 2 min-occurrences: 2 depguard: - list-type: blacklist - include-go-root: false - packages: - - errors - packages-with-error-message: - # specify an error message to output when a blacklisted package is used - - errors: "Please use \"github.com/pkg/errors\" instead of \"errors\" in go imports" + rules: + main: + files: + - $all + - $test + deny: + - pkg: "errors" + desc: "Please use \"github.com/pkg/errors\" instead of \"errors\" in go imports" misspell: locale: US unparam: @@ -145,23 +146,23 @@ linters: - gocyclo - gofmt - goimports - - revive + # - revive - gosec - - gosimple - - govet + # - gosimple + # - govet - ineffassign - interfacer # - lll - misspell - nakedret - scopelint - - staticcheck + # - staticcheck - structcheck - stylecheck - typecheck - unconvert - unparam - # - unused + - unused - varcheck - whitespace issues: diff --git a/go.mod b/go.mod index 73fa8d2e..71cafa0e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/networkservicemesh/sdk-kernel -go 1.18 +go 1.20 require ( github.com/edwarnicke/exechelper v1.0.2