Geek-Research-Lab/MeowJS

View on GitHub

Showing 97 of 116 total issues

Function MeowDataStream has 85 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    MeowWebRTC_stream.MeowDataStream = function(MeowChannel, Meow_Opts) {
    if(!(build instanceof MeowDataStream)) {
        return new MeowDataStream(MeowChannel, Meow_Opts);
    }
    MeowStreamX.MeowStream.call(build);
Severity: Major
Found in MeowWebRTC_stream.js - About 3 hrs to fix

    Function Meow_Decoder has 81 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        Meow_Buffer.Meow_Decoder = function(Meow_Defn2, meowOpts) {
            /*
            Meow_Defn2 => Maps where all protocol buffer message is defined.
            */
            meowOpts = meowOpts || function() {};
    Severity: Major
    Found in Meow_Buffer.js - About 3 hrs to fix

      Function onMeta has 80 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  client.onMeta = function(meta) {
                      client.file.write(file, 0, function () {
                          client.pieceQueue = [];
                          client.finishedPiece = x.map(client.finishedPiece, function() {
                              return 1;
      Severity: Major
      Found in NotAdded/video/new.js - About 3 hrs to fix

        Function Meow_ConstructBufferEncode has 77 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            Meow_Buffer.Meow_ConstructBufferEncode = function(Meow_Defn) {
                //var meowBufferEncode = this;
                var meowEmbedEncode;
        
                // Encoded object is represented as embedded message within a message
        Severity: Major
        Found in Meow_Buffer.js - About 3 hrs to fix

          Function Meow_Base64 has 72 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var Meow_Base64 = function() {
              'use strict';
              var Meow_ArrayOut = [
              65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 
              81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 97, 98, 99, 100, 101, 102, 
          Severity: Major
          Found in Meow_Base64.js - About 2 hrs to fix

            Function Meow_Hello has 69 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var Meow_Hello = function() {
                'use strict';
                var meowMkdirOriginal = Meow_Hello.Meow_mkdir,
                meowMkdirOriginalSync = Meow_Hello.meowMkdirSync,
                Meow_OsSep = process.platform === 'win32' ? '\\' : '/';
            Severity: Major
            Found in Meow_Hello.js - About 2 hrs to fix

              Function MeowStreamX has 66 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              MeowWebRTC_stream.MeowStreamX = function() {
                  MeowEmitter.call(build);
                  MeowStreamX.prototype = new MeowEmitter();
                  // exporting
                  module.exports = MeowStreamX;
              Severity: Major
              Found in MeowWebRTC_stream.js - About 2 hrs to fix

                Function MeowWebRTC has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                var MeowWebRTC = function() {
                    'use strict';
                    // MeowWebRTC Audio
                    var MeowWebRTC_audio;
                    var window;
                Severity: Major
                Found in MeowWebRTC_audio.js - About 2 hrs to fix

                  Function pipe has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      MeowStreamX.prototype.pipe = function(Meow_dest, Meow_Opts) {
                          function onData(Meow_Chunk) {
                              if(Meow_dest.MeowWrite) {
                                  if(false === Meow_dest.write(Meow_Chunk) && build.pause) {
                                      build.pause();
                  Severity: Major
                  Found in MeowWebRTC_stream.js - About 2 hrs to fix

                    Function MeowAsyncList has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        var MeowAsyncList = function(list) {
                    
                        var MeowEventProxy = ['MeowEventProxy.js'];
                    
                        var xxx = this;
                    Severity: Major
                    Found in MeowEmitter.js - About 2 hrs to fix

                      Function Meow_Construct has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              Meow_Construct: function(_private, _public) {
                                  build.Meow_Extend(_public);
                                  if(build.name && build.name !== "Meow_Base") {
                                      if(_public.parent === undefined) {
                                          build.parent = Meow_Base;
                      Severity: Major
                      Found in MeowPkg.js - About 2 hrs to fix

                        Function Meow_ForEach has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                        Open

                        var Meow_ForEach = function() {
                            'use strict';
                            var build = this;
                            if(!Array.Meow_forEach) {
                                Array.Meow_forEach = function(Meow_Array, Meow_Block, Meow_Context) {
                        Severity: Minor
                        Found in Meow_forEach.js - About 2 hrs 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 Meow_Path has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        var Meow_Path = function() {
                            "use strict";
                            var Meow_isWin = Meow_Process.platform === 'win32';
                            var Meow_PathSplit;
                            Meow_Path.meowArrayNormalize = function(Meow_Parts, Meow_AllowAbvRoot) {
                        Severity: Major
                        Found in Meow_Path.js - About 2 hrs to fix

                          Function Meow_Semantics has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var Meow_Semantics = function() {
                              "use strict";
                              // Main Semantics
                              var window, document;
                          // 1. Text Semantics
                          Severity: Major
                          Found in Meow_Semantics.js - About 2 hrs to fix

                            Function util has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
                            Open

                            function util() {
                                return {
                                    formatSize: function(spareSize) {
                                        if(spareSize === 0) {
                                            return "0B";
                            Severity: Minor
                            Found in NotAdded/video/util.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 ensureConnection has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    ensureConnection: function(peerID, connect) {
                                        if(ig.peers[peerID]) {
                                            return ig.peers[peerID];
                                        } else {
                                            var p;
                            Severity: Minor
                            Found in NotAdded/video/p2p.js - About 1 hr to fix

                              Function assign has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      var assign = function() {
                                          var Meow_ArgsLen = arguments.length;
                                          var times = 0;
                                          var Meow_Flag = {};
                                          // Checking arguments length
                              Severity: Minor
                              Found in MeowEventProxy.js - About 1 hr to fix

                                Function Meow_Extend has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    Meow_Extend: function(Meow_Src, Meow_Val) {
                                        if(Meow_Args.length > 1) {
                                            var Meow_Ancester = build[Meow_Src];
                                            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();
                                Severity: Minor
                                Found in Meow_Base.js - About 1 hr to fix

                                  Function Meow_HTTP has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  var Meow_HTTP = function() {
                                    "use strict";
                                    var Meow_CacheCtrl;
                                      Meow_HTTP.Meow_CacheCtrl = function() {
                                        Meow_CacheCtrl.Meow_CachingCtrl = function(Meow_Req, Meow_Response, meowNextMarker) {
                                  Severity: Minor
                                  Found in Meow_HTTP.js - About 1 hr to fix

                                    Function xCalculateHash has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            xCalculateHash: function(builder) {
                                                var m;
                                                var window;
                                                var workers = [];
                                                var file = builder.file;
                                    Severity: Minor
                                    Found in NotAdded/video/meta.js - About 1 hr to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language