staticcheck.conf 646 B

1234567891011121314151617
  1. # Full list: https://staticcheck.io/docs/checks
  2. checks = [
  3. "SA*", "-SA1019", "-SA2001", "-SA9003", # SA* are mostly legit code errors
  4. # S1?? are "code simplifications" which we consider unnecessary
  5. # ST1??? are stylistic issues, some of which are generally accepted
  6. # In general, if it's listed in
  7. # https://github.com/golang/go/wiki/CodeReviewComments, then it
  8. # may be an acceptable check.
  9. # TODO(crawshaw): enable when we have docs? "ST1000", # missing package docs
  10. "ST1001", # discourage dot imports
  11. "QF1004", # Use `strings.ReplaceAll` instead of `strings.Replace` with `n == 1`
  12. "QF1006", # Lift if+break into loop condition
  13. ]