Geek-Research-Lab/MeowJS

View on GitHub
Meow_Base.js

Summary

Maintainability
F
3 days
Test Coverage

Function MeowBase has a Cognitive Complexity of 94 (exceeds 5 allowed). Consider refactoring.
Open

var MeowBase = function() {
    // Main Base
    "use strict";
    var Meow_Static;
    var build = this;
Severity: Minor
Found in Meow_Base.js - About 1 day 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 MeowBase has 211 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var MeowBase = function() {
    // Main Base
    "use strict";
    var Meow_Static;
    var build = this;
Severity: Major
Found in Meow_Base.js - About 1 day 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_Base has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          MeowBase.Meow_Base = function() {
          Meow_Base.Meow_Extend = function(Meow_Instance) {
              var Meow_Extend = Meow_Base.prototype.Meow_Extend;
              Meow_Base.Meow_protoBuild = true;
              var build = this;
      Severity: Minor
      Found in Meow_Base.js - About 1 hr 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

          There are no issues that match your filters.

          Category
          Status