FrenchYeti/dexcalibur

View on GitHub

Showing 502 of 948 total issues

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

    FLOAT_TO_LONG:{ byte:0x88, instr:"float-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 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

    SPUT_BOOLEAN:{ byte:0x6a, instr:"sput-boolean", 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 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_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

    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_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

    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_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

    ARRAY_LENGTH:{ byte:0x21, instr:"array-length", parse: MainParser.move, type: CONST.INSTR_TYPE.ARRAY_LENGTH, reftype:ReferenceType.NONE, format:Format.Format12x, 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 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

    INVOKE_SUPER:{ byte:0x6f, instr:"invoke-super", 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 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

    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

    INSTANCE_OF:{ byte:0x20, instr:"instance-of", parse: MainParser.format22c, type: CONST.INSTR_TYPE.CLASS_CHECK, 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 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

    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

    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

    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

    FILLED_NEW_ARRAY:{ byte:0x24, instr:"filled-new-array", parse: MainParser.format22c, type: CONST.INSTR_TYPE.NEW,reftype:ReferenceType.TYPE, 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 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_SHORT:{ byte:0x4a, instr:"aget-short", 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 784..784
src/Opcode.js on lines 785..785
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_CHAR:{ byte:0x57, instr:"iget-char", 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 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

Severity
Category
Status
Source
Language