diff --git a/.golangci.yml b/.golangci.yml index 80b9da9..3743ada 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,10 +1,12 @@ run: - deadline: 1m - skip-files: + timeout: 1m + modules-download-mode: readonly + +issues: + exclude-files: - ".*\\.pb\\.go" - skip-dirs: + exclude-dirs: - pkg/client - modules-download-mode: readonly linters: enable-all: true @@ -13,8 +15,8 @@ linters: - testpackage # testpackage is a golang linter that makes you use a separate _test package. - wsl - wrapcheck - - goerr113 - - gomnd + - err113 + - mnd - exhaustruct - nestif - gofumpt @@ -25,12 +27,6 @@ linters: - gci - lll - gocognit - - ifshort # deprecated - - maligned # deprecated - - golint # deprecated - - interfacer #deprecated - - scopelint # deprecated - - exhaustivestruct # deprecated linters-settings: gosimple: @@ -42,4 +38,4 @@ linters-settings: main: deny: - pkg: io/ioutil - desc: "replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1" \ No newline at end of file + desc: "replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1"