Showing 5 of 5 total issues
Function Run
has 6 return statements (exceeds 4 allowed). Open
Open
func Run(ctx context.Context, components types.Components, nodeID, endpoint string) error { opts := server.Options{ Endpoint: endpoint, NodeID: nodeID, }
Method node.NodePublishVolume
has 6 return statements (exceeds 4 allowed). Open
Open
func (ns node) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error) { if err := checkNodePublishVolumeRequest(req); err != nil { return nil, status.Errorf(codes.InvalidArgument, "invalid NodePublishVolumeRequest: %s", err) }
Function checkCreateVolumeRequest
has 5 return statements (exceeds 4 allowed). Open
Open
func checkCreateVolumeRequest(req *csi.CreateVolumeRequest) error { if req.Name == "" { return ErrNameNotProvided }
Function findVolumeByName
has 5 return statements (exceeds 4 allowed). Open
Open
func findVolumeByName(ctx context.Context, engine types.API, name string) (*dynamicvolumev1.Volume, error) { var channel types.ObjectChannel if err := engine.List(ctx, &dynamicvolumev1.Volume{Name: name}, api.ObjectChannel(&channel)); err != nil { return nil, fmt.Errorf("failed listing volumes: %s", err) }
Function checkNodePublishVolumeRequest
has 5 return statements (exceeds 4 allowed). Open
Open
func checkNodePublishVolumeRequest(req *csi.NodePublishVolumeRequest) error { if req.VolumeId == "" { return ErrVolumeIDNotProvided }