github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/.golangci.yml (about) 1 # This file contains all available configuration options 2 # with their default values. 3 4 # options for analysis running 5 run: 6 # timeout for analysis, e.g. 30s, 5m, default is 1m 7 timeout: 2m 8 9 # include test files or not, default is true 10 tests: false 11 12 skip-files: 13 - (^|.*/)grpc/(.*) 14 15 # output configuration options 16 output: 17 # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" 18 format: tab 19 20 # all available settings of specific linters 21 linters-settings: 22 exhaustive: 23 # indicates that switch statements are to be considered exhaustive if a 24 # 'default' case is present, even if all enum members aren't listed in the 25 # switch 26 default-signifies-exhaustive: true 27 govet: 28 # report about shadowed variables 29 check-shadowing: false 30 31 linters: 32 enable: 33 # mandatory linters 34 - govet 35 - revive 36 37 # some default golangci-lint linters 38 - errcheck 39 - gosimple 40 - ineffassign 41 - staticcheck 42 - typecheck 43 44 # extra linters 45 - exhaustive 46 - gofmt 47 - whitespace 48 - goimports 49 disable-all: true 50 fast: false 51 52 issues: 53 # Excluding configuration per-path, per-linter, per-text and per-source 54 exclude-rules: 55 - path: v2 # ignore stutters in universal structures due to protobuf compatibility 56 linters: 57 - golint 58 text: "stutters;" 59 60 - path: grpc # ignore case errors in grpc setters due to protobuf compatibility 61 linters: 62 - golint 63 text: "should be" 64 65 - linters: # ignore SA6002 since we use pool of []byte, however we can switch to *bytes.Buffer 66 - staticcheck 67 text: "SA6002:"