aboutsummaryrefslogtreecommitdiff
path: root/.golangci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml
new file mode 100644
index 0000000..d2fa9cb
--- /dev/null
+++ b/.golangci.yml
@@ -0,0 +1,17 @@
+version: "2"
+
+# Focused, zero-noise set: everything enabled here must pass cleanly on the
+# current tree. Add a linter only after fixing (or consciously excluding) its
+# existing findings so `make lint` stays a hard gate.
+linters:
+ default: none
+ enable:
+ - staticcheck
+ - unused
+ - unparam
+ - ineffassign
+ settings:
+ staticcheck:
+ # "all" minus the QF quickfix family: QF findings (tagged switch,
+ # De Morgan, fmt.Fprintf rewrites) are style suggestions, not defects.
+ checks: ["all", "-QF*"]