darkwallet/darkwallet

View on GitHub

Showing 511 of 903 total issues

Avoid too many return statements within this function.
Open

  return false;
Severity: Major
Found in src/vendors/bitcoinjs-lib/bitcoinjs.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return formatError(value);
    Severity: Major
    Found in src/vendors/bitcoinjs-lib/bitcoinjs.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        if (mOp > ops.OP_16) return false
      Severity: Major
      Found in src/vendors/bitcoinjs-lib/bitcoinjs.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
        Severity: Major
        Found in src/vendors/bitcoinjs-lib/bitcoinjs.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

            return pubKeys.every(isCanonicalPubKey)
          Severity: Major
          Found in src/vendors/bitcoinjs-lib/bitcoinjs.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                if (!_deepEqual(a[key], b[key])) return false;
            Severity: Major
            Found in src/vendors/bitcoinjs-lib/bitcoinjs.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                                      return defined[id];
              Severity: Major
              Found in src/vendors/requirejs/require.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                                    return localRequire;
                Severity: Major
                Found in src/vendors/requirejs/require.js - About 30 mins to fix

                  Function decodeVersionInformation has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                  Open

                  Version.decodeVersionInformation=function( versionBits)
                  {
                      var bestDifference = 0xffffffff;
                      var bestVersion = 0;
                      for (var i = 0; i < Version.VERSION_DECODE_INFO.length; i++)
                  Severity: Minor
                  Found in src/vendors/jsqrcode/jsqrcode.js - About 25 mins 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 doDecodeFormatInformation has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                  Open

                  FormatInformation.doDecodeFormatInformation=function( maskedFormatInfo)
                  {
                      // Find the int in FORMAT_INFO_DECODE_LOOKUP with fewest bits differing
                      var bestDifference = 0xffffffff;
                      var bestFormatInfo = 0;
                  Severity: Minor
                  Found in src/vendors/jsqrcode/jsqrcode.js - About 25 mins 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 binarize has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                  Open

                  qrcode.binarize = function(th){
                      var ret = new Array(qrcode.width*qrcode.height);
                      for (var y = 0; y < qrcode.height; y++)
                      {
                          for (var x = 0; x < qrcode.width; x++)
                  Severity: Minor
                  Found in src/vendors/jsqrcode/jsqrcode.js - About 25 mins 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

                  Severity
                  Category
                  Status
                  Source
                  Language