diff --git a/.golangci.yml b/.golangci.yml index cb0a41de..4fb41f51 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -34,7 +34,6 @@ linters: checks: - all - '-ST1005' # disable rule 'Incorrectly formatted error string' - - '-ST1006' # disable rule 'Poorly chosen receiver name' - '-ST1008' # disable rule 'Function’s error value should be its last return value' - '-ST1023' # disable rule 'Redundant type in variable declaration' - '-QF1001' # disable rule 'Apply De Morgan’s law' diff --git a/internal/hooks/shell.go b/internal/hooks/shell.go index c09e8576..e88b1fc0 100644 --- a/internal/hooks/shell.go +++ b/internal/hooks/shell.go @@ -40,7 +40,7 @@ type ShellCommand interface { type ShellExec struct{} // command sets arguments for the shell supported by the current operating system -func (_ ShellExec) command(name string, arg ...string) *exec.Cmd { +func (ShellExec) command(name string, arg ...string) *exec.Cmd { script := fmt.Sprintf("%s %s", name, strings.Join(arg, " ")) switch { case runtime.GOOS == "windows":