2021-06-18 16:22:55 +00:00
|
|
|
# Full list: https://staticcheck.io/docs/checks
|
|
|
|
checks = [
|
2021-06-22 19:26:13 +00:00
|
|
|
"SA*", "-SA1019", "-SA2001", "-SA9003", # SA* are mostly legit code errors
|
2021-06-18 16:22:55 +00:00
|
|
|
|
|
|
|
# S1?? are "code simplifications" which we consider unnecessary
|
|
|
|
|
|
|
|
# ST1??? are stylistic issues, some of which are generally accepted
|
|
|
|
# In general, if it's listed in
|
|
|
|
# https://github.com/golang/go/wiki/CodeReviewComments, then it
|
|
|
|
# may be an acceptable check.
|
|
|
|
|
|
|
|
# TODO(crawshaw): enable when we have docs? "ST1000", # missing package docs
|
|
|
|
"ST1001", # discourage dot imports
|
|
|
|
|
|
|
|
"QF1004", # Use `strings.ReplaceAll` instead of `strings.Replace` with `n == 1`
|
|
|
|
"QF1006", # Lift if+break into loop condition
|
2023-12-22 01:40:03 +00:00
|
|
|
"U1000", # catch unused code
|
2021-06-18 16:22:55 +00:00
|
|
|
]
|