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 {
        ...state,
        uploading: false,
        uploader: null,
      };
Severity: Major
Found in src/applications/claims-status/reducers/uploads.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      return <></>;
    Severity: Major
    Found in src/applications/mhv-landing-page/containers/Alerts.jsx - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return {
          qualifier: 'per year',
          ratedQualifier: ' / year',
          value: Math.round(constant.TFCAP * derived.tier),
        };
      Severity: Major
      Found in src/applications/gi/selectors/estimator.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return {
              qualifier: 'per year',
              ratedQualifier: ' / year',
              value: Math.round(constant.FLTTFCAP * derived.tier),
            };
        Severity: Major
        Found in src/applications/gi/selectors/estimator.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return state;
          Severity: Major
          Found in src/applications/gi/reducers/calculator.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return {
                  qualifier: '% of instate tuition',
                  ratedQualifier: '% in-state',
                  value: Math.round(100 * derived.tier),
                };
            Severity: Major
            Found in src/applications/gi/selectors/estimator.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return {
                    qualifier: 'per month',
                    ratedQualifier: ' / month',
                    value: 0,
                  };
              Severity: Major
              Found in src/applications/gi/selectors/estimator.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return { ...state, isToolTipOpen: !state.isToolTipOpen };
                Severity: Major
                Found in src/applications/yellow-ribbon/reducers/index.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return {
                        qualifier: 'per year',
                        ratedQualifier: ' / year',
                        value: Math.round(constant.CORRESPONDTFCAP * derived.tier),
                      };
                  Severity: Major
                  Found in src/applications/gi/selectors/estimator.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return {
                            ...state,
                            estimatedBenefits,
                          };
                    Severity: Major
                    Found in src/applications/gi/reducers/calculator.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return {
                              ...state,
                              ...newState,
                            };
                      Severity: Major
                      Found in src/applications/gi/reducers/calculator.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return {
                                ...state,
                                ...newState,
                              };
                        Severity: Major
                        Found in src/applications/gi/reducers/calculator.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                            return {
                              qualifier: 'per month',
                              ratedQualifier: ' / month',
                              value: Math.round(derived.tier * derived.bah),
                            };
                          Severity: Major
                          Found in src/applications/gi/selectors/estimator.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return {
                                    ...state,
                                    selectedProgram: INITIAL_STATE.selectedProgram,
                                  };
                            Severity: Major
                            Found in src/applications/gi/reducers/calculator.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return { ...state };
                              Severity: Major
                              Found in src/applications/yellow-ribbon/reducers/index.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return {
                                      qualifier: 'per month',
                                      ratedQualifier: ' / month',
                                      value: Math.round(derived.tier * derived.averageBah),
                                    };
                                Severity: Major
                                Found in src/applications/gi/selectors/estimator.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return {
                                          ...INITIAL_STATE,
                                          giBillBenefit,
                                          type,
                                          beneficiaryLocationBah: null,
                                  Severity: Major
                                  Found in src/applications/gi/reducers/calculator.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return (
                                          <>
                                            <h2
                                              className="va-introtext va-u-outline--none vads-u-font-size--lg vads-u-margin-top--1p5 vads-u-font-weight--normal"
                                              data-display-results-header
                                    Severity: Major
                                    Found in src/applications/yellow-ribbon/containers/SearchResults/index.jsx - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return {
                                            qualifier: 'per month',
                                            ratedQualifier: ' / month',
                                            value: Math.round((derived.tier * derived.averageBah) / 2),
                                          };
                                      Severity: Major
                                      Found in src/applications/gi/selectors/estimator.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                          return '';
                                        Severity: Major
                                        Found in src/applications/pre-need-integration/components/AutosugggestField.jsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language