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 {
        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: 'What happens next depends on whether you submit new evidence.',
            events: [
              {
                title: 'Your appeal will be returned to the Board',
    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 {
                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: `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 {
                    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 APPOINTMENT_TYPES.request;
              Severity: Major
              Found in src/applications/vaos/services/appointment/transformers.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 APPOINTMENT_TYPES.vaAppointment;
                  Severity: Major
                  Found in src/applications/vaos/services/appointment/transformers.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return {
                            header: '', // intentionally empty
                            events: [
                              {
                                title:
                    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 {
                                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 {
                                  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 {
                                    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 {
                                      ...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 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 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 {
                                            ...state,
                                            uploader: action.uploader,
                                          };
                                    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 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,
                                                uploadError: true,
                                                uploader: null,
                                        Severity: Major
                                        Found in src/applications/claims-status/reducers/uploads.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language