Showing 340 of 6,870 total issues
Avoid too many return
statements within this function. Open
return result;
Avoid too many return
statements within this function. Open
return false;
Avoid too many return
statements within this function. Open
return undefined;
Avoid too many return
statements within this function. Open
return stackB[length];
Avoid too many return
statements within this function. Open
return result;
Avoid too many return
statements within this function. Open
return false;
Avoid too many return
statements within this function. Open
return jsPath;
Avoid too many return
statements within this function. Open
return stackB[length] == b;
Avoid too many return
statements within this function. Open
case 30:yy_.yytext = strip(1,2); return 40;
Avoid too many return
statements within this function. Open
return false;
Avoid too many return
statements within this function. Open
case 23:yy_.yytext = strip(1,2).replace(/\\"/g,'"'); return 32;
Avoid too many return
statements within this function. Open
return fn(context);
Avoid too many return
statements within this function. Open
return this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(),
{text: "", token: null, line: this.yylineno});
Avoid too many return
statements within this function. Open
case 24:yy_.yytext = strip(1,2).replace(/\\'/g,"'"); return 32;
Avoid too many return
statements within this function. Open
case 21:this.popState(); return 24;
Avoid too many return
statements within this function. Open
case 22:this.popState(); return 18;
Avoid too many return
statements within this function. Open
return true;
Function favoritePanel
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function favoritePanel(divElement, options) {
var panel = this;
this.divElement = divElement;
this.options = jQuery.extend(true, {}, options);
var favoriteCall = 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 _utf8_encode
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
_utf8_encode : function (string) {
string = string.replace(/\r\n/g,"\n");
var utftext = "";
for (var n = 0; n < string.length; n++) {
- 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 _utf8_decode
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
_utf8_decode : function (utftext) {
var string = "";
var i = 0;
var c = c1 = c2 = 0;
- 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"