ory-am/hydra

View on GitHub
internal/httpclient/api_o_auth2.go

Summary

Maintainability
F
1 mo
Test Coverage

File api_o_auth2.go has 2579 lines of code (exceeds 500 allowed). Consider refactoring.
Open

/*
Ory Hydra API

Documentation for all of Ory Hydra's APIs.

Severity: Major
Found in internal/httpclient/api_o_auth2.go - About 6 days to fix

    OAuth2ApiService has 56 methods (exceeds 20 allowed). Consider refactoring.
    Open

    type OAuth2ApiService service
    Severity: Major
    Found in internal/httpclient/api_o_auth2.go - About 1 day to fix

      Method OAuth2ApiService.SetOAuth2ClientExecute has 89 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

      func (a *OAuth2ApiService) SetOAuth2ClientExecute(r ApiSetOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) {
          var (
              localVarHTTPMethod  = http.MethodPut
              localVarPostBody    interface{}
              formFiles           []formFile
      Severity: Major
      Found in internal/httpclient/api_o_auth2.go - About 2 hrs to fix

        Method OAuth2ApiService.ListOAuth2ConsentSessionsExecute has 81 lines of code (exceeds 50 allowed). Consider refactoring.
        Open

        func (a *OAuth2ApiService) ListOAuth2ConsentSessionsExecute(r ApiListOAuth2ConsentSessionsRequest) ([]OAuth2ConsentSession, *http.Response, error) {
            var (
                localVarHTTPMethod  = http.MethodGet
                localVarPostBody    interface{}
                formFiles           []formFile
        Severity: Major
        Found in internal/httpclient/api_o_auth2.go - About 2 hrs to fix

          Method OAuth2ApiService.ListOAuth2ClientsExecute has 80 lines of code (exceeds 50 allowed). Consider refactoring.
          Open

          func (a *OAuth2ApiService) ListOAuth2ClientsExecute(r ApiListOAuth2ClientsRequest) ([]OAuth2Client, *http.Response, error) {
              var (
                  localVarHTTPMethod  = http.MethodGet
                  localVarPostBody    interface{}
                  formFiles           []formFile
          Severity: Major
          Found in internal/httpclient/api_o_auth2.go - About 2 hrs to fix

            Method OAuth2ApiService.Oauth2TokenExchangeExecute has 78 lines of code (exceeds 50 allowed). Consider refactoring.
            Open

            func (a *OAuth2ApiService) Oauth2TokenExchangeExecute(r ApiOauth2TokenExchangeRequest) (*OAuth2TokenExchange, *http.Response, error) {
                var (
                    localVarHTTPMethod  = http.MethodPost
                    localVarPostBody    interface{}
                    formFiles           []formFile
            Severity: Major
            Found in internal/httpclient/api_o_auth2.go - About 2 hrs to fix

              Method OAuth2ApiService.PatchOAuth2ClientExecute has 78 lines of code (exceeds 50 allowed). Consider refactoring.
              Open

              func (a *OAuth2ApiService) PatchOAuth2ClientExecute(r ApiPatchOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) {
                  var (
                      localVarHTTPMethod  = http.MethodPatch
                      localVarPostBody    interface{}
                      formFiles           []formFile
              Severity: Major
              Found in internal/httpclient/api_o_auth2.go - About 2 hrs to fix

                Method OAuth2ApiService.GetOAuth2ConsentRequestExecute has 77 lines of code (exceeds 50 allowed). Consider refactoring.
                Open

                func (a *OAuth2ApiService) GetOAuth2ConsentRequestExecute(r ApiGetOAuth2ConsentRequestRequest) (*OAuth2ConsentRequest, *http.Response, error) {
                    var (
                        localVarHTTPMethod  = http.MethodGet
                        localVarPostBody    interface{}
                        formFiles           []formFile
                Severity: Major
                Found in internal/httpclient/api_o_auth2.go - About 2 hrs to fix

                  Method OAuth2ApiService.CreateOAuth2ClientExecute has 77 lines of code (exceeds 50 allowed). Consider refactoring.
                  Open

                  func (a *OAuth2ApiService) CreateOAuth2ClientExecute(r ApiCreateOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) {
                      var (
                          localVarHTTPMethod  = http.MethodPost
                          localVarPostBody    interface{}
                          formFiles           []formFile
                  Severity: Major
                  Found in internal/httpclient/api_o_auth2.go - About 2 hrs to fix

                    Method OAuth2ApiService.GetOAuth2LoginRequestExecute has 77 lines of code (exceeds 50 allowed). Consider refactoring.
                    Open

                    func (a *OAuth2ApiService) GetOAuth2LoginRequestExecute(r ApiGetOAuth2LoginRequestRequest) (*OAuth2LoginRequest, *http.Response, error) {
                        var (
                            localVarHTTPMethod  = http.MethodGet
                            localVarPostBody    interface{}
                            formFiles           []formFile
                    Severity: Major
                    Found in internal/httpclient/api_o_auth2.go - About 2 hrs to fix

                      Method OAuth2ApiService.GetOAuth2LogoutRequestExecute has 77 lines of code (exceeds 50 allowed). Consider refactoring.
                      Open

                      func (a *OAuth2ApiService) GetOAuth2LogoutRequestExecute(r ApiGetOAuth2LogoutRequestRequest) (*OAuth2LogoutRequest, *http.Response, error) {
                          var (
                              localVarHTTPMethod  = http.MethodGet
                              localVarPostBody    interface{}
                              formFiles           []formFile
                      Severity: Major
                      Found in internal/httpclient/api_o_auth2.go - About 2 hrs to fix

                        Method OAuth2ApiService.ListTrustedOAuth2JwtGrantIssuersExecute has 71 lines of code (exceeds 50 allowed). Consider refactoring.
                        Open

                        func (a *OAuth2ApiService) ListTrustedOAuth2JwtGrantIssuersExecute(r ApiListTrustedOAuth2JwtGrantIssuersRequest) ([]TrustedOAuth2JwtGrantIssuer, *http.Response, error) {
                            var (
                                localVarHTTPMethod  = http.MethodGet
                                localVarPostBody    interface{}
                                formFiles           []formFile
                        Severity: Minor
                        Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                          Method OAuth2ApiService.IntrospectOAuth2TokenExecute has 69 lines of code (exceeds 50 allowed). Consider refactoring.
                          Open

                          func (a *OAuth2ApiService) IntrospectOAuth2TokenExecute(r ApiIntrospectOAuth2TokenRequest) (*IntrospectedOAuth2Token, *http.Response, error) {
                              var (
                                  localVarHTTPMethod  = http.MethodPost
                                  localVarPostBody    interface{}
                                  formFiles           []formFile
                          Severity: Minor
                          Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                            Method OAuth2ApiService.AcceptOAuth2LoginRequestExecute has 67 lines of code (exceeds 50 allowed). Consider refactoring.
                            Open

                            func (a *OAuth2ApiService) AcceptOAuth2LoginRequestExecute(r ApiAcceptOAuth2LoginRequestRequest) (*OAuth2RedirectTo, *http.Response, error) {
                                var (
                                    localVarHTTPMethod  = http.MethodPut
                                    localVarPostBody    interface{}
                                    formFiles           []formFile
                            Severity: Minor
                            Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                              Method OAuth2ApiService.RejectOAuth2ConsentRequestExecute has 67 lines of code (exceeds 50 allowed). Consider refactoring.
                              Open

                              func (a *OAuth2ApiService) RejectOAuth2ConsentRequestExecute(r ApiRejectOAuth2ConsentRequestRequest) (*OAuth2RedirectTo, *http.Response, error) {
                                  var (
                                      localVarHTTPMethod  = http.MethodPut
                                      localVarPostBody    interface{}
                                      formFiles           []formFile
                              Severity: Minor
                              Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                Method OAuth2ApiService.AcceptOAuth2ConsentRequestExecute has 67 lines of code (exceeds 50 allowed). Consider refactoring.
                                Open

                                func (a *OAuth2ApiService) AcceptOAuth2ConsentRequestExecute(r ApiAcceptOAuth2ConsentRequestRequest) (*OAuth2RedirectTo, *http.Response, error) {
                                    var (
                                        localVarHTTPMethod  = http.MethodPut
                                        localVarPostBody    interface{}
                                        formFiles           []formFile
                                Severity: Minor
                                Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                  Method OAuth2ApiService.RejectOAuth2LoginRequestExecute has 67 lines of code (exceeds 50 allowed). Consider refactoring.
                                  Open

                                  func (a *OAuth2ApiService) RejectOAuth2LoginRequestExecute(r ApiRejectOAuth2LoginRequestRequest) (*OAuth2RedirectTo, *http.Response, error) {
                                      var (
                                          localVarHTTPMethod  = http.MethodPut
                                          localVarPostBody    interface{}
                                          formFiles           []formFile
                                  Severity: Minor
                                  Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                    Method OAuth2ApiService.AcceptOAuth2LogoutRequestExecute has 66 lines of code (exceeds 50 allowed). Consider refactoring.
                                    Open

                                    func (a *OAuth2ApiService) AcceptOAuth2LogoutRequestExecute(r ApiAcceptOAuth2LogoutRequestRequest) (*OAuth2RedirectTo, *http.Response, error) {
                                        var (
                                            localVarHTTPMethod  = http.MethodPut
                                            localVarPostBody    interface{}
                                            formFiles           []formFile
                                    Severity: Minor
                                    Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                      Method OAuth2ApiService.SetOAuth2ClientLifespansExecute has 64 lines of code (exceeds 50 allowed). Consider refactoring.
                                      Open

                                      func (a *OAuth2ApiService) SetOAuth2ClientLifespansExecute(r ApiSetOAuth2ClientLifespansRequest) (*OAuth2Client, *http.Response, error) {
                                          var (
                                              localVarHTTPMethod  = http.MethodPut
                                              localVarPostBody    interface{}
                                              formFiles           []formFile
                                      Severity: Minor
                                      Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                        Method OAuth2ApiService.RevokeOAuth2TokenExecute has 63 lines of code (exceeds 50 allowed). Consider refactoring.
                                        Open

                                        func (a *OAuth2ApiService) RevokeOAuth2TokenExecute(r ApiRevokeOAuth2TokenRequest) (*http.Response, error) {
                                            var (
                                                localVarHTTPMethod = http.MethodPost
                                                localVarPostBody   interface{}
                                                formFiles          []formFile
                                        Severity: Minor
                                        Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                          Method OAuth2ApiService.TrustOAuth2JwtGrantIssuerExecute has 63 lines of code (exceeds 50 allowed). Consider refactoring.
                                          Open

                                          func (a *OAuth2ApiService) TrustOAuth2JwtGrantIssuerExecute(r ApiTrustOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) {
                                              var (
                                                  localVarHTTPMethod  = http.MethodPost
                                                  localVarPostBody    interface{}
                                                  formFiles           []formFile
                                          Severity: Minor
                                          Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                            Method OAuth2ApiService.GetOAuth2ClientExecute has 63 lines of code (exceeds 50 allowed). Consider refactoring.
                                            Open

                                            func (a *OAuth2ApiService) GetOAuth2ClientExecute(r ApiGetOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) {
                                                var (
                                                    localVarHTTPMethod  = http.MethodGet
                                                    localVarPostBody    interface{}
                                                    formFiles           []formFile
                                            Severity: Minor
                                            Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                              Method OAuth2ApiService.GetTrustedOAuth2JwtGrantIssuerExecute has 63 lines of code (exceeds 50 allowed). Consider refactoring.
                                              Open

                                              func (a *OAuth2ApiService) GetTrustedOAuth2JwtGrantIssuerExecute(r ApiGetTrustedOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) {
                                                  var (
                                                      localVarHTTPMethod  = http.MethodGet
                                                      localVarPostBody    interface{}
                                                      formFiles           []formFile
                                              Severity: Minor
                                              Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                                Method OAuth2ApiService.RevokeOAuth2ConsentSessionsExecute has 63 lines of code (exceeds 50 allowed). Consider refactoring.
                                                Open

                                                func (a *OAuth2ApiService) RevokeOAuth2ConsentSessionsExecute(r ApiRevokeOAuth2ConsentSessionsRequest) (*http.Response, error) {
                                                    var (
                                                        localVarHTTPMethod = http.MethodDelete
                                                        localVarPostBody   interface{}
                                                        formFiles          []formFile
                                                Severity: Minor
                                                Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                                  Method OAuth2ApiService.OAuth2AuthorizeExecute has 62 lines of code (exceeds 50 allowed). Consider refactoring.
                                                  Open

                                                  func (a *OAuth2ApiService) OAuth2AuthorizeExecute(r ApiOAuth2AuthorizeRequest) (*ErrorOAuth2, *http.Response, error) {
                                                      var (
                                                          localVarHTTPMethod  = http.MethodGet
                                                          localVarPostBody    interface{}
                                                          formFiles           []formFile
                                                  Severity: Minor
                                                  Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                                    Method OAuth2ApiService.RevokeOAuth2LoginSessionsExecute has 59 lines of code (exceeds 50 allowed). Consider refactoring.
                                                    Open

                                                    func (a *OAuth2ApiService) RevokeOAuth2LoginSessionsExecute(r ApiRevokeOAuth2LoginSessionsRequest) (*http.Response, error) {
                                                        var (
                                                            localVarHTTPMethod = http.MethodDelete
                                                            localVarPostBody   interface{}
                                                            formFiles          []formFile
                                                    Severity: Minor
                                                    Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                                      Method OAuth2ApiService.DeleteOAuth2TokenExecute has 57 lines of code (exceeds 50 allowed). Consider refactoring.
                                                      Open

                                                      func (a *OAuth2ApiService) DeleteOAuth2TokenExecute(r ApiDeleteOAuth2TokenRequest) (*http.Response, error) {
                                                          var (
                                                              localVarHTTPMethod = http.MethodDelete
                                                              localVarPostBody   interface{}
                                                              formFiles          []formFile
                                                      Severity: Minor
                                                      Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                                        Method OAuth2ApiService.RejectOAuth2LogoutRequestExecute has 57 lines of code (exceeds 50 allowed). Consider refactoring.
                                                        Open

                                                        func (a *OAuth2ApiService) RejectOAuth2LogoutRequestExecute(r ApiRejectOAuth2LogoutRequestRequest) (*http.Response, error) {
                                                            var (
                                                                localVarHTTPMethod = http.MethodPut
                                                                localVarPostBody   interface{}
                                                                formFiles          []formFile
                                                        Severity: Minor
                                                        Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                                          Method OAuth2ApiService.SetOAuth2ClientExecute has 13 return statements (exceeds 4 allowed).
                                                          Open

                                                          func (a *OAuth2ApiService) SetOAuth2ClientExecute(r ApiSetOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) {
                                                              var (
                                                                  localVarHTTPMethod  = http.MethodPut
                                                                  localVarPostBody    interface{}
                                                                  formFiles           []formFile
                                                          Severity: Major
                                                          Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                                            Method OAuth2ApiService.DeleteTrustedOAuth2JwtGrantIssuerExecute has 54 lines of code (exceeds 50 allowed). Consider refactoring.
                                                            Open

                                                            func (a *OAuth2ApiService) DeleteTrustedOAuth2JwtGrantIssuerExecute(r ApiDeleteTrustedOAuth2JwtGrantIssuerRequest) (*http.Response, error) {
                                                                var (
                                                                    localVarHTTPMethod = http.MethodDelete
                                                                    localVarPostBody   interface{}
                                                                    formFiles          []formFile
                                                            Severity: Minor
                                                            Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                                              Method OAuth2ApiService.DeleteOAuth2ClientExecute has 54 lines of code (exceeds 50 allowed). Consider refactoring.
                                                              Open

                                                              func (a *OAuth2ApiService) DeleteOAuth2ClientExecute(r ApiDeleteOAuth2ClientRequest) (*http.Response, error) {
                                                                  var (
                                                                      localVarHTTPMethod = http.MethodDelete
                                                                      localVarPostBody   interface{}
                                                                      formFiles          []formFile
                                                              Severity: Minor
                                                              Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                                                Method OAuth2ApiService.CreateOAuth2ClientExecute has 11 return statements (exceeds 4 allowed).
                                                                Open

                                                                func (a *OAuth2ApiService) CreateOAuth2ClientExecute(r ApiCreateOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) {
                                                                    var (
                                                                        localVarHTTPMethod  = http.MethodPost
                                                                        localVarPostBody    interface{}
                                                                        formFiles           []formFile
                                                                Severity: Major
                                                                Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                                                  Method OAuth2ApiService.GetOAuth2ConsentRequestExecute has 11 return statements (exceeds 4 allowed).
                                                                  Open

                                                                  func (a *OAuth2ApiService) GetOAuth2ConsentRequestExecute(r ApiGetOAuth2ConsentRequestRequest) (*OAuth2ConsentRequest, *http.Response, error) {
                                                                      var (
                                                                          localVarHTTPMethod  = http.MethodGet
                                                                          localVarPostBody    interface{}
                                                                          formFiles           []formFile
                                                                  Severity: Major
                                                                  Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                                                    Method OAuth2ApiService.GetOAuth2LogoutRequestExecute has 11 return statements (exceeds 4 allowed).
                                                                    Open

                                                                    func (a *OAuth2ApiService) GetOAuth2LogoutRequestExecute(r ApiGetOAuth2LogoutRequestRequest) (*OAuth2LogoutRequest, *http.Response, error) {
                                                                        var (
                                                                            localVarHTTPMethod  = http.MethodGet
                                                                            localVarPostBody    interface{}
                                                                            formFiles           []formFile
                                                                    Severity: Major
                                                                    Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                                                      Method OAuth2ApiService.GetOAuth2LoginRequestExecute has 11 return statements (exceeds 4 allowed).
                                                                      Open

                                                                      func (a *OAuth2ApiService) GetOAuth2LoginRequestExecute(r ApiGetOAuth2LoginRequestRequest) (*OAuth2LoginRequest, *http.Response, error) {
                                                                          var (
                                                                              localVarHTTPMethod  = http.MethodGet
                                                                              localVarPostBody    interface{}
                                                                              formFiles           []formFile
                                                                      Severity: Major
                                                                      Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                                                        Method OAuth2ApiService.PatchOAuth2ClientExecute has 11 return statements (exceeds 4 allowed).
                                                                        Open

                                                                        func (a *OAuth2ApiService) PatchOAuth2ClientExecute(r ApiPatchOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) {
                                                                            var (
                                                                                localVarHTTPMethod  = http.MethodPatch
                                                                                localVarPostBody    interface{}
                                                                                formFiles           []formFile
                                                                        Severity: Major
                                                                        Found in internal/httpclient/api_o_auth2.go - About 1 hr to fix

                                                                          Method OAuth2ApiService.RejectOAuth2LoginRequestExecute has 9 return statements (exceeds 4 allowed).
                                                                          Open

                                                                          func (a *OAuth2ApiService) RejectOAuth2LoginRequestExecute(r ApiRejectOAuth2LoginRequestRequest) (*OAuth2RedirectTo, *http.Response, error) {
                                                                              var (
                                                                                  localVarHTTPMethod  = http.MethodPut
                                                                                  localVarPostBody    interface{}
                                                                                  formFiles           []formFile
                                                                          Severity: Major
                                                                          Found in internal/httpclient/api_o_auth2.go - About 55 mins to fix

                                                                            Method OAuth2ApiService.AcceptOAuth2ConsentRequestExecute has 9 return statements (exceeds 4 allowed).
                                                                            Open

                                                                            func (a *OAuth2ApiService) AcceptOAuth2ConsentRequestExecute(r ApiAcceptOAuth2ConsentRequestRequest) (*OAuth2RedirectTo, *http.Response, error) {
                                                                                var (
                                                                                    localVarHTTPMethod  = http.MethodPut
                                                                                    localVarPostBody    interface{}
                                                                                    formFiles           []formFile
                                                                            Severity: Major
                                                                            Found in internal/httpclient/api_o_auth2.go - About 55 mins to fix

                                                                              Method OAuth2ApiService.AcceptOAuth2LogoutRequestExecute has 9 return statements (exceeds 4 allowed).
                                                                              Open

                                                                              func (a *OAuth2ApiService) AcceptOAuth2LogoutRequestExecute(r ApiAcceptOAuth2LogoutRequestRequest) (*OAuth2RedirectTo, *http.Response, error) {
                                                                                  var (
                                                                                      localVarHTTPMethod  = http.MethodPut
                                                                                      localVarPostBody    interface{}
                                                                                      formFiles           []formFile
                                                                              Severity: Major
                                                                              Found in internal/httpclient/api_o_auth2.go - About 55 mins to fix

                                                                                Method OAuth2ApiService.IntrospectOAuth2TokenExecute has 9 return statements (exceeds 4 allowed).
                                                                                Open

                                                                                func (a *OAuth2ApiService) IntrospectOAuth2TokenExecute(r ApiIntrospectOAuth2TokenRequest) (*IntrospectedOAuth2Token, *http.Response, error) {
                                                                                    var (
                                                                                        localVarHTTPMethod  = http.MethodPost
                                                                                        localVarPostBody    interface{}
                                                                                        formFiles           []formFile
                                                                                Severity: Major
                                                                                Found in internal/httpclient/api_o_auth2.go - About 55 mins to fix

                                                                                  Method OAuth2ApiService.Oauth2TokenExchangeExecute has 9 return statements (exceeds 4 allowed).
                                                                                  Open

                                                                                  func (a *OAuth2ApiService) Oauth2TokenExchangeExecute(r ApiOauth2TokenExchangeRequest) (*OAuth2TokenExchange, *http.Response, error) {
                                                                                      var (
                                                                                          localVarHTTPMethod  = http.MethodPost
                                                                                          localVarPostBody    interface{}
                                                                                          formFiles           []formFile
                                                                                  Severity: Major
                                                                                  Found in internal/httpclient/api_o_auth2.go - About 55 mins to fix

                                                                                    Method OAuth2ApiService.AcceptOAuth2LoginRequestExecute has 9 return statements (exceeds 4 allowed).
                                                                                    Open

                                                                                    func (a *OAuth2ApiService) AcceptOAuth2LoginRequestExecute(r ApiAcceptOAuth2LoginRequestRequest) (*OAuth2RedirectTo, *http.Response, error) {
                                                                                        var (
                                                                                            localVarHTTPMethod  = http.MethodPut
                                                                                            localVarPostBody    interface{}
                                                                                            formFiles           []formFile
                                                                                    Severity: Major
                                                                                    Found in internal/httpclient/api_o_auth2.go - About 55 mins to fix

                                                                                      Method OAuth2ApiService.ListOAuth2ConsentSessionsExecute has 9 return statements (exceeds 4 allowed).
                                                                                      Open

                                                                                      func (a *OAuth2ApiService) ListOAuth2ConsentSessionsExecute(r ApiListOAuth2ConsentSessionsRequest) ([]OAuth2ConsentSession, *http.Response, error) {
                                                                                          var (
                                                                                              localVarHTTPMethod  = http.MethodGet
                                                                                              localVarPostBody    interface{}
                                                                                              formFiles           []formFile
                                                                                      Severity: Major
                                                                                      Found in internal/httpclient/api_o_auth2.go - About 55 mins to fix

                                                                                        Method OAuth2ApiService.RejectOAuth2ConsentRequestExecute has 9 return statements (exceeds 4 allowed).
                                                                                        Open

                                                                                        func (a *OAuth2ApiService) RejectOAuth2ConsentRequestExecute(r ApiRejectOAuth2ConsentRequestRequest) (*OAuth2RedirectTo, *http.Response, error) {
                                                                                            var (
                                                                                                localVarHTTPMethod  = http.MethodPut
                                                                                                localVarPostBody    interface{}
                                                                                                formFiles           []formFile
                                                                                        Severity: Major
                                                                                        Found in internal/httpclient/api_o_auth2.go - About 55 mins to fix

                                                                                          Method OAuth2ApiService.GetOAuth2ClientExecute has 8 return statements (exceeds 4 allowed).
                                                                                          Open

                                                                                          func (a *OAuth2ApiService) GetOAuth2ClientExecute(r ApiGetOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) {
                                                                                              var (
                                                                                                  localVarHTTPMethod  = http.MethodGet
                                                                                                  localVarPostBody    interface{}
                                                                                                  formFiles           []formFile
                                                                                          Severity: Major
                                                                                          Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

                                                                                            Method OAuth2ApiService.TrustOAuth2JwtGrantIssuerExecute has 8 return statements (exceeds 4 allowed).
                                                                                            Open

                                                                                            func (a *OAuth2ApiService) TrustOAuth2JwtGrantIssuerExecute(r ApiTrustOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) {
                                                                                                var (
                                                                                                    localVarHTTPMethod  = http.MethodPost
                                                                                                    localVarPostBody    interface{}
                                                                                                    formFiles           []formFile
                                                                                            Severity: Major
                                                                                            Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

                                                                                              Method OAuth2ApiService.ListTrustedOAuth2JwtGrantIssuersExecute has 8 return statements (exceeds 4 allowed).
                                                                                              Open

                                                                                              func (a *OAuth2ApiService) ListTrustedOAuth2JwtGrantIssuersExecute(r ApiListTrustedOAuth2JwtGrantIssuersRequest) ([]TrustedOAuth2JwtGrantIssuer, *http.Response, error) {
                                                                                                  var (
                                                                                                      localVarHTTPMethod  = http.MethodGet
                                                                                                      localVarPostBody    interface{}
                                                                                                      formFiles           []formFile
                                                                                              Severity: Major
                                                                                              Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

                                                                                                Method OAuth2ApiService.ListOAuth2ClientsExecute has 8 return statements (exceeds 4 allowed).
                                                                                                Open

                                                                                                func (a *OAuth2ApiService) ListOAuth2ClientsExecute(r ApiListOAuth2ClientsRequest) ([]OAuth2Client, *http.Response, error) {
                                                                                                    var (
                                                                                                        localVarHTTPMethod  = http.MethodGet
                                                                                                        localVarPostBody    interface{}
                                                                                                        formFiles           []formFile
                                                                                                Severity: Major
                                                                                                Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

                                                                                                  Method OAuth2ApiService.SetOAuth2ClientLifespansExecute has 8 return statements (exceeds 4 allowed).
                                                                                                  Open

                                                                                                  func (a *OAuth2ApiService) SetOAuth2ClientLifespansExecute(r ApiSetOAuth2ClientLifespansRequest) (*OAuth2Client, *http.Response, error) {
                                                                                                      var (
                                                                                                          localVarHTTPMethod  = http.MethodPut
                                                                                                          localVarPostBody    interface{}
                                                                                                          formFiles           []formFile
                                                                                                  Severity: Major
                                                                                                  Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

                                                                                                    Method OAuth2ApiService.RevokeOAuth2ConsentSessionsExecute has 8 return statements (exceeds 4 allowed).
                                                                                                    Open

                                                                                                    func (a *OAuth2ApiService) RevokeOAuth2ConsentSessionsExecute(r ApiRevokeOAuth2ConsentSessionsRequest) (*http.Response, error) {
                                                                                                        var (
                                                                                                            localVarHTTPMethod = http.MethodDelete
                                                                                                            localVarPostBody   interface{}
                                                                                                            formFiles          []formFile
                                                                                                    Severity: Major
                                                                                                    Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

                                                                                                      Method OAuth2ApiService.RejectOAuth2LogoutRequestExecute has 8 return statements (exceeds 4 allowed).
                                                                                                      Open

                                                                                                      func (a *OAuth2ApiService) RejectOAuth2LogoutRequestExecute(r ApiRejectOAuth2LogoutRequestRequest) (*http.Response, error) {
                                                                                                          var (
                                                                                                              localVarHTTPMethod = http.MethodPut
                                                                                                              localVarPostBody   interface{}
                                                                                                              formFiles          []formFile
                                                                                                      Severity: Major
                                                                                                      Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

                                                                                                        Method OAuth2ApiService.GetTrustedOAuth2JwtGrantIssuerExecute has 8 return statements (exceeds 4 allowed).
                                                                                                        Open

                                                                                                        func (a *OAuth2ApiService) GetTrustedOAuth2JwtGrantIssuerExecute(r ApiGetTrustedOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) {
                                                                                                            var (
                                                                                                                localVarHTTPMethod  = http.MethodGet
                                                                                                                localVarPostBody    interface{}
                                                                                                                formFiles           []formFile
                                                                                                        Severity: Major
                                                                                                        Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

                                                                                                          Method OAuth2ApiService.RevokeOAuth2TokenExecute has 8 return statements (exceeds 4 allowed).
                                                                                                          Open

                                                                                                          func (a *OAuth2ApiService) RevokeOAuth2TokenExecute(r ApiRevokeOAuth2TokenRequest) (*http.Response, error) {
                                                                                                              var (
                                                                                                                  localVarHTTPMethod = http.MethodPost
                                                                                                                  localVarPostBody   interface{}
                                                                                                                  formFiles          []formFile
                                                                                                          Severity: Major
                                                                                                          Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

                                                                                                            Method OAuth2ApiService.DeleteOAuth2TokenExecute has 8 return statements (exceeds 4 allowed).
                                                                                                            Open

                                                                                                            func (a *OAuth2ApiService) DeleteOAuth2TokenExecute(r ApiDeleteOAuth2TokenRequest) (*http.Response, error) {
                                                                                                                var (
                                                                                                                    localVarHTTPMethod = http.MethodDelete
                                                                                                                    localVarPostBody   interface{}
                                                                                                                    formFiles          []formFile
                                                                                                            Severity: Major
                                                                                                            Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

                                                                                                              Method OAuth2ApiService.OAuth2AuthorizeExecute has 8 return statements (exceeds 4 allowed).
                                                                                                              Open

                                                                                                              func (a *OAuth2ApiService) OAuth2AuthorizeExecute(r ApiOAuth2AuthorizeRequest) (*ErrorOAuth2, *http.Response, error) {
                                                                                                                  var (
                                                                                                                      localVarHTTPMethod  = http.MethodGet
                                                                                                                      localVarPostBody    interface{}
                                                                                                                      formFiles           []formFile
                                                                                                              Severity: Major
                                                                                                              Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

                                                                                                                Method OAuth2ApiService.DeleteOAuth2ClientExecute has 7 return statements (exceeds 4 allowed).
                                                                                                                Open

                                                                                                                func (a *OAuth2ApiService) DeleteOAuth2ClientExecute(r ApiDeleteOAuth2ClientRequest) (*http.Response, error) {
                                                                                                                    var (
                                                                                                                        localVarHTTPMethod = http.MethodDelete
                                                                                                                        localVarPostBody   interface{}
                                                                                                                        formFiles          []formFile
                                                                                                                Severity: Major
                                                                                                                Found in internal/httpclient/api_o_auth2.go - About 45 mins to fix

                                                                                                                  Method OAuth2ApiService.DeleteTrustedOAuth2JwtGrantIssuerExecute has 7 return statements (exceeds 4 allowed).
                                                                                                                  Open

                                                                                                                  func (a *OAuth2ApiService) DeleteTrustedOAuth2JwtGrantIssuerExecute(r ApiDeleteTrustedOAuth2JwtGrantIssuerRequest) (*http.Response, error) {
                                                                                                                      var (
                                                                                                                          localVarHTTPMethod = http.MethodDelete
                                                                                                                          localVarPostBody   interface{}
                                                                                                                          formFiles          []formFile
                                                                                                                  Severity: Major
                                                                                                                  Found in internal/httpclient/api_o_auth2.go - About 45 mins to fix

                                                                                                                    Method OAuth2ApiService.RevokeOAuth2LoginSessionsExecute has 7 return statements (exceeds 4 allowed).
                                                                                                                    Open

                                                                                                                    func (a *OAuth2ApiService) RevokeOAuth2LoginSessionsExecute(r ApiRevokeOAuth2LoginSessionsRequest) (*http.Response, error) {
                                                                                                                        var (
                                                                                                                            localVarHTTPMethod = http.MethodDelete
                                                                                                                            localVarPostBody   interface{}
                                                                                                                            formFiles          []formFile
                                                                                                                    Severity: Major
                                                                                                                    Found in internal/httpclient/api_o_auth2.go - About 45 mins to fix

                                                                                                                      Method OAuth2ApiService.SetOAuth2ClientExecute has a Cognitive Complexity of 22 (exceeds 20 allowed). Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) SetOAuth2ClientExecute(r ApiSetOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod  = http.MethodPut
                                                                                                                              localVarPostBody    interface{}
                                                                                                                              formFiles           []formFile
                                                                                                                      Severity: Minor
                                                                                                                      Found in internal/httpclient/api_o_auth2.go - About 35 mins to fix

                                                                                                                      Cognitive Complexity

                                                                                                                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                      A method's cognitive complexity is based on a few simple rules:

                                                                                                                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                      • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                      • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                      Further reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) PatchOAuth2ClientExecute(r ApiPatchOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod  = http.MethodPatch
                                                                                                                              localVarPostBody    interface{}
                                                                                                                              formFiles           []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 1 other location - About 1 day to fix
                                                                                                                      internal/httpclient/api_oidc.go on lines 895..991

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 840.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) GetOAuth2ConsentRequestExecute(r ApiGetOAuth2ConsentRequestRequest) (*OAuth2ConsentRequest, *http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod  = http.MethodGet
                                                                                                                              localVarPostBody    interface{}
                                                                                                                              formFiles           []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 2 other locations - About 1 day to fix
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 1170..1264
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 1299..1393

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 800.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) GetOAuth2LogoutRequestExecute(r ApiGetOAuth2LogoutRequestRequest) (*OAuth2LogoutRequest, *http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod  = http.MethodGet
                                                                                                                              localVarPostBody    interface{}
                                                                                                                              formFiles           []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 2 other locations - About 1 day to fix
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 1032..1126
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 1170..1264

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 800.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) GetOAuth2LoginRequestExecute(r ApiGetOAuth2LoginRequestRequest) (*OAuth2LoginRequest, *http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod  = http.MethodGet
                                                                                                                              localVarPostBody    interface{}
                                                                                                                              formFiles           []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 2 other locations - About 1 day to fix
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 1032..1126
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 1299..1393

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 800.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) CreateOAuth2ClientExecute(r ApiCreateOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod  = http.MethodPost
                                                                                                                              localVarPostBody    interface{}
                                                                                                                              formFiles           []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 1 other location - About 1 day to fix
                                                                                                                      internal/httpclient/api_oidc.go on lines 70..165

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 797.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) SetOAuth2ClientLifespansExecute(r ApiSetOAuth2ClientLifespansRequest) (*OAuth2Client, *http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod  = http.MethodPut
                                                                                                                              localVarPostBody    interface{}
                                                                                                                              formFiles           []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 1 other location - About 1 day to fix
                                                                                                                      internal/httpclient/api_jwk.go on lines 756..838

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 697.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) RejectOAuth2ConsentRequestExecute(r ApiRejectOAuth2ConsentRequestRequest) (*OAuth2RedirectTo, *http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod  = http.MethodPut
                                                                                                                              localVarPostBody    interface{}
                                                                                                                              formFiles           []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 3 other locations - About 1 day to fix
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 81..166
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 218..303
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 2685..2770

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 691.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) AcceptOAuth2LoginRequestExecute(r ApiAcceptOAuth2LoginRequestRequest) (*OAuth2RedirectTo, *http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod  = http.MethodPut
                                                                                                                              localVarPostBody    interface{}
                                                                                                                              formFiles           []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 3 other locations - About 1 day to fix
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 81..166
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 2549..2634
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 2685..2770

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 691.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) AcceptOAuth2ConsentRequestExecute(r ApiAcceptOAuth2ConsentRequestRequest) (*OAuth2RedirectTo, *http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod  = http.MethodPut
                                                                                                                              localVarPostBody    interface{}
                                                                                                                              formFiles           []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 3 other locations - About 1 day to fix
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 218..303
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 2549..2634
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 2685..2770

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 691.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) RejectOAuth2LoginRequestExecute(r ApiRejectOAuth2LoginRequestRequest) (*OAuth2RedirectTo, *http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod  = http.MethodPut
                                                                                                                              localVarPostBody    interface{}
                                                                                                                              formFiles           []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 3 other locations - About 1 day to fix
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 81..166
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 218..303
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 2549..2634

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 691.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) GetTrustedOAuth2JwtGrantIssuerExecute(r ApiGetTrustedOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod  = http.MethodGet
                                                                                                                              localVarPostBody    interface{}
                                                                                                                              formFiles           []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 3 other locations - About 1 day to fix
                                                                                                                      internal/httpclient/api_jwk.go on lines 510..590
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 907..987
                                                                                                                      internal/httpclient/api_oidc.go on lines 556..636

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 686.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) GetOAuth2ClientExecute(r ApiGetOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod  = http.MethodGet
                                                                                                                              localVarPostBody    interface{}
                                                                                                                              formFiles           []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 3 other locations - About 1 day to fix
                                                                                                                      internal/httpclient/api_jwk.go on lines 510..590
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 1426..1506
                                                                                                                      internal/httpclient/api_oidc.go on lines 556..636

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 686.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) OAuth2AuthorizeExecute(r ApiOAuth2AuthorizeRequest) (*ErrorOAuth2, *http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod  = http.MethodGet
                                                                                                                              localVarPostBody    interface{}
                                                                                                                              formFiles           []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 3 other locations - About 1 day to fix
                                                                                                                      internal/httpclient/api_oidc.go on lines 439..518
                                                                                                                      internal/httpclient/api_oidc.go on lines 670..749
                                                                                                                      internal/httpclient/api_wellknown.go on lines 54..133

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 643.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) DeleteTrustedOAuth2JwtGrantIssuerExecute(r ApiDeleteTrustedOAuth2JwtGrantIssuerRequest) (*http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod = http.MethodDelete
                                                                                                                              localVarPostBody   interface{}
                                                                                                                              formFiles          []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 3 other locations - About 1 day to fix
                                                                                                                      internal/httpclient/api_jwk.go on lines 290..360
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 591..661
                                                                                                                      internal/httpclient/api_oidc.go on lines 337..407

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 591.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) DeleteOAuth2ClientExecute(r ApiDeleteOAuth2ClientRequest) (*http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod = http.MethodDelete
                                                                                                                              localVarPostBody   interface{}
                                                                                                                              formFiles          []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 3 other locations - About 1 day to fix
                                                                                                                      internal/httpclient/api_jwk.go on lines 290..360
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 802..872
                                                                                                                      internal/httpclient/api_oidc.go on lines 337..407

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 591.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) DeleteOAuth2TokenExecute(r ApiDeleteOAuth2TokenRequest) (*http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod = http.MethodDelete
                                                                                                                              localVarPostBody   interface{}
                                                                                                                              formFiles          []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 1 other location - About 1 day to fix
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 2806..2879

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 584.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      func (a *OAuth2ApiService) RejectOAuth2LogoutRequestExecute(r ApiRejectOAuth2LogoutRequestRequest) (*http.Response, error) {
                                                                                                                          var (
                                                                                                                              localVarHTTPMethod = http.MethodPut
                                                                                                                              localVarPostBody   interface{}
                                                                                                                              formFiles          []formFile
                                                                                                                      Severity: Major
                                                                                                                      Found in internal/httpclient/api_o_auth2.go and 1 other location - About 1 day to fix
                                                                                                                      internal/httpclient/api_o_auth2.go on lines 695..768

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 584.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      There are no issues that match your filters.

                                                                                                                      Category
                                                                                                                      Status