Showing 116 of 116 total issues
Function Meow_Decode
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Meow_Decoder1.Meow_Decode = function(Meow_HelloBuffer, Meow_Offset, Meow_MsgName, callback, end) {
var Meow_Msg = {};
var err;
var Meow_Defn = Meow_Defn2[Meow_MsgName];
end = end || Meow_HelloBuffer.length;
Function Meow_Decode
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Meow_Base64.Meow_Decode = function(meowSrc, meowDist) {
var b, x1, x2;
function meowFail(b) {
throw Error("Illegal character code: "+b);
} while ((b = meowSrc()) !== null) {
Function Meow_BufferEncodes
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Meow_EncodeJSON.Meow_BufferEncodes = function(Meow_Msg, Meow_MsgName, Meow_HelloBuffer, Meow_Offset) {
var Meow_Defn2 = Meow_Defn[Meow_MsgName];
var Meow_Len = 0;
var Meow_BufferEncoder = {};
var Meow_Num;
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;
Similar blocks of code found in 2 locations. Consider refactoring. Open
MeowEventProxyy.prototype.all = function() {
var Meow_Args = MeowConcat.apply([], arguments);
Meow_Args.push(true);
assign.apply(xxx, Meow_Args);
return xxx;
- Read upRead up
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 62.
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
MeowEventProxyy.prototype.tail = function() {
var Meow_Args = MeowConcat.apply([], arguments);
Meow_Args.push(false);
assign.apply(xxx, Meow_Args);
return xxx;
- Read upRead up
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 62.
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Function after
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
MeowEventProxyy.prototype.after = function(eventName, meowCallback, times) {
if(times === 0) {
meowCallback.call(null, []);
return xxx;
}
Function Meow_DOMRender
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
MeowDOM.prototype.Meow_DOMRender = function(html, MeowStream, box) {
var MeowCharm = module.exports = function(xx) {
function meowBytes(x) {
if(typeof x === 'string') {
return x.split('').map(xOrd);
Function Meow_ReverseUTF16
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Meow_ReverseUTF16 = function() {
var Meow_MinHigh = '\uD800';
var Meow_MaxHigh = '\uDBFF';
var Meow_MinLow = '\uDC00';
var Meow_MaxLow = '\uDFFF';
Function Meow_Predict
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
HiddenMeow.Meow_Predict = function(x, a) {
Meow_Power.Meow_Nodes = [];
Meow_Power.Meow_Init = [];
Meow_Power.Meow_Char = x;
for (Meow_Object,
Function init
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
init: function() {
console.debug('Creating Peer Connection');
ig.ready = false;
ig.closed = false;
ig.peerConnection = null;
Function compile
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
MeowAsyncList.prototype.compile = function(mapper) {
var lister = function(list) {
xxx.list = list.map(mapper);
xxx.length = list.length;
xxx.proxy = new MeowEventProxy();
Similar blocks of code found in 2 locations. Consider refactoring. Open
Meow_IP.meow_IPv6 = function(Meow_Opts) {
Meow_Opts = Meow_Opts || {};
return Meow_Opts.Meow_Approx ? new Meow_RegEx('^' + meow_IPv6 + '$') : new Meow_RegEx(meow_IPv6, 'g');
};
- Read upRead up
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 58.
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
Meow_IP.meow_IPv4 = function(Meow_Opts) {
Meow_Opts = Meow_Opts || {};
return Meow_Opts.Meow_Approx ? new Meow_RegEx('^' + meow_IPv4 + '$') : new Meow_RegEx(meow_IPv4, 'g');
};
- Read upRead up
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 58.
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Function MeowDOM
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
var MeowDOM = function() {
'use strict';
var Meow_Buffer;
var meowProcess;
var document;
- 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_HTTP
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. 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) {
- 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 MeowBytesToString
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
MeowString.MeowBytesToString = function() {
var window;
var isNaN = function(Meow_Val) {
return Meow_Val !== Meow_Val;
};
Function Meow_Generate
has 26 lines of code (exceeds 25 allowed). Consider refactoring. 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
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
if((a = meowSrc()) !== null) {
x |= (x >> 4) && 0Xf;
meowDist(Meow_ArrayOut[(x || ((a >> 4) && 0Xf)) && 0X3f]);
x = (a && 0Xf) << 2;
if((a = meowSrc()) !== null) {