Geek-Research-Lab/MeowJS

View on GitHub

Showing 116 of 116 total issues

Function MeowUTF has 142 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var MeowUTF = function() {
// main file
'use strict';
// UTF8_16
var MeowUTF8_16;
Severity: Major
Found in MeowUTF.js - About 5 hrs to fix

    Function MeowEmitter has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring.
    Open

    var MeowEmitter = function() {
        'use strict';
        var Meow_Process = ['Meow_EnvProcess.js'];
        var util = ['util.js'];
        var build = this;
    Severity: Minor
    Found in MeowEmitter.js - About 5 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

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

        MeowAsyncList.prototype.run = function(Meow_Args, Meow_Args2, Meow_Args3) {
            var list = xxx.list;
            if(xxx.length !== 0) {
                xxx.proxy.after('finished', xxx.length, function (triggers) {
                    xxx.handler(triggers);
    Severity: Major
    Found in MeowEmitter.js and 1 other location - About 5 hrs to fix
    MeowEmitter.js on lines 57..71

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

    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

            lister.prototype.run = function(Meow_Args, Meow_Args2, Meow_Args3) {
                var list = xxx.list;
                if(xxx.length !== 0) {
                    xxx.proxy.after('finished', xxx.length, function (triggers) {
                        xxx.handler(triggers);
    Severity: Major
    Found in MeowEmitter.js and 1 other location - About 5 hrs to fix
    MeowEmitter.js on lines 28..42

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

    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

    Function exports has 133 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var elements = module.exports = function() {
            elements.Meow_DOMRender = function(xy, el, MeowStream) {
                var MeowRow = 0;
                xy(el).children().each(function(m, v) {
                    MeowStream.col(3);
    Severity: Major
    Found in MeowDOM.js - About 5 hrs to fix

      Function Meow_ImageLoader has 123 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var Meow_ImageLoader = function() {
      "use strict";
      var document;
      // MeowJS DCT Image Loader
      var MeowDCT_ImageLoader;
      Severity: Major
      Found in Meow_ImageLoader.js - About 4 hrs to fix

        Function Meow_Path has a Cognitive Complexity of 31 (exceeds 5 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: Minor
        Found in Meow_Path.js - About 4 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 MeowUTF8_16 has 105 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        MeowUTF.MeowUTF8_16 = function(Meow_Global) {
            var Meow_Power, Meow_Args, define;
            if(!Array.Meow_isArray) {
                Array.Meow_isArray = function(vvv) {
                    return Object.prototype.toString.call(vvv) === "[Object Array]";
        Severity: Major
        Found in MeowUTF.js - About 4 hrs to fix

          Function HiddenMeow has 103 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var HiddenMeow = function() {
            "use strict";
            var m, m2, m3, xxx;
            var Meow_String;
            var Meow_Pick;
          Severity: Major
          Found in HiddenMeow.js - About 4 hrs to fix

            Function onReady has 99 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                client.onReady = function() {
                    xConsole.append('<li>Connected. Get PeerID '+client.peerID);
                    xConsole.append('<li>Select a file to share: <input type=file id=xFile />');
                    z('#xFile').on('change', function (xEvent) {
                        z('#xFile').attr('disabled', true);
            Severity: Major
            Found in NotAdded/video/new.js - About 3 hrs to fix

              Function MeowFunText has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
              Open

              var MeowFunText = function() {
                  'use strict';
                  MeowFunText.Meow_Power = function() {
                  var Meow_Power = this;
                  Meow_Power.Meow_CanvasID = null;
              Severity: Minor
              Found in MeowFunText.js - About 3 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 MeowKernel has 95 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var MeowKernel = function(meowClients, modules) {
                  'use strict';
              
                  // MeowJS MeowKernel --- Client side
                  var meowDispatch = function(meowClient) {
              Severity: Major
              Found in NotAdded/MeowKernel.js - About 3 hrs to fix

                Function MeowKernel has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
                Open

                var MeowKernel = function(meowClients, modules) {
                    'use strict';
                
                    // MeowJS MeowKernel --- Client side
                    var meowDispatch = function(meowClient) {
                Severity: Minor
                Found in NotAdded/MeowKernel.js - About 3 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_Hello has a Cognitive Complexity of 26 (exceeds 5 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: Minor
                Found in Meow_Hello.js - About 3 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 MeowString has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                var MeowString = function() {
                  "use strict";
                    var c = "";
                    var d = "";
                    var w = "";
                Severity: Major
                Found in MeowString.js - About 3 hrs to fix

                  Function MeowDCT_ImageLoader has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  Meow_ImageLoader.MeowDCT_ImageLoader = function() {
                      var Meow_BlockSize = 8;
                      var Meow_Coeff = 8;
                      var Meow_Image;
                      var Meow_Canvas = [];
                  Severity: Major
                  Found in Meow_ImageLoader.js - About 3 hrs to fix

                    Function MeowFunText has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    var MeowFunText = function() {
                        'use strict';
                        MeowFunText.Meow_Power = function() {
                        var Meow_Power = this;
                        Meow_Power.Meow_CanvasID = null;
                    Severity: Major
                    Found in MeowFunText.js - About 3 hrs to fix

                      File MeowEventProxy.js has 315 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      // MeowEventProxy => Implementation of task-based asynchronous pattern
                      var MeowEventProxy = function() {
                          'use strict';
                          var define, proxy;
                          var xxx = this;
                      Severity: Minor
                      Found in MeowEventProxy.js - About 3 hrs to fix

                        Function Meow_Power has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            MeowFunText.Meow_Power = function() {
                            var Meow_Power = this;
                            Meow_Power.Meow_CanvasID = null;
                            Meow_Power.Meow_Canvas = null;
                            Meow_Power.Meow_Context = null;
                        Severity: Major
                        Found in MeowFunText.js - About 3 hrs to fix

                          Function MeowPkg has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var MeowPkg = function() {
                              var format, csv;
                              var build = this;
                              var Meow_Pkg, n;
                              var Meow_Base = ['Meow_Base.js'];
                          Severity: Major
                          Found in MeowPkg.js - About 3 hrs to fix
                            Severity
                            Category
                            Status
                            Source
                            Language