]> git.giacomolli.uk - onechat/commitdiff
Check error handling and common Go mistakes
authorAnderson A. Giacomolli <redacted>
Mon, 9 Nov 2026 20:49:59 +0000 (17:49 -0300)
committerAnderson A. Giacomolli <redacted>
Mon, 9 Nov 2026 20:49:59 +0000 (17:49 -0300)
The lint config keeps the standard linters and adds errorlint and
gocritic. Error checks accept wrapped errors, and common Go mistakes
fail the same check command as the existing code checks.

.golangci.yml [new file with mode: 0644]

diff --git a/.golangci.yml b/.golangci.yml
new file mode 100644 (file)
index 0000000..082c4f4
--- /dev/null
@@ -0,0 +1,7 @@
+version: "2"
+
+linters:
+  default: standard
+  enable:
+    - errorlint
+    - gocritic