FrenchYeti/dexcalibur

View on GitHub

Showing 502 of 948 total issues

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

                            tmp = {
                                // method signature
                                s: m.signature(),
                                // aliased signature 
                                a: m.__aliasedCallSignature__,
Severity: Major
Found in src/WebServer.js and 1 other location - About 1 hr to fix
src/WebServer.js on lines 1594..1603

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

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

                            tmp = {
                                // method signature
                                s: r2.signature(),
                                // aliased signature 
                                a: r2.__aliasedCallSignature__,
Severity: Major
Found in src/WebServer.js and 1 other location - About 1 hr to fix
src/WebServer.js on lines 1550..1559

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

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

    CONST_WIDE_32:{ 
        byte:0x17, 
        instr:"const-wide/32", 
        reftype:ReferenceType.NONE, 
        format:Format.Format31i, 
Severity: Major
Found in src/Opcode.js and 10 other locations - About 1 hr to fix
src/Opcode.js on lines 418..428
src/Opcode.js on lines 429..439
src/Opcode.js on lines 440..450
src/Opcode.js on lines 494..504
src/Opcode.js on lines 614..624
src/Opcode.js on lines 636..646
src/Opcode.js on lines 647..657
src/Opcode.js on lines 658..668
src/Opcode.js on lines 669..680
src/Opcode.js on lines 681..691

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

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

    CONST_WIDE_HIGH16:{ 
        byte:0x19, 
        instr:"const-wide/high16", 
        reftype:ReferenceType.NONE, 
        format:Format.Format21lh, 
Severity: Major
Found in src/Opcode.js and 10 other locations - About 1 hr to fix
src/Opcode.js on lines 418..428
src/Opcode.js on lines 429..439
src/Opcode.js on lines 440..450
src/Opcode.js on lines 494..504
src/Opcode.js on lines 614..624
src/Opcode.js on lines 625..635
src/Opcode.js on lines 636..646
src/Opcode.js on lines 658..668
src/Opcode.js on lines 669..680
src/Opcode.js on lines 681..691

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

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

    MOVE_WIDE:{ 
        byte:0x04, 
        instr:"move-wide", 
        reftype:ReferenceType.NONE, 
        format:Format.Format12x, 
Severity: Major
Found in src/Opcode.js and 10 other locations - About 1 hr to fix
src/Opcode.js on lines 429..439
src/Opcode.js on lines 440..450
src/Opcode.js on lines 494..504
src/Opcode.js on lines 614..624
src/Opcode.js on lines 625..635
src/Opcode.js on lines 636..646
src/Opcode.js on lines 647..657
src/Opcode.js on lines 658..668
src/Opcode.js on lines 669..680
src/Opcode.js on lines 681..691

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

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

    CONST_STRING:{ 
        byte:    0x1a, 
        instr:    "const-string", 
        reftype:    ReferenceType.STRING, 
        format:    Format.Format21c, 
Severity: Major
Found in src/Opcode.js and 10 other locations - About 1 hr to fix
src/Opcode.js on lines 418..428
src/Opcode.js on lines 429..439
src/Opcode.js on lines 440..450
src/Opcode.js on lines 494..504
src/Opcode.js on lines 614..624
src/Opcode.js on lines 625..635
src/Opcode.js on lines 636..646
src/Opcode.js on lines 647..657
src/Opcode.js on lines 669..680
src/Opcode.js on lines 681..691

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

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

        if(this.usesConfiguration != null && this.usesConfiguration.length > 0){
            o['uses-configuration'] = [];
            this.usesConfiguration.map(perm => {
                o['uses-configuration'].push(perm.toXml());
            });
Severity: Major
Found in src/AndroidAppComponents.js and 7 other locations - About 1 hr to fix
src/AndroidAppComponents.js on lines 1817..1822
src/AndroidAppComponents.js on lines 1824..1829
src/AndroidAppComponents.js on lines 1838..1843
src/AndroidAppComponents.js on lines 1850..1855
src/AndroidAppComponents.js on lines 1856..1861
src/AndroidAppComponents.js on lines 1862..1867
src/AndroidAppComponents.js on lines 1868..1873

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

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

        if(this.supportsScreens != null && this.supportsScreens.length > 0){
            o['supports-screens'] = [];
            this.supportsScreens.map(perm => {
                o['supports-screens'].push(perm.toXml());
            });
Severity: Major
Found in src/AndroidAppComponents.js and 7 other locations - About 1 hr to fix
src/AndroidAppComponents.js on lines 1817..1822
src/AndroidAppComponents.js on lines 1824..1829
src/AndroidAppComponents.js on lines 1831..1836
src/AndroidAppComponents.js on lines 1838..1843
src/AndroidAppComponents.js on lines 1856..1861
src/AndroidAppComponents.js on lines 1862..1867
src/AndroidAppComponents.js on lines 1868..1873

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

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

    MOVE_RESULT_WIDE:{ 
        byte:0x0b, 
        instr:"move-result-wide", 
        reftype:ReferenceType.NONE, 
        format:Format.Format11x, 
Severity: Major
Found in src/Opcode.js and 10 other locations - About 1 hr to fix
src/Opcode.js on lines 418..428
src/Opcode.js on lines 429..439
src/Opcode.js on lines 440..450
src/Opcode.js on lines 614..624
src/Opcode.js on lines 625..635
src/Opcode.js on lines 636..646
src/Opcode.js on lines 647..657
src/Opcode.js on lines 658..668
src/Opcode.js on lines 669..680
src/Opcode.js on lines 681..691

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

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

    MOVE_WIDE_16:{ 
        byte:0x06, 
        instr:"move-wide/16", 
        reftype:ReferenceType.NONE, 
        format:Format.Format32x, 
Severity: Major
Found in src/Opcode.js and 10 other locations - About 1 hr to fix
src/Opcode.js on lines 418..428
src/Opcode.js on lines 429..439
src/Opcode.js on lines 494..504
src/Opcode.js on lines 614..624
src/Opcode.js on lines 625..635
src/Opcode.js on lines 636..646
src/Opcode.js on lines 647..657
src/Opcode.js on lines 658..668
src/Opcode.js on lines 669..680
src/Opcode.js on lines 681..691

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

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

        if(this.compatibleScreens != null && this.compatibleScreens.length > 0){
            o['compatible-screens'] = [];
            this.compatibleScreens.map(perm => {
                o['compatible-screens'].push(perm.toXml());
            });
Severity: Major
Found in src/AndroidAppComponents.js and 7 other locations - About 1 hr to fix
src/AndroidAppComponents.js on lines 1817..1822
src/AndroidAppComponents.js on lines 1824..1829
src/AndroidAppComponents.js on lines 1831..1836
src/AndroidAppComponents.js on lines 1838..1843
src/AndroidAppComponents.js on lines 1850..1855
src/AndroidAppComponents.js on lines 1862..1867
src/AndroidAppComponents.js on lines 1868..1873

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

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 REF.METHOD: 
                    db[src[i].enclosingClass.id].methods[i] = new Core.Method();
                    db[src[i].enclosingClass.id].methods[i].import(src[i]);
                    break;
Severity: Major
Found in src/BackupManager.js and 1 other location - About 1 hr to fix
src/BackupManager.js on lines 452..455

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

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

    MOVE_WIDE_FROM16:{ 
        byte:0x05, 
        instr:"move-wide/from16", 
        reftype:ReferenceType.NONE, 
        format:Format.Format22x, 
Severity: Major
Found in src/Opcode.js and 10 other locations - About 1 hr to fix
src/Opcode.js on lines 418..428
src/Opcode.js on lines 440..450
src/Opcode.js on lines 494..504
src/Opcode.js on lines 614..624
src/Opcode.js on lines 625..635
src/Opcode.js on lines 636..646
src/Opcode.js on lines 647..657
src/Opcode.js on lines 658..668
src/Opcode.js on lines 669..680
src/Opcode.js on lines 681..691

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

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

        if(this.usesFeatures != null && this.usesFeatures.length > 0){
            o['uses-feature'] = [];
            this.usesFeatures.map(perm => {
                o['uses-feature'].push(perm.toXml());
            });
Severity: Major
Found in src/AndroidAppComponents.js and 7 other locations - About 1 hr to fix
src/AndroidAppComponents.js on lines 1817..1822
src/AndroidAppComponents.js on lines 1824..1829
src/AndroidAppComponents.js on lines 1831..1836
src/AndroidAppComponents.js on lines 1850..1855
src/AndroidAppComponents.js on lines 1856..1861
src/AndroidAppComponents.js on lines 1862..1867
src/AndroidAppComponents.js on lines 1868..1873

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

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

    static fromXml(xmlobj){
        let p = new PermissionGroup();
        for(let i in xmlobj){
            if(i.startsWith('android:'))
                p[i.substr(8)] = xmlobj[i];
Severity: Major
Found in src/AndroidAppComponents.js and 1 other location - About 1 hr to fix
src/AndroidAppComponents.js on lines 723..732

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

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

    CONST_STRING_JUMBO:{ 
        byte:    0x1b, 
        instr:    "const-string/jumbo", 
        reftype:    ReferenceType.STRING, 
        format:    Format.Format31c, 
Severity: Major
Found in src/Opcode.js and 10 other locations - About 1 hr to fix
src/Opcode.js on lines 418..428
src/Opcode.js on lines 429..439
src/Opcode.js on lines 440..450
src/Opcode.js on lines 494..504
src/Opcode.js on lines 614..624
src/Opcode.js on lines 625..635
src/Opcode.js on lines 636..646
src/Opcode.js on lines 647..657
src/Opcode.js on lines 658..668
src/Opcode.js on lines 681..691

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

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

    CONST_WIDE:{ 
        byte:0x18, 
        instr:"const-wide", 
        reftype:ReferenceType.NONE, 
        format:Format.Format51l, 
Severity: Major
Found in src/Opcode.js and 10 other locations - About 1 hr to fix
src/Opcode.js on lines 418..428
src/Opcode.js on lines 429..439
src/Opcode.js on lines 440..450
src/Opcode.js on lines 494..504
src/Opcode.js on lines 614..624
src/Opcode.js on lines 625..635
src/Opcode.js on lines 647..657
src/Opcode.js on lines 658..668
src/Opcode.js on lines 669..680
src/Opcode.js on lines 681..691

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

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

        if(this.usesFeatures != null && this.usesFeatures.length > 0){
            o['uses-feature'] = [];
            this.usesFeatures.map(perm => {
                o['uses-feature'].push(perm.toXml());
            });
Severity: Major
Found in src/AndroidAppComponents.js and 7 other locations - About 1 hr to fix
src/AndroidAppComponents.js on lines 1817..1822
src/AndroidAppComponents.js on lines 1824..1829
src/AndroidAppComponents.js on lines 1831..1836
src/AndroidAppComponents.js on lines 1838..1843
src/AndroidAppComponents.js on lines 1850..1855
src/AndroidAppComponents.js on lines 1856..1861
src/AndroidAppComponents.js on lines 1862..1867

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

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

    CONST_WIDE_16:{ 
        byte:0x16, 
        instr:"const-wide/16", 
        reftype:ReferenceType.NONE, 
        format:Format.Format21s, 
Severity: Major
Found in src/Opcode.js and 10 other locations - About 1 hr to fix
src/Opcode.js on lines 418..428
src/Opcode.js on lines 429..439
src/Opcode.js on lines 440..450
src/Opcode.js on lines 494..504
src/Opcode.js on lines 625..635
src/Opcode.js on lines 636..646
src/Opcode.js on lines 647..657
src/Opcode.js on lines 658..668
src/Opcode.js on lines 669..680
src/Opcode.js on lines 681..691

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

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

    CONST_CLASS:{ 
        byte:0x1c, 
        instr:"const-class", 
        reftype: ReferenceType.TYPE, 
        format:Format.Format21c, 
Severity: Major
Found in src/Opcode.js and 10 other locations - About 1 hr to fix
src/Opcode.js on lines 418..428
src/Opcode.js on lines 429..439
src/Opcode.js on lines 440..450
src/Opcode.js on lines 494..504
src/Opcode.js on lines 614..624
src/Opcode.js on lines 625..635
src/Opcode.js on lines 636..646
src/Opcode.js on lines 647..657
src/Opcode.js on lines 658..668
src/Opcode.js on lines 669..680

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

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