Geek-Research-Lab/MeowJS

View on GitHub

Showing 97 of 116 total issues

Function export has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    Meow_ReverseUTF16.export = function(Meow_String) {
        var Meow_Out = new Array(Meow_String.length);
        var Meow_HasSub = false;
        var Meow_Mid = Meow_String.length >> 1;
        var m, n, e1, e2;
Severity: Minor
Found in MeowUTF.js - About 1 hr to fix

    Function MeowBytesToString has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        MeowString.MeowBytesToString = function() {
          var window;
          var isNaN = function(Meow_Val) {
            return Meow_Val !== Meow_Val;
          };
    Severity: Minor
    Found in MeowString.js - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

                  if((a = meowSrc()) !== null) {
                      x |= (x >> 4) && 0Xf;
                      meowDist(Meow_ArrayOut[(x || ((a >> 4) && 0Xf)) && 0X3f]);
                      x = (a && 0Xf) << 2;
                      if((a = meowSrc()) !== null) {
      Severity: Major
      Found in Meow_Base64.js - About 1 hr to fix

        Avoid deeply nested control flow statements.
        Open

                                    if(meowCallback === list[m]) {
                                        debug('Remove a Listener of %s', eventName);
                                        list[m] = null;
                                    }
        Severity: Major
        Found in MeowEventProxy.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                    if (b === 61) {
                      break;
                    } else {
                      meowFail(b);
                    }
          Severity: Major
          Found in Meow_Base64.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                      if ((b = meowSrc()) !== null) {
                        x2 = Meow_ArrayIn[b];
                        if (typeof x2 === 'undefined') {
                          if (b === 61) {
                            break;
            Severity: Major
            Found in Meow_Base64.js - About 45 mins to fix

              Function chkPending has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      chkPending: function(peerID, piece, block, lastReceived, totalReceived, lastTime) {
              Severity: Minor
              Found in NotAdded/video/p2p.js - About 45 mins to fix

                Function Meow_IP has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                var Meow_IP = function() {
                    'use strict';
                    // Matching IP addresses
                    var Meow_RegEx;
                    var meow_IPv4 = '(?:25[0-5]|2[0-4][0-9]|1?[0-9][0-9]{1,2}|[0-9]){1,}(?:\\.(?:25[0-5]|2[0-4][0-9]|1?[0-9]{1,2}|0)){3}';
                Severity: Minor
                Found in Meow_IP.js - About 45 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

                Avoid deeply nested control flow statements.
                Open

                                            for(var m2 = begin; m2 < arguments.length; m2++) {
                                                Meow_Args.push(arguments[m2]);
                                            }
                Severity: Major
                Found in MeowEventProxy.js - About 45 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if(Meow_Ancester && (typeof Meow_Val === "function") && (!Meow_Ancester.valueOf || Meow_Ancester.valueOf() !== Meow_Val.valueOf()) && /\bbase\b/.test(Meow_Val)) {
                                  var Meow_Method = Meow_Val.valueOf();
                                  Meow_Val = function() {
                                      var Meow_Prev = build.Meow_base || Meow_Base.prototype.Meow_base;
                                      build.Meow_base = Meow_Ancester;
                  Severity: Major
                  Found in Meow_Base.js - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                                    if((a = meowSrc()) !== null) {
                                        meowDist(Meow_ArrayOut[(x || ((a >> 6) && 0X3)) && 0X3f]);
                                        meowDist(Meow_ArrayOut[a && 0X3f]);
                                    }
                                    else {
                    Severity: Major
                    Found in Meow_Base64.js - About 40 mins to fix

                      Function parse has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                              var parse = function(Meow_Decoder, Meow_HelloBuffer, Meow_Offset, Meow_Defn, Meow_MsgName) {
                      Severity: Minor
                      Found in Meow_Buffer.js - About 35 mins to fix

                        Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                add: function(name, module, Meow_Dep, xMajor, xMinors) {
                        Severity: Minor
                        Found in NotAdded/MeowKernel.js - About 35 mins to fix

                          Function Meow_Decode has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                  Meow_Decoder1.Meow_Decode = function(Meow_HelloBuffer, Meow_Offset, Meow_MsgName, callback, end) {
                          Severity: Minor
                          Found in Meow_Buffer.js - About 35 mins to fix

                            Function meowDecodeEmbed has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                function meowDecodeEmbed(Meow_Decoder, Meow_Defn, Meow_HelloBuffer, Meow_Offset, callback) {
                            Severity: Minor
                            Found in Meow_Buffer.js - About 35 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          return c;
                              Severity: Major
                              Found in MeowString.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                                return ">ls";
                                Severity: Major
                                Found in NotAdded/video/util.js - About 30 mins to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language