add staticcheck linter

This commit is contained in:
onyx-and-iris 2026-02-15 12:46:05 +00:00
parent 9bc4d21739
commit b6b64781ed
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
}