revive.toml 694 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. ignoreGeneratedHeader = false
  2. severity = "warning"
  3. confidence = 0.8
  4. errorCode = 0
  5. warningCode = 0
  6. [rule.blank-imports]
  7. [rule.context-as-argument]
  8. [rule.dot-imports]
  9. [rule.error-return]
  10. [rule.error-naming]
  11. [rule.if-return]
  12. [rule.increment-decrement]
  13. [rule.var-declaration]
  14. [rule.package-comments]
  15. [rule.range]
  16. [rule.receiver-naming]
  17. [rule.time-naming]
  18. [rule.indent-error-flow]
  19. [rule.errorf]
  20. # TODO: enable following
  21. # grpcproxy context.WithValue(ctx, rpctypes.TokenFieldNameGRPC, token)
  22. # [rule.context-keys-type]
  23. # punctuation in error value
  24. # [rule.error-strings]
  25. # underscore variables
  26. # [rule.var-naming]
  27. # godoc
  28. # [rule.exported]
  29. # return unexported type
  30. # [rule.unexported-return]