FrenchYeti/dexcalibur

View on GitHub

Showing 948 of 948 total issues

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

    setMetadata( pMetadata){
        if(obj instanceof Metadata){
            this.meta = obj;
        }else if(typeof obj == 'object'){
            this.meta = new Metadata(obj);
Severity: Minor
Found in src/ModelPackage.js and 1 other location - About 55 mins to fix
src/CoreClass.js on lines 364..373

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

BasicType.prototype.toJsonObject = function(){
    let obj = new Object();
    obj.name = this._name;
    obj.arr = this.arr;
    obj.primitive = true;
Severity: Minor
Found in src/CoreClass.js and 1 other location - About 55 mins to fix
src/CoreClass.js on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

                    case CONST.BRANCH.IF_TRUE:
                        Logger.info(prefix+Chalk.bold.green("if TRUE :"));
                        this.showBlock(bblocks[i].next[j].block, prefix, Chalk.green); 
                        break;
Severity: Minor
Found in src/Analyzer.js and 1 other location - About 55 mins to fix
src/Analyzer.js on lines 1130..1133

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

ObjectType.prototype.toJsonObject = function(){
    let obj = new Object();
    obj.name = this.name;
    obj.arr = this.arr;
    obj.primitive = false;
Severity: Minor
Found in src/CoreClass.js and 1 other location - About 55 mins to fix
src/CoreClass.js on lines 262..268

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

Package.prototype.setMetadata = function(obj){
    if(obj instanceof Metadata){
        this.meta = obj;
    }else if(typeof obj == 'object'){
        this.meta = new Metadata(obj);
Severity: Minor
Found in src/CoreClass.js and 1 other location - About 55 mins to fix
src/ModelPackage.js on lines 53..62

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

                    case CONST.BRANCH.IF_FALSE:
                        Logger.info(prefix+Chalk.bold.red("if FALSE :"));
                        this.showBlock(bblocks[i].next[j].block, prefix, Chalk.red);
                        break;
Severity: Minor
Found in src/Analyzer.js and 1 other location - About 55 mins to fix
src/Analyzer.js on lines 1126..1129

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 73.

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

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

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

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

Refactorings

Further Reading

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

        i.getCategories().map(a => {
            let t = TAGS_SIGNATURE.category[a.getName()];
            if (t != null) {
                event.data.addTag(t);
            }
Severity: Minor
Found in inspectors/ApplicationTopography/main.js and 1 other location - About 50 mins to fix
inspectors/ApplicationTopography/main.js on lines 40..45

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

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

                    if(this.simplify<1){
                        v = `${this.getRegisterName(oper.left[0])} = ${this.getRegisterName(oper.left[1])}+${this.getImmediateValue(oper.right)};`;

                    }else{
                        regX = this.getRegisterName(oper.left[1]);
Severity: Major
Found in src/Decompiler.js and 2 other locations - About 50 mins to fix
src/Decompiler.js on lines 1021..1034
src/Decompiler.js on lines 1040..1074

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

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

                    if(this.simplify<1){
                        v = `${this.getRegisterName(oper.left[0])} = ${this.getRegisterName(oper.left[1])}+${this.getImmediateValue(oper.right)};`;

                    }else{
                        regX = this.getRegisterName(oper.left[1]);
Severity: Major
Found in src/Decompiler.js and 2 other locations - About 50 mins to fix
src/Decompiler.js on lines 757..770
src/Decompiler.js on lines 1040..1074

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

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

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

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

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

Refactorings

Further Reading

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

        i.getActions().map(a => {
            let t = TAGS_SIGNATURE.action[a.getName()];
            if (t != null) {
                event.data.addTag(t);
            }
Severity: Minor
Found in inspectors/ApplicationTopography/main.js and 1 other location - About 50 mins to fix
inspectors/ApplicationTopography/main.js on lines 47..52

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

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