github.com/Mrs4s/go-cqhttp@v1.2.0/.golangci.yml (about) 1 linters-settings: 2 errcheck: 3 ignore: fmt:.*,io/ioutil:^Read.* 4 ignoretests: true 5 6 goimports: 7 local-prefixes: github.com/Mrs4s/go-cqhttp 8 9 gocritic: 10 disabled-checks: 11 - exitAfterDefer 12 13 forbidigo: 14 # Forbid the following identifiers 15 forbid: 16 - ^fmt\.Errorf$ # consider errors.Errorf in github.com/pkg/errors 17 18 linters: 19 # please, do not use `enable-all`: it's deprecated and will be removed soon. 20 # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint 21 disable-all: true 22 fast: false 23 enable: 24 - bodyclose 25 - durationcheck 26 - gofmt 27 - goimports 28 - errcheck 29 - exportloopref 30 - exhaustive 31 - bidichk 32 - gocritic 33 - gosimple 34 - govet 35 - ineffassign 36 #- nolintlint 37 - staticcheck 38 - stylecheck 39 - unconvert 40 - usestdlibvars 41 - unparam 42 - unused 43 - whitespace 44 - prealloc 45 - predeclared 46 - asciicheck 47 - revive 48 - forbidigo 49 - makezero 50 51 run: 52 # default concurrency is a available CPU number. 53 # concurrency: 4 # explicitly omit this value to fully utilize available resources. 54 deadline: 5m 55 issues-exit-code: 1 56 skip-dirs: 57 - db 58 - cmd/api-generator 59 - internal/encryption 60 tests: true 61 62 # output configuration options 63 output: 64 format: "colored-line-number" 65 print-issued-lines: true 66 print-linter-name: true 67 uniq-by-line: true 68 69 issues: 70 # Fix found issues (if it's supported by the linter) 71 fix: true 72 exclude-use-default: false 73 exclude: 74 - "Error return value of .((os.)?std(out|err)..*|.*Close|.*Seek|.*Flush|os.Remove(All)?|.*print(f|ln)?|os.(Un)?Setenv). is not check"