ory-am/hydra

View on GitHub
internal/httpclient/model_oidc_user_info.go

Summary

Maintainability
D
2 days
Test Coverage

OidcUserInfo has 78 methods (exceeds 20 allowed). Consider refactoring.
Open

type OidcUserInfo struct {
    // End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates.
    Birthdate *string `json:"birthdate,omitempty"`
    // End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
    Email *string `json:"email,omitempty"`
Severity: Major
Found in internal/httpclient/model_oidc_user_info.go - About 1 day to fix

    File model_oidc_user_info.go has 548 lines of code (exceeds 500 allowed). Consider refactoring.
    Open

    /*
    Ory Hydra API
    
    Documentation for all of Ory Hydra's APIs.
    
    
    Severity: Minor
    Found in internal/httpclient/model_oidc_user_info.go - About 3 hrs to fix

      Method OidcUserInfo.ToMap has 59 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

      func (o OidcUserInfo) ToMap() (map[string]interface{}, error) {
          toSerialize := map[string]interface{}{}
          if !IsNil(o.Birthdate) {
              toSerialize["birthdate"] = o.Birthdate
          }
      Severity: Minor
      Found in internal/httpclient/model_oidc_user_info.go - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status