-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
golangci-lint failure #72
Comments
|
~/go/src/github.com/kubernetes-csi/csi-driver-iscsi# hack/verify-golint.sh
Verifying golint
pkg/iscsi/driver.go:31:2: `ns` is unused (structcheck)
ns *nodeServer
^
pkg/iscsi/iscsi_util.go:112:21: Error return value of `iscsiLib.Disconnect` is not checked (errcheck)
iscsiLib.Disconnect(connector.TargetIqn, connector.TargetPortals)
^
pkg/iscsi/server.go:110:14: Error return value of `server.Serve` is not checked (errcheck)
server.Serve(listener)
^
cmd/iscsiplugin/main.go:36:10: Error return value of `flag.Set` is not checked (errcheck)
flag.Set("logtostderr", "true")
^
cmd/iscsiplugin/main.go:41:24: Error return value of `flag.CommandLine.Parse` is not checked (errcheck)
flag.CommandLine.Parse([]string{})
^
cmd/iscsiplugin/main.go:56:32: Error return value of `cmd.MarkPersistentFlagRequired` is not checked (errcheck)
cmd.MarkPersistentFlagRequired("nodeid")
^
cmd/iscsiplugin/main.go:59:32: Error return value of `cmd.MarkPersistentFlagRequired` is not checked (errcheck)
cmd.MarkPersistentFlagRequired("endpoint")
^
pkg/iscsi/driver.go:45:41: exported func NewDriver returns unexported type *github.com/kubernetes-csi/csi-driver-iscsi/pkg/iscsi.driver, which can be annoying to use (golint)
func NewDriver(nodeID, endpoint string) *driver {
^
pkg/iscsi/driver.go:64:31: exported func NewNodeServer returns unexported type *github.com/kubernetes-csi/csi-driver-iscsi/pkg/iscsi.nodeServer, which can be annoying to use (golint)
func NewNodeServer(d *driver) *nodeServer {
^
pkg/iscsi/iscsi_util.go:29:6: type name will be used as iscsi.ISCSIUtil by other packages, and that stutters; consider calling this Util (golint)
type ISCSIUtil struct{}
^
pkg/iscsi/driver.go:101:2: S1023: redundant `return` statement (gosimple)
return
^
pkg/iscsi/server.go:58:2: S1023: redundant `return` statement (gosimple)
return
^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/kubernetes-csi/csi-driver-iscsi/runs/4329568959?check_suite_focus=true
The text was updated successfully, but these errors were encountered: