Showing 116 of 116 total issues
Function MeowUTF
has 142 lines of code (exceeds 25 allowed). Consider refactoring. Open
var MeowUTF = function() {
// main file
'use strict';
// UTF8_16
var MeowUTF8_16;
Function MeowEmitter
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
var MeowEmitter = function() {
'use strict';
var Meow_Process = ['Meow_EnvProcess.js'];
var util = ['util.js'];
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
Similar blocks of code found in 2 locations. Consider refactoring. Open
MeowAsyncList.prototype.run = function(Meow_Args, Meow_Args2, Meow_Args3) {
var list = xxx.list;
if(xxx.length !== 0) {
xxx.proxy.after('finished', xxx.length, function (triggers) {
xxx.handler(triggers);
- 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 144.
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
lister.prototype.run = function(Meow_Args, Meow_Args2, Meow_Args3) {
var list = xxx.list;
if(xxx.length !== 0) {
xxx.proxy.after('finished', xxx.length, function (triggers) {
xxx.handler(triggers);
- 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 144.
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 exports
has 133 lines of code (exceeds 25 allowed). Consider refactoring. Open
var elements = module.exports = function() {
elements.Meow_DOMRender = function(xy, el, MeowStream) {
var MeowRow = 0;
xy(el).children().each(function(m, v) {
MeowStream.col(3);
Function Meow_ImageLoader
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Meow_ImageLoader = function() {
"use strict";
var document;
// MeowJS DCT Image Loader
var MeowDCT_ImageLoader;
Function Meow_Path
has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring. 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) {
- 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 MeowUTF8_16
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
MeowUTF.MeowUTF8_16 = function(Meow_Global) {
var Meow_Power, Meow_Args, define;
if(!Array.Meow_isArray) {
Array.Meow_isArray = function(vvv) {
return Object.prototype.toString.call(vvv) === "[Object Array]";
Function HiddenMeow
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
var HiddenMeow = function() {
"use strict";
var m, m2, m3, xxx;
var Meow_String;
var Meow_Pick;
Function onReady
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
client.onReady = function() {
xConsole.append('<li>Connected. Get PeerID '+client.peerID);
xConsole.append('<li>Select a file to share: <input type=file id=xFile />');
z('#xFile').on('change', function (xEvent) {
z('#xFile').attr('disabled', true);
Function MeowFunText
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
var MeowFunText = function() {
'use strict';
MeowFunText.Meow_Power = function() {
var Meow_Power = this;
Meow_Power.Meow_CanvasID = null;
- 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 MeowKernel
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
var MeowKernel = function(meowClients, modules) {
'use strict';
// MeowJS MeowKernel --- Client side
var meowDispatch = function(meowClient) {
Function MeowKernel
has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring. Open
var MeowKernel = function(meowClients, modules) {
'use strict';
// MeowJS MeowKernel --- Client side
var meowDispatch = function(meowClient) {
- 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_Hello
has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring. Open
var Meow_Hello = function() {
'use strict';
var meowMkdirOriginal = Meow_Hello.Meow_mkdir,
meowMkdirOriginalSync = Meow_Hello.meowMkdirSync,
Meow_OsSep = process.platform === 'win32' ? '\\' : '/';
- 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 MeowString
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
var MeowString = function() {
"use strict";
var c = "";
var d = "";
var w = "";
Function MeowDCT_ImageLoader
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Meow_ImageLoader.MeowDCT_ImageLoader = function() {
var Meow_BlockSize = 8;
var Meow_Coeff = 8;
var Meow_Image;
var Meow_Canvas = [];
Function MeowFunText
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
var MeowFunText = function() {
'use strict';
MeowFunText.Meow_Power = function() {
var Meow_Power = this;
Meow_Power.Meow_CanvasID = null;
File MeowEventProxy.js
has 315 lines of code (exceeds 250 allowed). Consider refactoring. Open
// MeowEventProxy => Implementation of task-based asynchronous pattern
var MeowEventProxy = function() {
'use strict';
var define, proxy;
var xxx = this;
Function Meow_Power
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
MeowFunText.Meow_Power = function() {
var Meow_Power = this;
Meow_Power.Meow_CanvasID = null;
Meow_Power.Meow_Canvas = null;
Meow_Power.Meow_Context = null;
Function MeowPkg
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
var MeowPkg = function() {
var format, csv;
var build = this;
var Meow_Pkg, n;
var Meow_Base = ['Meow_Base.js'];