department-of-veterans-affairs/vets-website

View on GitHub

Showing 4,177 of 14,709 total issues

Avoid too many return statements within this function.
Open

    return ADDRESS_VALIDATION_TYPES.SHOW_SUGGESTIONS_NO_OVERRIDE;
Severity: Major
Found in src/platform/user/profile/vap-svc/util/index.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return (
              <va-loading-indicator
                set-focus
                message="Redirecting to terms and conditions..."
              />
    Severity: Major
    Found in src/platform/user/authorization/containers/MHVApp.jsx - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return schema;
      Severity: Major
      Found in src/platform/forms-system/src/js/state/helpers.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return (
              <div>
                {this.renderTcAcceptanceMessage()}
                {this.props.children}
              </div>
        Severity: Major
        Found in src/platform/user/authorization/containers/MHVApp.jsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return (
                <ValidationError
                  appType={appType}
                  buttonText={buttonText}
                  formConfig={formConfig}
          Severity: Major
          Found in src/platform/forms-system/src/js/review/SubmitButtons.jsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

              return null;
            Severity: Major
            Found in src/platform/user/profile/vap-svc/util/contact-information/formValues.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return this.renderUpgradeFailedMessage();
              Severity: Major
              Found in src/platform/user/authorization/containers/MHVApp.jsx - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return (
                          <va-loading-indicator set-focus message="Redirecting to verify..." />
                        );
                Severity: Major
                Found in src/platform/user/authorization/containers/MHVApp.jsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return (
                        <ThrottledError
                          buttonText={buttonText}
                          formConfig={formConfig}
                          when={submission.extra}
                  Severity: Major
                  Found in src/platform/forms-system/src/js/review/SubmitButtons.jsx - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return React.Children.map(props.children, child => {
                          if (!React.isValidElement(child)) {
                            return null;
                          }
                    
                    
                    Severity: Major
                    Found in src/platform/user/authorization/components/RequiredLoginView.jsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          return transformInitialFormValues({
                            ...transformBooleanArrayToFormValues(data?.[fieldName]),
                            ...(data?.[notListedTextKey] &&
                              set({}, notListedTextKey, data?.[notListedTextKey])),
                          });
                      Severity: Major
                      Found in src/platform/user/profile/vap-svc/util/contact-information/formValues.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                          return ADDRESS_VALIDATION_TYPES.SHOW_SUGGESTIONS_NO_CONFIRMED_OVERRIDE;
                        Severity: Major
                        Found in src/platform/user/profile/vap-svc/util/index.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return mhvAccessError;
                          Severity: Major
                          Found in src/platform/user/authorization/containers/MHVApp.jsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return props.children;
                            Severity: Major
                            Found in src/platform/user/authorization/components/RequiredLoginView.jsx - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                return (
                                  <GenericError
                                    appType={appType}
                                    formConfig={formConfig}
                                    onBack={onBack}
                              Severity: Major
                              Found in src/platform/forms-system/src/js/review/SubmitButtons.jsx - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return this.renderIneligibleMessage(accountState);
                                Severity: Major
                                Found in src/platform/user/authorization/containers/MHVApp.jsx - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                      return ADDRESS_VALIDATION_TYPES.SHOW_SUGGESTIONS_NO_CONFIRMED_OVERRIDE;
                                  Severity: Major
                                  Found in src/platform/user/profile/vap-svc/util/index.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return formatMultiSelectAndText(data, fieldName) || unsetFieldTitleSpan;
                                    Severity: Major
                                    Found in src/platform/user/profile/vap-svc/components/ProfileInformationView.jsx - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return true;
                                      Severity: Major
                                      Found in src/applications/pact-act/utilities/display-logic-results.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return 'Other';
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language