Showing 97 of 116 total issues
Function Meow_Generate
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
HiddenMeow.prototype.Meow_Generate = function(Meow_Stop, Meow_Len, zz) {
zz = zz || 0;
HiddenMeow.Meow_Pick = function(a) {
xxx = Math.Meow_Random();
for (m = 0; m < a.length && xxx > 0; m++) {
Function export
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Consider simplifying this complex logical expression. Open
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) {
Avoid deeply nested control flow statements. Open
Open
if ((b = meowSrc()) !== null) {
x2 = Meow_ArrayIn[b];
if (typeof x2 === 'undefined') {
if (b === 61) {
break;
Function Meow_IP
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
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}';
- 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
Avoid deeply nested control flow statements. Open
Open
for(var m2 = begin; m2 < arguments.length; m2++) {
Meow_Args.push(arguments[m2]);
}
Avoid deeply nested control flow statements. Open
Open
if(meowCallback === list[m]) {
debug('Remove a Listener of %s', eventName);
list[m] = null;
}
Function chkPending
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
chkPending: function(peerID, piece, block, lastReceived, totalReceived, lastTime) {
Avoid deeply nested control flow statements. Open
Open
if (b === 61) {
break;
} else {
meowFail(b);
}
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;
Consider simplifying this complex logical expression. Open
Open
if((a = meowSrc()) !== null) {
meowDist(Meow_ArrayOut[(x || ((a >> 6) && 0X3)) && 0X3f]);
meowDist(Meow_ArrayOut[a && 0X3f]);
}
else {
Function add
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
add: function(name, module, Meow_Dep, xMajor, xMinors) {
Function Meow_Decode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Meow_Decoder1.Meow_Decode = function(Meow_HelloBuffer, Meow_Offset, Meow_MsgName, callback, end) {
Function meowDecodeEmbed
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function meowDecodeEmbed(Meow_Decoder, Meow_Defn, Meow_HelloBuffer, Meow_Offset, callback) {
Function parse
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var parse = function(Meow_Decoder, Meow_HelloBuffer, Meow_Offset, Meow_Defn, Meow_MsgName) {
Avoid too many return
statements within this function. Open
Open
return ">ls";
Avoid too many return
statements within this function. Open
Open
return c;