diff --git a/.golangci.yml b/.golangci.yml index e404d5d..7378286 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,12 +1,11 @@ run: - deadline: 10m - - skip-files: - - "zz_\\..+\\.go$" + deadline: 20m output: # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" - format: colored-line-number + formats: + - format: colored-line-number + path: stdout linters-settings: errcheck: @@ -27,9 +26,9 @@ linters-settings: # report about shadowed variables check-shadowing: false - golint: - # minimal confidence for issues, default is 0.8 - min-confidence: 0.8 + revive: + # confidence for issues, default is 0.8 + confidence: 0.8 gofmt: # simplify code: gofmt with `-s` option, true by default @@ -42,7 +41,7 @@ linters-settings: gocyclo: # minimal code complexity to report, 30 by default (but we recommend 10-20) - min-complexity: 10 + min-complexity: 20 maligned: # print struct with more effective memory layout or not, false by default @@ -108,12 +107,11 @@ linters: - govet - gocyclo - gocritic - - interfacer - goconst - goimports - gofmt # We enable this as well as goimports for its simplify mode. - prealloc - - golint + - revive - unconvert - misspell - nakedret @@ -125,6 +123,10 @@ linters: issues: + # Exclude generated files + exclude-files: + - "zz_\\..+\\.go$" + # Excluding configuration per-path and per-linter exclude-rules: # Exclude some linters from running on tests files.