github.com/google/go-github/v64@v64.0.0/.golangci.yml (about) 1 run: 2 build-tags: 3 - integration 4 timeout: 10m 5 linters: 6 enable: 7 - dogsled 8 - dupl 9 - gofmt 10 - goimports 11 - gosec 12 - misspell 13 - nakedret 14 - stylecheck 15 - unconvert 16 - unparam 17 - whitespace 18 linters-settings: 19 gosec: 20 excludes: 21 # duplicates errcheck 22 - G104 23 # performance issue: see https://github.com/golangci/golangci-lint/issues/4039 24 # and https://github.com/securego/gosec/issues/1007 25 - G602 26 issues: 27 exclude-use-default: false 28 exclude-rules: 29 - linters: 30 - dupl 31 - unparam 32 - gosec 33 - dogsled 34 path: _test\.go 35 36 # We need to pass nil Context in order to test DoBare erroring on nil ctx. 37 - linters: [ staticcheck ] 38 text: 'SA1012: do not pass a nil Context' 39 path: _test\.go 40 41 # We need to use sha1 for validating signatures 42 - linters: [ gosec ] 43 text: 'G505: Blocklisted import crypto/sha1: weak cryptographic primitive' 44 45 # This is adapted from golangci-lint's default exclusions. It disables linting for error checks on 46 # os.RemoveAll and any function ending in "Close". 47 - linters: [ errcheck ] 48 text: Error return value of .(.*Close|os\.Remove(All)?). is not checked 49 50 # We don't care about file inclusion via variable in examples or internal tools. 51 - linters: [ gosec ] 52 text: 'G304: Potential file inclusion via variable' 53 path: '^(example|tools)\/'