summaryrefslogtreecommitdiff
path: root/staticcheck.conf
diff options
context:
space:
mode:
Diffstat (limited to 'staticcheck.conf')
-rw-r--r--staticcheck.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/staticcheck.conf b/staticcheck.conf
new file mode 100644
index 0000000..939bace
--- /dev/null
+++ b/staticcheck.conf
@@ -0,0 +1,6 @@
+# The `verify` make target uses staticcheck as a correctness gate. We inherit
+# staticcheck's default analyzers (bug detection SA*, simplifications S*, unused
+# code U*) but disable ST1012, a purely cosmetic convention that error variables
+# be named ErrFoo. Renaming the package's existing NotFound/NotImplemented would
+# be lint churn unrelated to verification, so it is intentionally not enforced.
+checks = ["inherit", "-ST1012"]