github.com/webdestroya/awsmocker@v0.2.6/.golangci.yml (about) 1 linters: 2 disable-all: true 3 enable: 4 - errcheck 5 - gofmt 6 - goimports 7 - gosec 8 - gosimple 9 - govet 10 - ineffassign 11 - misspell 12 - prealloc 13 - staticcheck 14 - typecheck 15 - unconvert 16 - unused 17 - asciicheck 18 - errorlint 19 - depguard 20 - goconst 21 - makezero 22 - nonamedreturns 23 - predeclared 24 25 issues: 26 exclude: 27 - "Error return value of .((os\\.)?std(out|err)\\..*|.*Close|.*\\.Exit|.*Flush|os\\.Remove(All)?|.*printf?|os\\.(Un)?Setenv|io\\.WriteString|io\\.Copy). is not checked" 28 - 'declaration of "err"' 29 exclude-rules: 30 31 # it's all fake 32 - text: "G101" # G101: potential hard coded creds 33 linters: 34 - gosec 35 36 # yea, it's a test proxy. we're way beyond security 37 - text: "G402" # TLS InsecureSkipVerify set true 38 linters: 39 - gosec 40 41 # it's used for a serial number 42 - text: "G404" # G404: Use of weak random number generator (math/rand instead of crypto/rand) 43 linters: 44 - gosec 45 46 47 # output configuration options 48 output: 49 format: 'colored-line-number' 50 print-issued-lines: true 51 print-linter-name: true 52 53 linters-settings: 54 depguard: 55 list-type: denylist 56 packages: 57 - github.com/aws/aws-sdk-go/aws 58 packages-with-error-message: 59 - github.com/aws/aws-sdk-go/aws: 'use v2 sdk instead' 60 61 gocritic: 62 disabled-checks: 63 - newDeref # it's wrong on generics 64 65 govet: 66 check-shadowing: true 67 # enable-all: true 68 69 run: 70 skip-dirs: 71 - scripts