FrenchYeti/dexcalibur

View on GitHub

Showing 948 of 948 total issues

Function addIntercept has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

HookSet.prototype.addIntercept = function(interceptConfig){
    if(interceptConfig.method == null && interceptConfig.raw == null){
        Logger.error("[HOOK MANAGER] addIntercept(): The method to hook is not defined");
        return null;
    }
Severity: Minor
Found in src/HookManager.js - About 55 mins 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

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

    CMP_LONG:{ byte:0x31, instr:"cmp-long", parse: MainParser.Format23x, type: CONST.INSTR_TYPE.CMP, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    INT_TO_CHAR:{ byte:0x8e, instr:"int-to-char", parse: MainParser.move, type: CONST.INSTR_TYPE.MATH_CAST, reftype:ReferenceType.NONE, format:Format.Format12x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    RSUB_INT_LIT8:{ byte:0xd9, instr:"rsub-int/lit8",  parse: MainParser.format_lit16, type: CONST.INSTR_TYPE.MATH,  reftype:ReferenceType.NONE, format:Format.Format22b, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996

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

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

    IPUT:{ byte:0x59, instr:"iput", parse: MainParser.multRegField, type: CONST.INSTR_TYPE.SETTER, reftype:ReferenceType.FIELD, format:Format.Format22c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    IPUT_SHORT:{ byte:0x5f, instr:"iput-short", parse: MainParser.multRegField, type: CONST.INSTR_TYPE.SETTER, reftype:ReferenceType.FIELD, format:Format.Format22c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    APUT_CHAR:{ byte:0x50, instr:"aput-char", parse: MainParser.Format23x, type: CONST.INSTR_TYPE.ARRAY_SETTER, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    LONG_TO_FLOAT:{ byte:0x85, instr:"long-to-float", parse: MainParser.move, type: CONST.INSTR_TYPE.MATH_CAST, reftype:ReferenceType.NONE, format:Format.Format12x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    FLOAT_TO_INT:{ byte:0x87, instr:"float-to-int", parse: MainParser.move, type: CONST.INSTR_TYPE.MATH_CAST, reftype:ReferenceType.NONE, format:Format.Format12x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    DOUBLE_TO_FLOAT:{ byte:0x8c, instr:"double-to-float", parse: MainParser.move, type: CONST.INSTR_TYPE.MATH_CAST, reftype:ReferenceType.NONE, format:Format.Format12x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    APUT_OBJECT:{ byte:0x4d, instr:"aput-object", parse: MainParser.Format23x, type: CONST.INSTR_TYPE.ARRAY_SETTER, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    LONG_TO_INT:{ byte:0x84, instr:"long-to-int", parse: MainParser.move, type: CONST.INSTR_TYPE.MATH_CAST, reftype:ReferenceType.NONE, format:Format.Format12x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    IPUT_CHAR:{ byte:0x5e, instr:"iput-char", parse: MainParser.multRegField, type: CONST.INSTR_TYPE.SETTER, reftype:ReferenceType.FIELD, format:Format.Format22c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    CMPG_DOUBLE:{ byte:0x30, instr:"cmpg-double", parse: MainParser.Format23x, type: CONST.INSTR_TYPE.CMP, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    IPUT_OBJECT:{ byte:0x5b, instr:"iput-object", parse: MainParser.multRegField, type: CONST.INSTR_TYPE.SETTER, reftype:ReferenceType.FIELD, format:Format.Format22c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    IPUT_BYTE:{ byte:0x5d, instr:"iput-byte", parse: MainParser.multRegField, type: CONST.INSTR_TYPE.SETTER, reftype:ReferenceType.FIELD, format:Format.Format22c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    IPUT_WIDE:{ byte:0x5a, instr:"iput-wide", parse: MainParser.multRegField, type: CONST.INSTR_TYPE.SETTER, reftype:ReferenceType.FIELD, format:Format.Format22c, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    CMPL_DOUBLE:{ byte:0x2f, instr:"cmpl-double", parse: MainParser.Format23x, type: CONST.INSTR_TYPE.CMP, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    APUT:{ byte:0x4b, instr:"aput", parse: MainParser.Format23x, type: CONST.INSTR_TYPE.ARRAY_SETTER, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 996..996
src/Opcode.js on lines 1004..1004

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

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

    RSUB_INT:{ byte:0xd1, instr:"rsub-int",   parse: MainParser.format_lit16, type: CONST.INSTR_TYPE.MATH, reftype:ReferenceType.NONE, format:Format.Format22s, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 28 other locations - About 55 mins to fix
src/Opcode.js on lines 760..760
src/Opcode.js on lines 761..761
src/Opcode.js on lines 762..762
src/Opcode.js on lines 763..763
src/Opcode.js on lines 787..787
src/Opcode.js on lines 788..788
src/Opcode.js on lines 789..789
src/Opcode.js on lines 790..790
src/Opcode.js on lines 791..791
src/Opcode.js on lines 792..792
src/Opcode.js on lines 793..793
src/Opcode.js on lines 803..803
src/Opcode.js on lines 804..804
src/Opcode.js on lines 805..805
src/Opcode.js on lines 806..806
src/Opcode.js on lines 807..807
src/Opcode.js on lines 808..808
src/Opcode.js on lines 809..809
src/Opcode.js on lines 913..913
src/Opcode.js on lines 915..915
src/Opcode.js on lines 916..916
src/Opcode.js on lines 918..918
src/Opcode.js on lines 921..921
src/Opcode.js on lines 923..923
src/Opcode.js on lines 924..924
src/Opcode.js on lines 925..925
src/Opcode.js on lines 926..926
src/Opcode.js on lines 1004..1004

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

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