FrenchYeti/dexcalibur

View on GitHub

Showing 948 of 948 total issues

Function getApktoolArg has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    static getApktoolArg(pOption, pValue){
        
        switch(pOption){
            case 'no_res':
                return (pValue==true ? '-r' : '');
Severity: Minor
Found in src/ApkHelper.js - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function MethodReference has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

function MethodReference(cfg){
    this.fqcn = null;
    this.name = null;
    this.args = null;
    this.ret = null;
Severity: Minor
Found in src/CoreClass.js - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function toJsonObject has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    toJsonObject(exclude=[]){
        let o = new Object();
        for(let i in this){
            if(exclude.indexOf(i)>-1) continue;
            if(this[i]==null) continue;
Severity: Minor
Found in src/CoreClass.js - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function hook.reflect.method.get has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

        "hook.reflect.method.get": function (ctx, event) {
            Logger.info("[INSPECTOR][TASK] DynLoaderInspector search Method ");

            //console.log(event);
            if (event == null || event.data == null || event.data.data == null) return false;
Severity: Minor
Found in inspectors/DynamicLoader/main.js - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function SecurityScanner has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function SecurityScanner(SearchApi,context)
{
    this.finder = SearchApi;
    this.context = context;

Severity: Minor
Found in src/Security.js - About 1 hr to fix

    Function makeArgsHelper has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Hook.prototype.makeArgsHelper = function(args_arr){
        if(args_arr.length ==0) return null;
        let raw_name = null;
        let helper = {
            // Value to pass to the "overload()" method of Frida
    Severity: Minor
    Found in src/HookManager.js - About 1 hr to fix

      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_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

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

          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

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

              if(this.usesPermissionsSdk23 != null && this.usesPermissionsSdk23.length > 0){
                  o['uses-permission-sdk-23'] = [];
                  this.usesPermissionsSdk23.map(perm => {
                      o['uses-permission-sdk-23'].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 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
      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.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 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 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.supportsGlTextures != null && this.supportsGlTextures.length > 0){
                  o['supports-gl-texture'] = [];
                  this.supportsGlTextures.map(perm => {
                      o['supports-gl-texture'].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 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

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

      Severity
      Category
      Status
      Source
      Language