From: Anderson A. Giacomolli Date: Mon, 9 Nov 2026 20:49:59 +0000 (-0300) Subject: Check error handling and common Go mistakes X-Git-Url: https://git.giacomolli.uk/onechat/commitdiff_plain/8012e7aa157a1e784b1b1a73ad4c41bb1d00c582?hp=5e671b478409cccd9ebfd1a597f6090407e84f36 Check error handling and common Go mistakes 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. --- diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..082c4f4 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,7 @@ +version: "2" + +linters: + default: standard + enable: + - errorlint + - gocritic