dictyBase/modware-user

View on GitHub

Showing 43 of 119 total issues

Method RoleService.DeleteUserRelationship has 5 return statements (exceeds 4 allowed).
Open

func (s *RoleService) DeleteUserRelationship(ctx context.Context, r *jsonapi.DataCollection) (*empty.Empty, error) {
    if len(r.Data) == 0 {
        return &empty.Empty{}, aphgrpc.HandleInsertArgError(ctx, fmt.Errorf("no id given"))
    }
    result, err := s.existsResource(r.Id)
Severity: Major
Found in server/role.go - About 35 mins to fix

Function RunRoleServer has 5 return statements (exceeds 4 allowed).
Open

func RunRoleServer(c *cli.Context) error {
    dbh, err := getPgWrapper(c)
    if err != nil {
        return cli.NewExitError(
            fmt.Sprintf("Unable to create database connection %s", err.Error()),
Severity: Major
Found in commands/server.go - About 35 mins to fix

Method UserService.DeleteRoleRelationship has 5 return statements (exceeds 4 allowed).
Open

func (s *UserService) DeleteRoleRelationship(ctx context.Context, r *jsonapi.DataCollection) (*empty.Empty, error) {
    if len(r.Data) == 0 {
        return &empty.Empty{}, aphgrpc.HandleInsertArgError(ctx, fmt.Errorf("no id given"))
    }
    result, err := s.existsResource(r.Id)
Severity: Major
Found in server/user.go - About 35 mins to fix
Severity
Category
Status
Source
Language