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

    if (fieldName === FIELD_NAMES.PREFERRED_NAME) return data[fieldName];
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 formatGenderIdentity(data[fieldName]);
    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 {
              ...state,
              mostRecentlySavedField: null,
            };
      Severity: Major
      Found in src/platform/user/profile/vap-svc/reducers/index.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

          return false;
        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 (
              <>
                <h3>Latest debt letters</h3>
                <ul
                  className="no-bullets vads-u-padding-x--0"

            Avoid too many return statements within this function.
            Open

                  return {
                    ...state,
                    fieldTransactionMap,
                  };
            Severity: Major
            Found in src/platform/user/profile/vap-svc/reducers/index.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return {
                      ...state,
                      formFields,
                      hasUnsavedEdits,
                      initialFormFields,
              Severity: Major
              Found in src/platform/user/profile/vap-svc/reducers/index.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return {
                        ...state,
                        metadata,
                        transactionsAwaitingUpdate: state.transactionsAwaitingUpdate?.filter(
                          tid => tid !== updatedTransactionId,
                Severity: Major
                Found in src/platform/user/profile/vap-svc/reducers/index.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return {
                          ...state,
                          mostRecentlySavedField: action.fieldName,
                          fieldTransactionMap: {
                            ...state.fieldTransactionMap,
                  Severity: Major
                  Found in src/platform/user/profile/vap-svc/reducers/index.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return <Alert.Error />;
                    Severity: Major
                    Found in src/applications/combined-debt-portal/combined/components/MCPAlerts.jsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return {
                              ...state,
                              transactionsAwaitingUpdate: state.transactionsAwaitingUpdate.concat(
                                transactionId,
                              ),
                      Severity: Major
                      Found in src/platform/user/profile/vap-svc/reducers/index.js - 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-questions.js - 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/components/ProfileInformationView.jsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return {
                                    ...state,
                                    transactionsAwaitingUpdate: state.transactionsAwaitingUpdate?.filter(
                                      tid => tid !== transactionId,
                                    ),
                            Severity: Major
                            Found in src/platform/user/profile/vap-svc/reducers/index.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return {
                                      ...state,
                                      metadata,
                                      transactions: state.transactions?.filter(
                                        t => t.data.attributes.transactionId !== finishedTransactionId,
                              Severity: Major
                              Found in src/platform/user/profile/vap-svc/reducers/index.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return 'Closed';
                                Severity: Major
                                Found in src/applications/facility-locator/utils/helpers.jsx - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                    return <div>{renderResultItems(query, resultsData)}</div>;
                                  Severity: Major
                                  Found in src/applications/facility-locator/components/ResultsList.jsx - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                      return (
                                        <div className="vads-u-margin-bottom--4">
                                          <h4 className="highlight">Veteran-reported Satisfaction Scores</h4>
                                          <div className="vads-u-margin-bottom--4">
                                            <p>
                                    Severity: Major
                                    Found in src/applications/facility-locator/components/AccessToCare.jsx - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return (
                                              <ConfirmationPending
                                                claimantName={claimantName}
                                                confirmationDate={confirmationDate}
                                                confirmationError={confirmationError}
                                      Severity: Major
                                      Found in src/applications/my-education-benefits/containers/ConfirmationPage.jsx - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                          return formattedOperatingHours;
                                        Severity: Major
                                        Found in src/applications/facility-locator/utils/helpers.jsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language