department-of-veterans-affairs/vets-website

View on GitHub
src/applications/claims-status/utils/appeals-v2-helpers.jsx

Summary

Maintainability
F
3 wks
Test Coverage

File appeals-v2-helpers.jsx has 1901 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import React from 'react';
import moment from 'moment';
import { find, get, startCase } from 'lodash';
import * as Sentry from '@sentry/browser';
import { Link } from 'react-router-dom-v5-compat';
Severity: Major
Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 5 days to fix

    Function getStatusContents has 602 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function getStatusContents(appeal, name = {}) {
      const { status, aoj, programArea } = appeal.attributes;
      const appealType = appeal.type;
      const statusType = status.type || status;
      const details = status.details || {};
    Severity: Major
    Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 3 days to fix

      Function getNextEvents has 426 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export function getNextEvents(appeal) {
        const { type: currentStatus, details } = appeal.attributes.status;
        const appealType = appeal.type;
      
        switch (currentStatus) {
      Severity: Major
      Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 2 days to fix

        Function getAlertContent has 349 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export function getAlertContent(alert, appealIsActive) {
          const { type, details } = alert;
        
          switch (type) {
            case ALERT_TYPES.form9Needed: {
        Severity: Major
        Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 1 day to fix

          Function getEventContent has 177 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export function getEventContent(event) {
            switch (event.type) {
              case EVENT_TYPES.claimDecision:
                return {
                  title: 'VA sent you a claim decision',
          Severity: Major
          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 7 hrs to fix

            Function addStatusToIssues has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export function addStatusToIssues(issues) {
              return issues.map(issue => {
                let status = '';
                switch (issue.lastAction) {
                  case ISSUE_STATUS.fieldGrant:
            Severity: Minor
            Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 1 hr to fix

              Function getNextEvents has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

              export function getNextEvents(appeal) {
                const { type: currentStatus, details } = appeal.attributes.status;
                const appealType = appeal.type;
              
                switch (currentStatus) {
              Severity: Minor
              Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx - About 35 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              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 {
                        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 {
                            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 {
                              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:
                                  '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 {
                                  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:
                                      '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 {
                                        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 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 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: `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

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                          export const STATUS_TYPES = {
                                            amaRemand: 'ama_remand',
                                            atVso: 'at_vso',
                                            bvaDecision: 'bva_decision',
                                            bvaDecisionEffectuation: 'bva_decision_effectuation',
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 7 hrs to fix
                                          src/applications/personalization/dashboard/utils/appeals-helpers.js on lines 140..176

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 188.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.scReceived:
                                                contents.title = 'A reviewer is examining your new evidence';
                                                contents.description = (
                                                  <div>
                                                    <p>
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 7 hrs to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 463..504

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 177.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.remandSsoc: {
                                                const formattedSocDate = moment(details.lastSocDate, 'YYYY-MM-DD').format(
                                                  'MMMM D, YYYY',
                                                );
                                                return {
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 5 hrs to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 1305..1342

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 146.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.pendingCertificationSsoc: {
                                                const formattedSocDate = moment(details.lastSocDate, 'YYYY-MM-DD').format(
                                                  'MMMM D, YYYY',
                                                );
                                                return {
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 5 hrs to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 1343..1378

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 146.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                contents.description = (
                                                  <div>
                                                    <p>
                                                      The {aojDescription} sent you a Statement of the Case on{' '}
                                                      {formattedSocDate}. The Statement of the Case explains the reasons
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 4 hrs to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 61..84

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 132.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                          export function getTypeName(appeal) {
                                            switch (appeal.type) {
                                              case APPEAL_TYPES.supplementalClaim:
                                                return 'supplemental claim';
                                              case APPEAL_TYPES.higherLevelReview:
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 3 hrs to fix
                                          src/applications/personalization/dashboard/utils/appeals-helpers.js on lines 33..49

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 112.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.statutoryOptIn:
                                                contents.title =
                                                  'You requested a decision review under the Appeals Modernization Act';
                                                contents.description = (
                                                  <div>
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 3 hrs to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 359..381

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 110.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.hlrReceived:
                                                contents.title =
                                                  'A higher-level reviewer is taking a new look at your case';
                                                contents.description = (
                                                  <div>
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 3 hrs to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 505..531

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 108.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.pendingHearingScheduling:
                                                contents.title = 'You’re waiting for your hearing to be scheduled';
                                                contents.description = (
                                                  <div>
                                                    <p>
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 3 hrs to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 142..160

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 107.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.evidentiaryPeriod:
                                                contents.title = 'Your appeals file is open for new evidence';
                                                contents.description = (
                                                  <div>
                                                    <p>
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 3 hrs to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 382..402

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 105.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                contents.description = (
                                                  <div>
                                                    <p>
                                                      Your {getHearingType(details.type)} hearing is scheduled for{' '}
                                                      {formattedDate} at {details.location}.
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 3 hrs to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 167..181

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 103.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  events: [
                                                    {
                                                      title: 'Your appeal will be sent to the Board',
                                                      description: (
                                                        <p>
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 3 hrs to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 1237..1265

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 99.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                  events: [
                                                    {
                                                      title: 'Your appeal will be sent it to the Board',
                                                      description: (
                                                        <p>
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 3 hrs to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 1274..1302

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 99.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.onDocket:
                                                contents.title = 'Your appeal is waiting to be sent to a judge';
                                                contents.description = (
                                                  <div>
                                                    <p>
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 3 hrs to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 184..201

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 95.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.hlrDecision:
                                                contents.title = `The ${aojDescription} made a decision`;
                                                contents.description = (
                                                  <div>
                                                    <p>
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 3 other locations - About 2 hrs to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 805..816
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 532..543
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 544..555

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 94.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.scDecision:
                                                contents.title = `The ${aojDescription} made a decision`;
                                                contents.description = (
                                                  <div>
                                                    <p>
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 3 other locations - About 2 hrs to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 817..828
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 532..543
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 544..555

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 94.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.merged:
                                                contents.title = 'Your appeal was merged';
                                                contents.description = (
                                                  <div>
                                                    <p>
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 2 hrs to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 342..358

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 86.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                          export const getErrorStatus = response => {
                                            if (response instanceof Error) {
                                              Sentry.withScope(scope => {
                                                scope.setTag('location', 'getStatus');
                                                Sentry.captureException(response);
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 2 hrs to fix
                                          src/applications/personalization/dashboard/utils/appeals-helpers.js on lines 235..243

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 84.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                    <Toggler toggleName={Toggler.TOGGLE_NAMES.cstIncludeDdlBoaLetters}>
                                                      <Toggler.Enabled>
                                                        <p>
                                                          You can download your decision letter online now. You can also
                                                          get other letters related to your claims and appeals.
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 2 hrs to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 682..695

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 84.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                    <Toggler toggleName={Toggler.TOGGLE_NAMES.cstIncludeDdlBoaLetters}>
                                                      <Toggler.Enabled>
                                                        <p>
                                                          You can download your decision letter online now. You can also
                                                          get other letters related to your claims and appeals.
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 2 hrs to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 507..520

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 84.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                contents.description = (
                                                  <div>
                                                    <p>
                                                      The {aojDescription} sent you a Supplemental Statement of the Case
                                                      on {formattedSocDate}. This is because one or both of these is true:
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 2 hrs to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 105..124

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 82.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.atVso: {
                                                return {
                                                  header: '', // intentionally empty
                                                  events: [
                                                    {
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 2 hrs to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 1459..1474

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 80.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.evidentiaryPeriod: {
                                                return {
                                                  header: '', // intentionally empty
                                                  events: [
                                                    {
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 2 hrs to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 1475..1490

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 80.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              default:
                                                contents.title = 'We don’t know your status';
                                                contents.description = (
                                                  <p>We’re sorry, VA.gov will soon be updated to show your status.</p>
                                                );
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 2 hrs to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 595..604

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 75.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                contents.description = (
                                                  <div>
                                                    <p>
                                                      On {formattedBvaDecisionDate}, a judge at the Board of Veterans’
                                                      Appeals made a decision that changes your disability rating or
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 1 hr to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 443..458

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 72.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.hlrReceived: {
                                                return {
                                                  header: '', // intentionally empty
                                                  events: [
                                                    {
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 1 hr to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 1555..1570

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 67.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.scReceived: {
                                                return {
                                                  header: '', // intentionally empty
                                                  events: [
                                                    {
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 1 hr to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 1571..1588

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 67.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.decisionInProgress:
                                                contents.title = 'A judge is reviewing your appeal';
                                                contents.description = (
                                                  <p>
                                                    Your appeal is at the Board of Veterans’ Appeals being reviewed by a
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 1 hr to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 212..222

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 62.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                          export const programAreaMap = {
                                            compensation: 'disability compensation',
                                            pension: 'pension',
                                            insurance: 'insurance',
                                            loan_guaranty: 'loan guaranty', // eslint-disable-line camelcase
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 1 hr to fix
                                          src/applications/personalization/dashboard/utils/appeals-helpers.js on lines 16..26

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 60.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.atVso:
                                                contents.title = 'Your appeal is with your Veterans Service Organization';
                                                contents.description = (
                                                  <p>
                                                    {details.vsoName} is reviewing your appeal to make additional
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 1 hr to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 202..211

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 58.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.fieldGrant:
                                                contents.title = `The ${aojDescription} granted your appeal`;
                                                contents.description = (
                                                  <p>
                                                    The {aojDescription} agreed with you and decided to overturn the
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 1 hr to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 265..275

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 55.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                          export function getAojDescription(aoj) {
                                            switch (aoj) {
                                              case AOJS.vba:
                                                return 'Veterans Benefits Administration';
                                              case AOJS.vha:
                                          Severity: Minor
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 50 mins to fix
                                          src/applications/personalization/dashboard/utils/appeals-helpers.js on lines 88..99

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 52.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                          export function getDocketName(docket) {
                                            switch (docket) {
                                              case DOCKET_TYPES.directReview:
                                                return 'Direct Review';
                                              case DOCKET_TYPES.evidenceSubmission:
                                          Severity: Minor
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 50 mins to fix
                                          src/applications/personalization/dashboard/utils/appeals-helpers.js on lines 62..73

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 52.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.hlrDtaError:
                                                contents.title = `The ${aojDescription} is correcting an error`;
                                                contents.description = (
                                                  <p>
                                                    During their review, the higher-level reviewer identified an error
                                          Severity: Minor
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 50 mins to fix
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 556..566

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 51.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                        <p>
                                                          At your hearing, you and a Veterans Law Judge will have a
                                                          conversation, and they’ll ask you questions about your appeal.
                                                          Your hearing will be transcribed and added to your appeal file.
                                                          The judge won’t make a decision about your appeal at the
                                          Severity: Minor
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 45 mins to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 1397..1412

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 50.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                          Open

                                                          <p>
                                                            At your hearing, you and a Veterans Law Judge will have a
                                                            conversation, and they’ll ask you questions about your appeal.
                                                            Your hearing will be transcribed and added to your appeal
                                                            file. The judge won’t make a decision about your appeal at the
                                          Severity: Minor
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 1 other location - About 45 mins to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 1436..1453

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 50.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.pendingCertification:
                                                contents.title =
                                                  'The Decision Review Officer is finishing their review of your appeal';
                                                contents.description = (
                                                  <p>
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 3 other locations - About 35 mins to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 291..303
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 42..54
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 87..98

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 46.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                          Open

                                              case STATUS_TYPES.pendingSoc:
                                                contents.title = 'A Decision Review Officer is reviewing your appeal';
                                                contents.description = (
                                                  <p>
                                                    The {aojDescription} received your Notice of Disagreement. A Decision
                                          Severity: Major
                                          Found in src/applications/claims-status/utils/appeals-v2-helpers.jsx and 3 other locations - About 35 mins to fix
                                          src/applications/claims-status/utils/appeals-v2-helpers.jsx on lines 335..346
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 42..54
                                          src/applications/personalization/dashboard/utils/getStatusContents.jsx on lines 87..98

                                          Duplicated Code

                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                          Tuning

                                          This issue has a mass of 46.

                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                          Refactorings

                                          Further Reading

                                          There are no issues that match your filters.

                                          Category
                                          Status