FrenchYeti/dexcalibur

View on GitHub

Showing 502 of 948 total issues

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

    MUL_FLOAT_2ADDR:{ byte:0xc8, instr:"mul-float/2addr", ope: CONST.LEX.TOKEN.MUL, parse: MainParser.move, type: CONST.INSTR_TYPE.MATH, reftype:ReferenceType.NONE, format:Format.Format12x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    SUB_INT:{ byte:0x91, instr:"sub-int", 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 },
Severity: Major
Found in src/Opcode.js and 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    ADD_FLOAT:{ byte:0xa6, instr:"add-float", ope: CONST.LEX.TOKEN.ADD, parse: MainParser.Format23x, type: CONST.INSTR_TYPE.MATH, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    REM_FLOAT_2ADDR:{ byte:0xca, instr:"rem-float/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 },
Severity: Major
Found in src/Opcode.js and 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    ADD_INT_LIT8:{ byte:0xd8, instr:"add-int/lit8",  ope: CONST.LEX.TOKEN.ADD,  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 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    XOR_INT_LIT8:{ byte:0xdf, instr:"xor-int/lit8",  ope: CONST.LEX.TOKEN.XOR, 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 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    SUB_INT_2ADDR:{ byte:0xb1, instr:"sub-int/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 },
Severity: Major
Found in src/Opcode.js and 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    XOR_INT_LIT16:{ byte:0xd7, instr:"xor-int/lit16",  ope: CONST.LEX.TOKEN.XOR, 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 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    SHR_INT:{ byte:0x99, instr:"shr-int", ope: CONST.LEX.TOKEN.SHR, parse: MainParser.Format23x, type: CONST.INSTR_TYPE.MATH, reftype: ReferenceType.NONE, format: Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    USHR_INT_2ADDR:{ byte:0xba, instr:"ushr-int/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 },
Severity: Major
Found in src/Opcode.js and 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    ADD_INT_LIT16:{ byte:0xd0, instr:"add-int/lit16",  ope: CONST.LEX.TOKEN.ADD, 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 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    MUL_INT_LIT16:{ byte:0xd2, instr:"mul-int/lit16",  ope: CONST.LEX.TOKEN.MUL, 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 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    AND_INT_LIT8:{ byte:0xdd, instr:"and-int/lit8",  ope: CONST.LEX.TOKEN.AND, 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 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    SHL_INT_LIT8:{ byte:0xe0, instr:"shl-int/lit8",  ope: CONST.LEX.TOKEN.SHL, 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 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    OR_INT:{ byte:0x96, instr:"or-int", 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 },
Severity: Major
Found in src/Opcode.js and 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    AND_INT_LIT16:{ byte:0xd5, instr:"and-int/lit16",  ope: CONST.LEX.TOKEN.AND, 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 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    OR_INT_2ADDR:{ byte:0xb6, instr:"or-int/2addr", ope: CONST.LEX.TOKEN.OR, parse: MainParser.move, type: CONST.INSTR_TYPE.MATH, reftype:ReferenceType.NONE, format:Format.Format12x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    SHR_INT_2ADDR:{ byte:0xb9, instr:"shr-int/2addr", ope: CONST.LEX.TOKEN.SHR, parse: MainParser.move, type: CONST.INSTR_TYPE.MATH, reftype:ReferenceType.NONE, format:Format.Format12x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    MUL_INT:{ byte:0x92, instr:"mul-int", ope: CONST.LEX.TOKEN.MUL, parse: MainParser.Format23x, type: CONST.INSTR_TYPE.MATH, reftype:ReferenceType.NONE, format:Format.Format23x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 987..987
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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

    DIV_FLOAT_2ADDR:{ byte:0xc9, instr:"div-float/2addr", ope: CONST.LEX.TOKEN.DIV, parse: MainParser.move, type: CONST.INSTR_TYPE.MATH, reftype:ReferenceType.NONE, format:Format.Format12x, flag:Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER },
Severity: Major
Found in src/Opcode.js and 41 other locations - About 1 hr to fix
src/Opcode.js on lines 905..905
src/Opcode.js on lines 908..908
src/Opcode.js on lines 930..930
src/Opcode.js on lines 931..931
src/Opcode.js on lines 934..934
src/Opcode.js on lines 935..935
src/Opcode.js on lines 936..936
src/Opcode.js on lines 937..937
src/Opcode.js on lines 938..938
src/Opcode.js on lines 939..939
src/Opcode.js on lines 951..951
src/Opcode.js on lines 952..952
src/Opcode.js on lines 953..953
src/Opcode.js on lines 954..954
src/Opcode.js on lines 955..955
src/Opcode.js on lines 962..962
src/Opcode.js on lines 963..963
src/Opcode.js on lines 964..964
src/Opcode.js on lines 967..967
src/Opcode.js on lines 968..968
src/Opcode.js on lines 969..969
src/Opcode.js on lines 970..970
src/Opcode.js on lines 971..971
src/Opcode.js on lines 972..972
src/Opcode.js on lines 984..984
src/Opcode.js on lines 985..985
src/Opcode.js on lines 986..986
src/Opcode.js on lines 988..988
src/Opcode.js on lines 995..995
src/Opcode.js on lines 997..997
src/Opcode.js on lines 1000..1000
src/Opcode.js on lines 1001..1001
src/Opcode.js on lines 1002..1002
src/Opcode.js on lines 1003..1003
src/Opcode.js on lines 1005..1005
src/Opcode.js on lines 1008..1008
src/Opcode.js on lines 1009..1009
src/Opcode.js on lines 1010..1010
src/Opcode.js on lines 1011..1011
src/Opcode.js on lines 1012..1012
src/Opcode.js on lines 1013..1013

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

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