Skip to content

Commit f21cbc2

Browse files
authored
refactor: enable linter rule ST1006 for 'poorly chosen receiver names' (#75)
refactor: enable linter ST1006 'Poorly chosen receiver name'
1 parent dde98d3 commit f21cbc2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ linters:
3434
checks:
3535
- all
3636
- '-ST1005' # disable rule 'Incorrectly formatted error string'
37-
- '-ST1006' # disable rule 'Poorly chosen receiver name'
3837
- '-ST1008' # disable rule 'Function’s error value should be its last return value'
3938
- '-ST1023' # disable rule 'Redundant type in variable declaration'
4039
- '-QF1001' # disable rule 'Apply De Morgan’s law'

internal/hooks/shell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type ShellCommand interface {
4040
type ShellExec struct{}
4141

4242
// command sets arguments for the shell supported by the current operating system
43-
func (_ ShellExec) command(name string, arg ...string) *exec.Cmd {
43+
func (ShellExec) command(name string, arg ...string) *exec.Cmd {
4444
script := fmt.Sprintf("%s %s", name, strings.Join(arg, " "))
4545
switch {
4646
case runtime.GOOS == "windows":

0 commit comments

Comments
 (0)