18F/cg-dashboard

View on GitHub
controllers/uaa.go

Summary

Maintainability
A
1 hr
Test Coverage

Method UAAContext.InviteUserToOrg has 6 return statements (exceeds 4 allowed).
Open

func (c *UAAContext) InviteUserToOrg(rw web.ResponseWriter, req *web.Request) {
    // parse the request
    inviteUserToOrgRequest, err := c.ParseInviteUserToOrgReq(req.Request)
    if err != nil {
        err.writeTo(rw)
Severity: Major
Found in controllers/uaa.go - About 40 mins to fix

    Method UAAContext.GetUAAUserByEmail has 5 return statements (exceeds 4 allowed).
    Open

    func (c *UAAContext) GetUAAUserByEmail(email string) (
        userResponse GetUAAUserResponse, err *UaaError) {
        // Per https://tools.ietf.org/html/rfc7644#section-3.4.2.2, the value format in a SCIM query is JSON format
        emailJSONBytes, mErr := json.Marshal(email)
        if mErr != nil {
    Severity: Major
    Found in controllers/uaa.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status