Meow_Base.js
Function MeowBase
has a Cognitive Complexity of 94 (exceeds 5 allowed). Consider refactoring. Open
Open
var MeowBase = function() {
// Main Base
"use strict";
var Meow_Static;
var build = this;
- Read upRead up
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
Open
var MeowBase = function() {
// Main Base
"use strict";
var Meow_Static;
var build = this;
Function Meow_Extend
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();
Function Meow_Base
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Consider simplifying this complex logical expression. Open
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;