department-of-veterans-affairs/vets-website

View on GitHub

Showing 3,724 of 12,675 total issues

Avoid too many return statements within this function.
Open

      return set('progress', action.progress, state);
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 {
            ...state,
            uploading: false,
            uploadComplete: true,
            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 {
              header: '', // intentionally empty
              events: [
                {
                  title: `You’ll have your ${getHearingType(details.type)} hearing`,
      Severity: Major
      Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return {
                title: `Submit new evidence before ${formattedDueDate}`,
                description: (
                  <p>
                    If you have new evidence to submit, you must send it to the Board of
        Severity: Major
        Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return {
                  header: '', // intentionally empty
                  events: [
                    {
                      title: 'The Board will make a decision',
          Severity: Major
          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return {
                    header: '', // intentionally empty
                    events: [
                      {
                        title: 'The Board will make a decision',
            Severity: Major
            Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return dirtyAllFields(state);
              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 {
                        title:
                          'This appeal is not eligible for the Rapid Appeals Modernization Program',
                        description: (
                          <p>
                Severity: Major
                Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return set(action.path, action.field, state);
                  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 {
                            header: '', // intentionally empty
                            events: [
                              {
                                title: 'The higher-level reviewer will make a new decision',
                    Severity: Major
                    Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return {
                              header: '', // intentionally empty
                              events: [
                                {
                                  title: 'The reviewer will make a new decision',
                      Severity: Major
                      Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return {
                                title:
                                  'This appeal is eligible for the Rapid Appeals Modernization Program',
                                description: (
                                  <div>
                        Severity: Major
                        Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return {
                                  title: `What if I disagree with the ${formattedDecisionDate} decision?`,
                                  description: (
                                    <div>
                                      <p>
                          Severity: Major
                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return null;
                            Severity: Major
                            Found in src/applications/claims-status/containers/YourClaimsPageV2.jsx - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return {
                                      header: '', // intentionally empty
                                      events: [
                                        {
                                          title: 'The Board will make a decision',
                              Severity: Major
                              Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return {
                                        title: 'What if I disagree with my decision?',
                                        description: (
                                          <div>
                                            <p>
                                Severity: Major
                                Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - 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 {
                                          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 {
                                              ...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 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language