Showing 97 of 116 total issues
Function MeowDataStream
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MeowWebRTC_stream.MeowDataStream = function(MeowChannel, Meow_Opts) {
if(!(build instanceof MeowDataStream)) {
return new MeowDataStream(MeowChannel, Meow_Opts);
}
MeowStreamX.MeowStream.call(build);
Function Meow_Decoder
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Meow_Buffer.Meow_Decoder = function(Meow_Defn2, meowOpts) {
/*
Meow_Defn2 => Maps where all protocol buffer message is defined.
*/
meowOpts = meowOpts || function() {};
Function onMeta
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
client.onMeta = function(meta) {
client.file.write(file, 0, function () {
client.pieceQueue = [];
client.finishedPiece = x.map(client.finishedPiece, function() {
return 1;
Function Meow_ConstructBufferEncode
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Meow_Buffer.Meow_ConstructBufferEncode = function(Meow_Defn) {
//var meowBufferEncode = this;
var meowEmbedEncode;
// Encoded object is represented as embedded message within a message
Function Meow_Base64
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
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,
Function Meow_Hello
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Meow_Hello = function() {
'use strict';
var meowMkdirOriginal = Meow_Hello.Meow_mkdir,
meowMkdirOriginalSync = Meow_Hello.meowMkdirSync,
Meow_OsSep = process.platform === 'win32' ? '\\' : '/';
Function MeowStreamX
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MeowWebRTC_stream.MeowStreamX = function() {
MeowEmitter.call(build);
MeowStreamX.prototype = new MeowEmitter();
// exporting
module.exports = MeowStreamX;
Function MeowWebRTC
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var MeowWebRTC = function() {
'use strict';
// MeowWebRTC Audio
var MeowWebRTC_audio;
var window;
Function pipe
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();
Function MeowAsyncList
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var MeowAsyncList = function(list) {
var MeowEventProxy = ['MeowEventProxy.js'];
var xxx = this;
Function Meow_Construct
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function Meow_ForEach
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
Open
var Meow_ForEach = function() {
'use strict';
var build = this;
if(!Array.Meow_forEach) {
Array.Meow_forEach = function(Meow_Array, Meow_Block, Meow_Context) {
- 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 Meow_Path
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Function Meow_Semantics
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Meow_Semantics = function() {
"use strict";
// Main Semantics
var window, document;
// 1. Text Semantics
Function util
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Open
Open
function util() {
return {
formatSize: function(spareSize) {
if(spareSize === 0) {
return "0B";
- 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 ensureConnection
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ensureConnection: function(peerID, connect) {
if(ig.peers[peerID]) {
return ig.peers[peerID];
} else {
var p;
Function assign
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var assign = function() {
var Meow_ArgsLen = arguments.length;
var times = 0;
var Meow_Flag = {};
// Checking arguments length
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_HTTP
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Function xCalculateHash
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
xCalculateHash: function(builder) {
var m;
var window;
var workers = [];
var file = builder.file;