volcano.sh/volcano@v1.9.0/.golangci.yml (about) 1 # options for analysis running 2 run: 3 # default concurrency is a available CPU number 4 concurrency: 4 5 6 # timeout for analysis, e.g. 30s, 5m, default is 1m 7 timeout: 10m 8 9 # exit code when at least one issue was found, default is 1 10 issues-exit-code: 1 11 12 # which dirs to skip: issues from them won't be reported; 13 # can use regexp here: generated.*, regexp is applied on full path; 14 # default value is empty list, but default dirs are skipped independently 15 # from this option's value (see skip-dirs-use-default). 16 # "/" will be replaced by current OS file path separator to properly work 17 # on Windows. 18 skip-dirs: 19 - vendor 20 - test 21 - example 22 skip-files: 23 - .*_test.go 24 25 # output configuration options 26 output: 27 # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" 28 format: colored-line-number 29 30 # print lines of code with issue, default is true 31 print-issued-lines: true 32 33 # print linter name in the end of issue text, default is true 34 print-linter-name: true 35 36 # make issues output unique by line, default is true 37 uniq-by-line: true 38 39 linters: 40 # please, do not use `enable-all`: it's deprecated and will be removed soon. 41 # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint 42 disable-all: true 43 enable: 44 # linters maintained by golang.org 45 - gofmt 46 - goimports 47 - govet 48 # linters default enabled by golangci-lint . 49 - deadcode 50 #- errcheck 51 - gosimple 52 - ineffassign 53 - staticcheck 54 - structcheck 55 - typecheck 56 - unused 57 - varcheck 58 # other linters supported by golangci-lint. 59 #- gosec 60 #- revive 61 - whitespace 62 63 linters-settings: 64 goimports: 65 local-prefixes: volcano.sh 66 staticcheck: 67 checks: 68 - "all" 69 - "-SA1019" # TODO(fix) Using a deprecated function, variable, constant or field 70 71