department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,811 of 12,811 total issues

Function CustomPage has 87 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function CustomPage(props) {
    const searchParams = getArrayUrlSearchParams();
    const isEdit = !!searchParams.get('edit');
    const isAdd = !!searchParams.get('add');

    Function DynamicRadioWidget has 87 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function DynamicRadioWidget(props) {
      const { onChange } = props;
      let locationsList = null;
      let upperContent = null;
      const [locations, setLocations] = useState([]);

      Function Index has 87 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const Index = props => {
        const { router } = props;
        const { t } = useTranslation();
      
        const { jumpToPage } = useFormRouting(router);
      Severity: Major
      Found in src/applications/check-in/pre-check-in/pages/Landing/index.jsx - About 3 hrs to fix

        Function fieldEntries has 87 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const fieldEntries = (key, uiSchema, data, schema, schemaFromState) => {
          if (key.startsWith('view:') || key.startsWith('ui:')) return null;
          if (schema.properties[key] === undefined || !uiSchema) return null;
        
          const {

          Function CreateFolderModal has 87 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          const CreateFolderModal = props => {
            const {
              isCreateNewModalVisible,
              setIsCreateNewModalVisible,
              onConfirm,

            Function AppealsV2StatusPage has 87 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export default function AppealsV2StatusPage() {
              const [appeal, fullName] = useOutletContext();
              const {
                events,
                alerts,
            Severity: Major
            Found in src/applications/claims-status/containers/AppealsV2StatusPage.jsx - About 3 hrs to fix

              File migrations.js has 311 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              import get from 'platform/utilities/data/get';
              import set from 'platform/utilities/data/set';
              import { isValidDateRange } from 'platform/forms/validations';
              import { convertToDateField } from 'platform/forms-system/src/js/validation';
              import { isValidCentralMailPostalCode } from 'platform/forms/address/validations';
              Severity: Minor
              Found in src/applications/pensions/migrations.js - About 3 hrs to fix

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

                          {
                            resourceType: 'Organization',
                            id: 'Organization-552',
                            meta: {
                              profile: [
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 56..85
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 549..578
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1433..1462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2191..2220
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2433..2462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3212..3241
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3815..3844
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4081..4110

                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 104.

                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 9 locations. Consider refactoring.
                Open

                          {
                            resourceType: 'Organization',
                            id: 'Organization-552',
                            meta: {
                              profile: [
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 56..85
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1433..1462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2191..2220
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2433..2462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2951..2980
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3212..3241
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3815..3844
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4081..4110

                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 104.

                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 9 locations. Consider refactoring.
                Open

                          {
                            resourceType: 'Organization',
                            id: 'Organization-552',
                            meta: {
                              profile: [
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 549..578
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1433..1462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2191..2220
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2433..2462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2951..2980
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3212..3241
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3815..3844
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4081..4110

                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 104.

                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 9 locations. Consider refactoring.
                Open

                          {
                            resourceType: 'Organization',
                            id: 'Organization-552',
                            meta: {
                              profile: [
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 56..85
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 549..578
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1433..1462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2191..2220
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2433..2462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2951..2980
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3815..3844
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4081..4110

                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 104.

                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 9 locations. Consider refactoring.
                Open

                          {
                            resourceType: 'Organization',
                            id: 'Organization-552',
                            meta: {
                              profile: [
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 56..85
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 549..578
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2191..2220
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2433..2462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2951..2980
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3212..3241
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3815..3844
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4081..4110

                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 104.

                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 9 locations. Consider refactoring.
                Open

                          {
                            resourceType: 'Organization',
                            id: 'Organization-552',
                            meta: {
                              profile: [
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 56..85
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 549..578
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1433..1462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2433..2462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2951..2980
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3212..3241
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3815..3844
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4081..4110

                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 104.

                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 9 locations. Consider refactoring.
                Open

                          {
                            resourceType: 'Organization',
                            id: 'Organization-552',
                            meta: {
                              profile: [
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 56..85
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 549..578
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1433..1462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2191..2220
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2951..2980
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3212..3241
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3815..3844
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4081..4110

                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 104.

                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 9 locations. Consider refactoring.
                Open

                          {
                            resourceType: 'Organization',
                            id: 'Organization-552',
                            meta: {
                              profile: [
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 56..85
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 549..578
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1433..1462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2191..2220
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2433..2462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2951..2980
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3212..3241
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3815..3844

                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 104.

                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 9 locations. Consider refactoring.
                Open

                          {
                            resourceType: 'Organization',
                            id: 'Organization-552',
                            meta: {
                              profile: [
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 56..85
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 549..578
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1433..1462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2191..2220
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2433..2462
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2951..2980
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3212..3241
                src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4081..4110

                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 104.

                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 schema = {
                  type: 'object',
                  properties: {
                    relevantPriorLoans: {
                      type: 'array',
                src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskRed/form/config/chapters/loans/loanHistory.js on lines 68..94

                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 104.

                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

                  const onChange = ({ target }) => {
                    return dispatch(
                      setData({
                        ...data,
                        expenses: {
                src/applications/financial-status-report/components/householdIncome/AdditionalIncomeInputList.jsx on lines 18..36
                src/applications/financial-status-report/components/monetary/MonetaryInputList.jsx on lines 22..40
                src/applications/financial-status-report/components/otherAssets/OtherAssetsInputList.jsx on lines 19..37

                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 104.

                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

                  const onChange = ({ target }) => {
                    return dispatch(
                      setData({
                        ...data,
                        assets: {
                src/applications/financial-status-report/components/householdExpenses/HouseholdExpensesInputList.jsx on lines 20..38
                src/applications/financial-status-report/components/householdIncome/AdditionalIncomeInputList.jsx on lines 18..36
                src/applications/financial-status-report/components/monetary/MonetaryInputList.jsx on lines 22..40

                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 104.

                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

                  const onChange = ({ target }) => {
                    return dispatch(
                      setData({
                        ...data,
                        assets: {
                src/applications/financial-status-report/components/householdExpenses/HouseholdExpensesInputList.jsx on lines 20..38
                src/applications/financial-status-report/components/householdIncome/AdditionalIncomeInputList.jsx on lines 18..36
                src/applications/financial-status-report/components/otherAssets/OtherAssetsInputList.jsx on lines 19..37

                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 104.

                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

                Severity
                Category
                Status
                Source
                Language