mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-02-26 00:09:11 +00:00
add staticcheck linter
This commit is contained in:
parent
9bc4d21739
commit
b6b64781ed
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user