From b6b64781edb8067488dc6f1cc88157b4649c73ff Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 15 Feb 2026 12:46:05 +0000 Subject: [PATCH] add staticcheck linter --- .golangci.yml | 2 +- cmd/x32-cli/matrix.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index c3f70b0..9b4d632 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,7 +6,7 @@ run: go: '1.24' linters: - disable: [dupl, errcheck, goconst, godot, staticcheck, predeclared] + disable: [dupl, errcheck, goconst, godot] enable: # Default enabled linters - errcheck # Check for unchecked errors diff --git a/cmd/x32-cli/matrix.go b/cmd/x32-cli/matrix.go index 5ffeeee..b763e5e 100644 --- a/cmd/x32-cli/matrix.go +++ b/cmd/x32-cli/matrix.go @@ -22,7 +22,7 @@ type MatrixCmdGroup struct { func (cmd *MatrixCmdGroup) Validate() error { if cmd.Index.Index < 1 || cmd.Index.Index > 6 { - return fmt.Errorf("Matrix output index must be between 1 and 6, got %d", cmd.Index.Index) + return fmt.Errorf("matrix output index must be between 1 and 6, got %d", cmd.Index.Index) } return nil }