FrenchYeti/dexcalibur

View on GitHub

Showing 948 of 948 total issues

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

    SPUT:{ 
        byte:0x67, 
        instr:"sput", 
        parse: MainParser.regField, 
        type: CONST.INSTR_TYPE.SETTER, 
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 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_OBJECT:{ byte:0x69, instr:"sput-object", 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 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_CHAR:{ byte:0x49, instr:"aget-char", 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 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_WIDE:{ byte:0x68, instr:"sput-wide", 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 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_VIRTUAL_RANGE:{ byte:0x74, instr:"invoke-virtual/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 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

    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

    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

    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

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

    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

            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

Function toString has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
Open

    toString(){
        let v = '[', e=null;
        //console.log(this);
        for(let i=0; i<this.value.length; i++){
            e = this.value[i];
Severity: Minor
Found in src/SmaliVM.js - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function multiVar has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
Open

    multiVar: function(raw_src){
        let m = null, v = [];

        m = Core.RX.REF_REG_MULT.exec(raw_src);

Severity: Minor
Found in src/Opcode.js - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Severity
Category
Status
Source
Language