.golangci.yaml 775 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. run:
  2. deadline: 90s
  3. skip-dirs:
  4. - (^|/)x509($|/)
  5. - (^|/)x509util($|/)
  6. - (^|/)asn1($|/)
  7. linters-settings:
  8. gocyclo:
  9. min-complexity: 40
  10. depguard:
  11. list-type: blacklist
  12. packages:
  13. - ^golang.org/x/net/context$
  14. - github.com/gogo/protobuf/proto
  15. - encoding/asn1
  16. - crypto/x509
  17. linters:
  18. disable-all: true
  19. enable:
  20. - deadcode
  21. - depguard
  22. - gocyclo
  23. - gofmt
  24. - goimports
  25. - govet
  26. - ineffassign
  27. - megacheck
  28. - misspell
  29. - revive
  30. - varcheck
  31. # TODO(gbelvin): write license linter and commit to upstream.
  32. # ./scripts/check_license.sh is run by ./scripts/presubmit.sh
  33. issues:
  34. # Don't turn off any checks by default. We can do this explicitly if needed.
  35. exclude-use-default: false