update hack/tools, update golangci-lint and fix lints #1615
Annotations
10 errors
lint:
internal/command/flags/flags.go#L159
Error return value is not checked (errcheck)
|
lint:
infrastructure/microvm/cloudhypervisor/create.go#L161
assignOp: replace `arg = arg + netInt.GuestMAC` with `arg += netInt.GuestMAC` (gocritic)
|
lint:
infrastructure/microvm/cloudhypervisor/create.go#L136
ifElseChain: rewrite if-else to switch statement (gocritic)
|
lint:
infrastructure/microvm/cloudhypervisor/provider.go#L165
commentFormatting: put a space between `//` and comment text (gocritic)
|
lint:
core/models/volumes.go#L35
Comment should end in a period (godot)
|
lint:
pkg/cloudhypervisor/client.go#L163
Comment should end in a period (godot)
|
lint:
pkg/cloudhypervisor/types.go#L331
Comment should end in a period (godot)
|
lint:
internal/command/flags/flags.go#L156
Comment should end in a period (godot)
|
lint:
infrastructure/microvm/cloudhypervisor/create.go#L57
G204: Subprocess launched with a potential tainted input or cmd arguments (gosec)
|
lint:
internal/command/flags/flags.go#L25
G101: Potential hardcoded credentials (gosec)
|