I don't know why the linter did not complain in the CI, but running locally revealed few issues: % golangci-lint run ./pkg/drivers/krunkit pkg/drivers/krunkit/krunkit.go:537:34: importShadow: shadow of imported from 'github.com/docker/machine/libmachine/state' package 'state' (gocritic) func (d *Driver) setKrunkitState(state string) error { ^ pkg/drivers/krunkit/krunkit.go:341:9: unnecessary-format: unnecessary use of formatting function "fmt.Errorf", you can replace it with "errors.New" (revive) return fmt.Errorf("hosts without a driver cannot start docker") ^ pkg/drivers/krunkit/krunkit.go:345:9: unnecessary-format: unnecessary use of formatting function "fmt.Errorf", you can replace it with "errors.New" (revive) return fmt.Errorf("hosts without a driver cannot stop docker") ^ pkg/drivers/krunkit/krunkit.go:444:18: func (*Driver).logfilePath is unused (unused) func (d *Driver) logfilePath() string { ^ |
||
---|---|---|
.. | ||
krunkit.go |