Showing 39 of 39 total issues

File geo.ts has 756 lines of code (exceeds 250 allowed). Consider refactoring.
Open

const statesOrProvinces = {

  SIB: 'Siberia',
  STP: 'Saint Petersburg',

Severity: Major
Found in src/output/db/udb/geo.ts - About 1 day to fix

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

      public static evidenceAndSpecialEffectsLabels = {
        PHT: {
          name: 'Photos',
          description: 'Photos, movies or videos taken of UFO and related phenomena.'
        },
    Severity: Major
    Found in src/output/db/udb/flags.ts and 6 other locations - About 5 hrs to fix
    src/output/db/udb/flags.ts on lines 6..39
    src/output/db/udb/flags.ts on lines 45..78
    src/output/db/udb/flags.ts on lines 84..117
    src/output/db/udb/flags.ts on lines 123..156
    src/output/db/udb/flags.ts on lines 162..195
    src/output/db/udb/flags.ts on lines 201..234

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

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

      public static aliensMonstersLabels = {
        OID: {
          name: 'Humanoid',
          description: 'Smallish alien figure, often "grey".'
        },
    Severity: Major
    Found in src/output/db/udb/flags.ts and 6 other locations - About 5 hrs to fix
    src/output/db/udb/flags.ts on lines 6..39
    src/output/db/udb/flags.ts on lines 45..78
    src/output/db/udb/flags.ts on lines 84..117
    src/output/db/udb/flags.ts on lines 162..195
    src/output/db/udb/flags.ts on lines 201..234
    src/output/db/udb/flags.ts on lines 240..273

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

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

      public static apparentUfoOccupantActivitiesLabels = {
        OBS: {
          name: 'Observation',
          description: 'Observation: Surveillance.  Chasing/pacing vehicles.'
        },
    Severity: Major
    Found in src/output/db/udb/flags.ts and 6 other locations - About 5 hrs to fix
    src/output/db/udb/flags.ts on lines 6..39
    src/output/db/udb/flags.ts on lines 45..78
    src/output/db/udb/flags.ts on lines 84..117
    src/output/db/udb/flags.ts on lines 123..156
    src/output/db/udb/flags.ts on lines 201..234
    src/output/db/udb/flags.ts on lines 240..273

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

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

      public static typeOfUfoCraftFlagsLabels = {
        SCR: {
          name: 'Saucer',
          description: 'Classic Saucer, Disk, Ovoid or Sphere.  Not just some light.'
        },
    Severity: Major
    Found in src/output/db/udb/flags.ts and 6 other locations - About 5 hrs to fix
    src/output/db/udb/flags.ts on lines 6..39
    src/output/db/udb/flags.ts on lines 45..78
    src/output/db/udb/flags.ts on lines 123..156
    src/output/db/udb/flags.ts on lines 162..195
    src/output/db/udb/flags.ts on lines 201..234
    src/output/db/udb/flags.ts on lines 240..273

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

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

      public static placesVisitedAndThingsAffectedLabels = {
        NUC: {
          name: 'Nuclear',
          description: 'Any nuclear facility: Power plant.  Military.  Research facility.'
        },
    Severity: Major
    Found in src/output/db/udb/flags.ts and 6 other locations - About 5 hrs to fix
    src/output/db/udb/flags.ts on lines 6..39
    src/output/db/udb/flags.ts on lines 45..78
    src/output/db/udb/flags.ts on lines 84..117
    src/output/db/udb/flags.ts on lines 123..156
    src/output/db/udb/flags.ts on lines 162..195
    src/output/db/udb/flags.ts on lines 240..273

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

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

      public static locationFlagsLabels = {
        MAP: {
          name: 'Map',
          description: 'Coordinates are known.  OK to place event on screen maps.'
        },
    Severity: Major
    Found in src/output/db/udb/flags.ts and 6 other locations - About 5 hrs to fix
    src/output/db/udb/flags.ts on lines 45..78
    src/output/db/udb/flags.ts on lines 84..117
    src/output/db/udb/flags.ts on lines 123..156
    src/output/db/udb/flags.ts on lines 162..195
    src/output/db/udb/flags.ts on lines 201..234
    src/output/db/udb/flags.ts on lines 240..273

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

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

      public static miscellaneousFlagsLabels = {
        SCI: {
          name: 'Scientist',
          description: 'A scientist was involved, as an observer or investigator. Also, Scientific testing of traces or effects of sighting.'
        },
    Severity: Major
    Found in src/output/db/udb/flags.ts and 6 other locations - About 5 hrs to fix
    src/output/db/udb/flags.ts on lines 6..39
    src/output/db/udb/flags.ts on lines 84..117
    src/output/db/udb/flags.ts on lines 123..156
    src/output/db/udb/flags.ts on lines 162..195
    src/output/db/udb/flags.ts on lines 201..234
    src/output/db/udb/flags.ts on lines 240..273

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

    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

        let sortedRecord: NuforcOutputRecord = <NuforcOutputRecord>Util.sortProps(record, (prop1, prop2) => {
          let index1 = expectedKeysOrder.indexOf(prop1);
          if (index1 < 0) index1 = 1000;
          let index2 = expectedKeysOrder.indexOf(prop2);
          if (index2 < 0) index2 = 1000;
    Severity: Major
    Found in src/output/db/nuforc/NuforcRecordFormatter.ts and 1 other location - About 4 hrs to fix
    src/output/db/udb/UdbRecordFormatter.ts on lines 43..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 120.

    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

        let sortedRecord: UdbOutputRecord = <UdbOutputRecord>Util.sortProps(record, (prop1, prop2) => {
          let index1 = expectedKeysOrder.indexOf(prop1);
          if (index1 < 0) index1 = 1000;
          let index2 = expectedKeysOrder.indexOf(prop2);
          if (index2 < 0) index2 = 1000;
    Severity: Major
    Found in src/output/db/udb/UdbRecordFormatter.ts and 1 other location - About 4 hrs to fix
    src/output/db/nuforc/NuforcRecordFormatter.ts on lines 16..22

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

    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

    Function desc has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
    Open

      desc(record: UdbOutputRecord) {
        const ref = record.ref ? record.ref : ""
    
        const month = record.month
        const day = record.day
    Severity: Minor
    Found in src/output/db/udb/UdbTextRecordOutput.ts - About 2 hrs 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

    File flags.ts has 274 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    export class Flags {
      /**
       * Location of the OBSERVER.
       * @type {{MAP: string, GND: string, CST: string, SEA: string, AIR: string, MIL: string, CIV: string, HQO: string}}
       */
    Severity: Minor
    Found in src/output/db/udb/flags.ts - About 2 hrs to fix

      Function desc has 60 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        desc(record: UdbOutputRecord) {
          const ref = record.ref ? record.ref : ""
      
          const month = record.month
          const day = record.day
      Severity: Major
      Found in src/output/db/udb/UdbTextRecordOutput.ts - About 2 hrs to fix

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

                1: {
                  name: 'Canada',
                  statesOrProvinces: {
                    ALB: 'Alberta',
                    ALT: 'Alta',
        Severity: Major
        Found in src/output/db/udb/geo.ts and 1 other location - About 2 hrs to fix
        src/output/db/udb/geo.test.ts on lines 57..74

        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

                1: {
                  name: 'Canada',
                  statesOrProvinces: {
                    ALB: 'Alberta',
                    ALT: 'Alta',
        Severity: Major
        Found in src/output/db/udb/geo.test.ts and 1 other location - About 2 hrs to fix
        src/output/db/udb/geo.ts on lines 119..136

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

        class AboveOrEqualMatcher extends CriterionMatcher {
          constructor(type: string, prop: string, value: any) {
            super(type, prop, value);
          }
        
        
        Severity: Major
        Found in src/match.ts and 5 other locations - About 2 hrs to fix
        src/match.ts on lines 13..21
        src/match.ts on lines 22..30
        src/match.ts on lines 31..39
        src/match.ts on lines 40..48
        src/match.ts on lines 49..57

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

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

        class AboveMatcher extends CriterionMatcher {
          constructor(type: string, prop: string, value: any) {
            super(type, prop, value);
          }
        
        
        Severity: Major
        Found in src/match.ts and 5 other locations - About 2 hrs to fix
        src/match.ts on lines 13..21
        src/match.ts on lines 22..30
        src/match.ts on lines 40..48
        src/match.ts on lines 49..57
        src/match.ts on lines 58..66

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

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

        class NotEqualMatcher extends CriterionMatcher {
          constructor(type: string, prop: string, value: any) {
            super(type, prop, value);
          }
        
        
        Severity: Major
        Found in src/match.ts and 5 other locations - About 2 hrs to fix
        src/match.ts on lines 13..21
        src/match.ts on lines 31..39
        src/match.ts on lines 40..48
        src/match.ts on lines 49..57
        src/match.ts on lines 58..66

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

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

        class BelowMatcher extends CriterionMatcher {
          constructor(type: string, prop: string, value: any) {
            super(type, prop, value);
          }
        
        
        Severity: Major
        Found in src/match.ts and 5 other locations - About 2 hrs to fix
        src/match.ts on lines 13..21
        src/match.ts on lines 22..30
        src/match.ts on lines 31..39
        src/match.ts on lines 49..57
        src/match.ts on lines 58..66

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

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

        class EqualMatcher extends CriterionMatcher {
          constructor(type: string, prop: string, value: any) {
            super(type, prop, value);
          }
        
        
        Severity: Major
        Found in src/match.ts and 5 other locations - About 2 hrs to fix
        src/match.ts on lines 22..30
        src/match.ts on lines 31..39
        src/match.ts on lines 40..48
        src/match.ts on lines 49..57
        src/match.ts on lines 58..66

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

        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