FrenchYeti/dexcalibur

View on GitHub

Showing 502 of 948 total issues

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

    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

    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

    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

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

    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

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

    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

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

    SPUT_SHORT:{ byte:0x6d, instr:"sput-short", 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 888..888
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 2 locations. Consider refactoring.
Open

    constructor(){
        this.scheme=null;
        this.host=null;
        this.port=null;
        this.path=null;
Severity: Major
Found in src/AndroidAppComponents.js and 1 other location - About 1 hr to fix
src/AndroidAppComponents.js on lines 428..436

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

    constructor(config=null){
        this.functionalTest=null;
        this.handleProfiling=null;
        this.icon=null;
        this.label=null;
Severity: Major
Found in src/AndroidAppComponents.js and 1 other location - About 1 hr to fix
src/AndroidAppComponents.js on lines 163..171

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

            instr.right = new CLASS.MethodReference({
                fqcn: Core.PARSER.fqcn(m[m.length-2]),
                name: meth.name,
                args: meth.args,
                ret: meth.ret,
Severity: Major
Found in src/Opcode.js and 1 other location - About 1 hr to fix
src/Opcode.js on lines 238..244

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

            instr.right = new CLASS.MethodReference({
                fqcn: Core.PARSER.fqcn(m[m.length-2]),
                name: meth.name,
                args: meth.args,
                ret: meth.ret,
Severity: Major
Found in src/Opcode.js and 1 other location - About 1 hr to fix
src/Opcode.js on lines 253..259

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

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

                        v = `${regV.endsWith(".String")?"":"("+regV+")"} ${label}.${oper.right.alias!=null? oper.right.alias : oper.right.name}`;
Severity: Major
Found in src/SmaliVM.js and 1 other location - About 1 hr to fix
src/SmaliVM.js on lines 3702..3702

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

    CONST_4:{ 
        byte:0x12, 
        instr:"const/4", 
        reftype:ReferenceType.NONE, 
        format:Format.Format11n, 
Severity: Major
Found in src/Opcode.js and 1 other location - About 1 hr to fix
src/Opcode.js on lines 694..704

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        for(let i in data){
            
            verif = Configuration.verifyField(i, data[i]);
            if(verif != null){
                dev.invalid.push({ name:i, msg:verif });
Severity: Major
Found in src/routes/InstallRoutes.js and 1 other location - About 1 hr to fix
src/routes/InstallRoutes.js on lines 32..39

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

    MONITOR_ENTER:{ 
        byte:0x1d, 
        instr:"monitor-enter", 
        reftype:ReferenceType.NONE, 
        format:Format.Format11x, 
Severity: Major
Found in src/Opcode.js and 1 other location - About 1 hr to fix
src/Opcode.js on lines 571..581

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

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