FrenchYeti/dexcalibur

View on GitHub

Showing 948 of 948 total issues

Function init has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    init(){
        let im = InspectorManager.getInstance();

        // init config
        // TODO remove engine configuration
Severity: Minor
Found in src/DexcaliburProject.js - About 1 hr to fix

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

        LONG_TO_DOUBLE:{ byte:0x86, instr:"long-to-double", parse: MainParser.move, type: CONST.INSTR_TYPE.MATH_CAST, reftype:ReferenceType.NONE, format:Format.Format12x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        DOUBLE_TO_LONG:{ byte:0x8b, instr:"double-to-long", parse: MainParser.move, type: CONST.INSTR_TYPE.MATH_CAST, reftype:ReferenceType.NONE, format:Format.Format12x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920

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

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

        AGET_BOOLEAN:{ byte:0x47, instr:"aget-boolean", parse: MainParser.Format23x, type: CONST.INSTR_TYPE.ARRAY_GETTER, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        FLOAT_TO_DOUBLE:{ byte:0x89, instr:"float-to-double", parse: MainParser.move, type: CONST.INSTR_TYPE.MATH_CAST, reftype:ReferenceType.NONE, format:Format.Format12x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 922..922

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

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

        IGET_BOOLEAN:{ byte:0x55, instr:"iget-boolean", parse: MainParser.multRegField, type: CONST.INSTR_TYPE.GETTER, reftype:ReferenceType.FIELD, format:Format.Format22c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        SPUT_CHAR:{ byte:0x6c, instr:"sput-char", parse: MainParser.regField, type: CONST.INSTR_TYPE.SETTER, reftype:ReferenceType.FIELD, format:Format.Format21c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.STATIC_FIELD_ACCESSOR },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        IGET_BYTE:{ byte:0x56, instr:"iget-byte", parse: MainParser.multRegField, type: CONST.INSTR_TYPE.GETTER, reftype:ReferenceType.FIELD, format:Format.Format22c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        SPUT_BYTE:{ byte:0x6b, instr:"sput-byte", parse: MainParser.regField, type: CONST.INSTR_TYPE.SETTER, reftype:ReferenceType.FIELD, format:Format.Format21c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.STATIC_FIELD_ACCESSOR },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        AGET_OBJECT:{ byte:0x46, instr:"aget-object", parse: MainParser.Format23x, type: CONST.INSTR_TYPE.ARRAY_GETTER, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        NEW_INSTANCE:{ byte:0x22, instr:"new-instance", parse: MainParser.format21c, type: CONST.INSTR_TYPE.NEW,reftype:ReferenceType.TYPE, format:Format.Format21c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        INVOKE_INTERFACE:{ byte:0x72, instr:"invoke-interface", parse: MainParser.invoke, type: CONST.INSTR_TYPE.INVOKE, reftype:ReferenceType.METHOD, format:Format.Format35c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        INVOKE_SUPER_RANGE:{ byte:0x75, instr:"invoke-super/range", parse: MainParser.invoke, type: CONST.INSTR_TYPE.INVOKE, reftype:ReferenceType.METHOD, format:Format.Format3rc, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        INT_TO_DOUBLE:{ byte:0x83, instr:"int-to-double", parse: MainParser.move, type: CONST.INSTR_TYPE.MATH_CAST, reftype:ReferenceType.NONE, format:Format.Format12x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        CHECK_CAST:{ byte:0x1f, instr:"check-cast", parse: MainParser.format21c, type: CONST.INSTR_TYPE.CLASS_CHECK, reftype:ReferenceType.TYPE, format:Format.Format21c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        AGET_BYTE:{ byte:0x48, instr:"aget-byte", parse: MainParser.Format23x, type: CONST.INSTR_TYPE.ARRAY_GETTER, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        IGET_OBJECT:{ byte:0x54, instr:"iget-object", parse: MainParser.multRegField, type: CONST.INSTR_TYPE.GETTER, reftype:ReferenceType.FIELD, format:Format.Format22c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        INVOKE_INTERFACE_RANGE:{ byte:0x78, instr:"invoke-interface/range", parse: MainParser.invoke, type: CONST.INSTR_TYPE.INVOKE, reftype:ReferenceType.METHOD, format:Format.Format3rc, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        NEW_ARRAY:{ byte:0x23, instr:"new-array", parse: MainParser.format22c, type: CONST.INSTR_TYPE.NEW,reftype:ReferenceType.TYPE, format:Format.Format22c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },    
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 802..802
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

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

        IGET_SHORT:{ byte:0x58, instr:"iget-short", parse: MainParser.multRegField, type: CONST.INSTR_TYPE.GETTER, reftype:ReferenceType.FIELD, format:Format.Format22c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
    Severity: Major
    Found in src/Opcode.js and 32 other locations - About 1 hr to fix
    src/Opcode.js on lines 717..717
    src/Opcode.js on lines 718..718
    src/Opcode.js on lines 720..720
    src/Opcode.js on lines 722..722
    src/Opcode.js on lines 723..723
    src/Opcode.js on lines 725..725
    src/Opcode.js on lines 782..782
    src/Opcode.js on lines 783..783
    src/Opcode.js on lines 784..784
    src/Opcode.js on lines 785..785
    src/Opcode.js on lines 786..786
    src/Opcode.js on lines 798..798
    src/Opcode.js on lines 799..799
    src/Opcode.js on lines 800..800
    src/Opcode.js on lines 801..801
    src/Opcode.js on lines 876..883
    src/Opcode.js on lines 884..884
    src/Opcode.js on lines 885..885
    src/Opcode.js on lines 886..886
    src/Opcode.js on lines 887..887
    src/Opcode.js on lines 888..888
    src/Opcode.js on lines 889..889
    src/Opcode.js on lines 893..893
    src/Opcode.js on lines 896..896
    src/Opcode.js on lines 897..897
    src/Opcode.js on lines 898..898
    src/Opcode.js on lines 901..901
    src/Opcode.js on lines 914..914
    src/Opcode.js on lines 917..917
    src/Opcode.js on lines 919..919
    src/Opcode.js on lines 920..920
    src/Opcode.js on lines 922..922

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

    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