NatLibFi/marc-record-validators-melinda

View on GitHub

Showing 1,137 of 1,137 total issues

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

    {
      'tag': '841',
      'repeatable': false,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '855',
      'repeatable': false,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '974',
      'repeatable': false,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767

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

    {
      'tag': '074',
      'repeatable': true,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '254',
      'repeatable': false,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '306',
      'repeatable': false,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '525',
      'repeatable': true,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '842',
      'repeatable': false,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '257',
      'repeatable': true,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '038',
      'repeatable': false,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '263',
      'repeatable': false,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '901',
      'repeatable': true,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '256',
      'repeatable': false,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '580',
      'repeatable': true,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '547',
      'repeatable': true,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '854',
      'repeatable': false,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '853',
      'repeatable': false,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4193..4203
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    {
      'tag': '844',
      'repeatable': false,
      'fieldType': 'dataField',
      'indicators': {'ind1': ' ', 'ind2': ' '},
Severity: Major
Found in src/melindaCustomMergeFields.js and 19 other locations - About 2 hrs to fix
src/melindaCustomMergeFields.js on lines 108..118
src/melindaCustomMergeFields.js on lines 368..378
src/melindaCustomMergeFields.js on lines 628..638
src/melindaCustomMergeFields.js on lines 677..687
src/melindaCustomMergeFields.js on lines 1140..1150
src/melindaCustomMergeFields.js on lines 1168..1178
src/melindaCustomMergeFields.js on lines 1179..1189
src/melindaCustomMergeFields.js on lines 1219..1229
src/melindaCustomMergeFields.js on lines 1289..1299
src/melindaCustomMergeFields.js on lines 2314..2324
src/melindaCustomMergeFields.js on lines 2582..2592
src/melindaCustomMergeFields.js on lines 2748..2758
src/melindaCustomMergeFields.js on lines 4151..4161
src/melindaCustomMergeFields.js on lines 4162..4172
src/melindaCustomMergeFields.js on lines 4267..4277
src/melindaCustomMergeFields.js on lines 4278..4288
src/melindaCustomMergeFields.js on lines 4289..4299
src/melindaCustomMergeFields.js on lines 4757..4767
src/melindaCustomMergeFields.js on lines 5063..5073

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

    it('Finds the record invalid (spec)', async () => {
      const validator = await validatorFactory(config);
      const result = await validator.validate(recordInvalid);
      expect(result).to.eql({valid: false, message: ['Subfield $210$$2should be excluded']});
    });
Severity: Major
Found in src/subfield-exclusion.spec.js and 3 other locations - About 2 hrs to fix
src/subfield-exclusion.spec.js on lines 283..287
src/subfield-exclusion.spec.js on lines 334..338
src/subfield-exclusion.spec.js on lines 502..506

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

    it('Finds the record with 041$a zxx invalid (spec)', async () => {
      const validator = await validatorFactory(config);
      const result = await validator.validate(recordOriginal);
      expect(result).to.eql({valid: false, message: ['Subfield $041$$ashould be excluded']});
    });
Severity: Major
Found in src/subfield-exclusion.spec.js and 3 other locations - About 2 hrs to fix
src/subfield-exclusion.spec.js on lines 283..287
src/subfield-exclusion.spec.js on lines 417..421
src/subfield-exclusion.spec.js on lines 502..506

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

Severity
Category
Status
Source
Language