FrenchYeti/dexcalibur

View on GitHub

Showing 948 of 948 total issues

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

    ADD_LONG_2ADDR:{ byte:0xbb, instr:"add-long/2addr", ope: CONST.LEX.TOKEN.ADD, parse: MainParser.move, type: CONST.INSTR_TYPE.MATH, 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 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    SUB_DOUBLE_2ADDR:{ byte:0xcc, instr:"sub-double/2addr", ope: CONST.LEX.TOKEN.SUB, parse: MainParser.move, type: CONST.INSTR_TYPE.MATH, 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 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    SUB_DOUBLE:{ byte:0xac, instr:"sub-double", ope: CONST.LEX.TOKEN.SUB, parse: MainParser.Format23x, type: CONST.INSTR_TYPE.MATH, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER },
Severity: Major
Found in src/Opcode.js and 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    DIV_DOUBLE:{ byte:0xae, instr:"div-double", ope: CONST.LEX.TOKEN.DIV, parse: MainParser.Format23x, type: CONST.INSTR_TYPE.MATH, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER },
Severity: Major
Found in src/Opcode.js and 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    REM_DOUBLE:{ byte:0xaf, instr:"rem-double", ope: CONST.LEX.TOKEN.REM, parse: MainParser.Format23x, type: CONST.INSTR_TYPE.MATH, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER },
Severity: Major
Found in src/Opcode.js and 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    XOR_LONG_2ADDR:{ byte:0xc2, instr:"xor-long/2addr", ope: CONST.LEX.TOKEN.XOR, parse: MainParser.move, type: CONST.INSTR_TYPE.MATH, 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 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    OR_LONG:{ byte:0xa1, instr:"or-long", ope: CONST.LEX.TOKEN.OR, parse: MainParser.Format23x, type: CONST.INSTR_TYPE.MATH, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER },
Severity: Major
Found in src/Opcode.js and 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    SUB_LONG_2ADDR:{ byte:0xbc, instr:"sub-long/2addr", ope: CONST.LEX.TOKEN.SUB, parse: MainParser.move, type: CONST.INSTR_TYPE.MATH, 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 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    SHL_LONG_2ADDR:{ byte:0xc3, instr:"shl-long/2addr", ope: CONST.LEX.TOKEN.SHL, parse: MainParser.move, type: CONST.INSTR_TYPE.MATH, 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 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    SUB_LONG:{ byte:0x9c, instr:"sub-long", ope: CONST.LEX.TOKEN.SUB, parse: MainParser.Format23x, type: CONST.INSTR_TYPE.MATH, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER },
Severity: Major
Found in src/Opcode.js and 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    AND_LONG_2ADDR:{ byte:0xc0, instr:"and-long/2addr", ope: CONST.LEX.TOKEN.AND, parse: MainParser.move, type: CONST.INSTR_TYPE.MATH, 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 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    AND_LONG:{ byte:0xa0, instr:"and-long", ope: CONST.LEX.TOKEN.AND, parse: MainParser.Format23x, type: CONST.INSTR_TYPE.MATH, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER },
Severity: Major
Found in src/Opcode.js and 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    DIV_INT_2ADDR:{ byte:0xb3, instr:"div-int/2addr", ope: CONST.LEX.TOKEN.DIV, parse: MainParser.move, type: CONST.INSTR_TYPE.MATH, reftype:ReferenceType.NONE, format:Format.Format12x, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    XOR_LONG:{ byte:0xa2, instr:"xor-long", ope: CONST.LEX.TOKEN.XOR, parse: MainParser.Format23x, type: CONST.INSTR_TYPE.MATH, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER },
Severity: Major
Found in src/Opcode.js and 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    USHR_LONG:{ byte:0xa5, instr:"ushr-long", ope: CONST.LEX.TOKEN.USHR, arse: MainParser.Format23x, type: CONST.INSTR_TYPE.MATH, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER },
Severity: Major
Found in src/Opcode.js and 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    USHR_LONG_2ADDR:{ byte:0xc5, instr:"ushr-long/2addr", ope: CONST.LEX.TOKEN.USHR, parse: MainParser.move, type: CONST.INSTR_TYPE.MATH, 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 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    REM_DOUBLE_2ADDR:{ byte:0xcf, instr:"rem-double/2addr", ope: CONST.LEX.TOKEN.REM, parse: MainParser.move, type: CONST.INSTR_TYPE.MATH, 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 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    REM_INT_LIT16:{ byte:0xd4, instr:"rem-int/lit16",  ope: CONST.LEX.TOKEN.REM, parse: MainParser.format_lit16, type: CONST.INSTR_TYPE.MATH,  reftype:ReferenceType.NONE, format:Format.Format22s, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    SHL_LONG:{ byte:0xa3, instr:"shl-long", ope: CONST.LEX.TOKEN.SHL, parse: MainParser.Format23x, type: CONST.INSTR_TYPE.MATH, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER },
Severity: Major
Found in src/Opcode.js and 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 998..998
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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

    DIV_INT_LIT16:{ byte:0xd3, instr:"div-int/lit16",  ope: CONST.LEX.TOKEN.DIV, parse: MainParser.format_lit16, type: CONST.INSTR_TYPE.MATH,  reftype:ReferenceType.NONE, format:Format.Format22s, flag:Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 38 other locations - About 2 hrs to fix
src/Opcode.js on lines 906..906
src/Opcode.js on lines 907..907
src/Opcode.js on lines 909..909
src/Opcode.js on lines 932..932
src/Opcode.js on lines 933..933
src/Opcode.js on lines 940..940
src/Opcode.js on lines 941..941
src/Opcode.js on lines 942..942
src/Opcode.js on lines 945..945
src/Opcode.js on lines 946..946
src/Opcode.js on lines 947..947
src/Opcode.js on lines 948..948
src/Opcode.js on lines 949..949
src/Opcode.js on lines 950..950
src/Opcode.js on lines 956..956
src/Opcode.js on lines 957..957
src/Opcode.js on lines 958..958
src/Opcode.js on lines 959..959
src/Opcode.js on lines 960..960
src/Opcode.js on lines 965..965
src/Opcode.js on lines 966..966
src/Opcode.js on lines 973..973
src/Opcode.js on lines 974..974
src/Opcode.js on lines 975..975
src/Opcode.js on lines 978..978
src/Opcode.js on lines 979..979
src/Opcode.js on lines 980..980
src/Opcode.js on lines 981..981
src/Opcode.js on lines 982..982
src/Opcode.js on lines 983..983
src/Opcode.js on lines 989..989
src/Opcode.js on lines 990..990
src/Opcode.js on lines 991..991
src/Opcode.js on lines 992..992
src/Opcode.js on lines 993..993
src/Opcode.js on lines 999..999
src/Opcode.js on lines 1006..1006
src/Opcode.js on lines 1007..1007

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

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