Showing 3,486 of 3,486 total issues
Avoid deeply nested control flow statements. Open
if ( !isXML ) {
elem.sizcache = doneName;
elem.sizset = i;
}
Function renderer
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
renderer: function(value, metaData, record, rowIndex, colIndex, store) {
Avoid deeply nested control flow statements. Open
}else if(pt.y - r.top <= c.vthresh){
if(proc.el != el){
startProc(el, "up");
}
return;
Avoid deeply nested control flow statements. Open
if (this.isOverTarget(pt, oDD, this.mode)) {
// look for drop interactions
if (isDrop) {
dropEvts.push( oDD );
// look for drag enter and drag over interactions
Avoid deeply nested control flow statements. Open
if (!winner ||
winner.overlap.getArea() < dd.overlap.getArea()) {
winner = dd;
}
Avoid deeply nested control flow statements. Open
if (loc) {
this.locationCache[oDD.id] = loc;
} else {
delete this.locationCache[oDD.id];
// this will unregister the drag and drop object if
Function color
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
color : function(el, args, duration, easing, cb, scope){
Function doSend
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
doSend : function(data){
var o = {
url: this.url,
callback: this.onData,
scope: 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
Avoid deeply nested control flow statements. Open
if(this.stopEvent){
e.stopEvent();
}
Function scroll
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
scroll : function(el, args, duration, easing, cb, scope){
Avoid deeply nested control flow statements. Open
if(proc.el != el){
startProc(el, "left");
}
Function getRange
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
getRange : function(start, end){
var items = this.items;
if(items.length < 1){
return [];
}
- 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 motion
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
motion : function(el, args, duration, easing, cb, scope){
Function set
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
set : function(name, value){
var argv = arguments;
var argc = arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[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
Function formRequest
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
formRequest : function(form, uri, cb, data, isUpload, sslUri){
Function removeChild
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
removeChild : function(node, destroy){
var index = this.childNodes.indexOf(node);
if(index == -1){
return false;
}
- 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 motion
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
motion : function(el, args, duration, easing, cb, scope){
Function extractData
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
extractData : function(root, returnRecords) {
// A bit ugly this, too bad the Record's raw data couldn't be saved in a common property named "raw" or something.
var rawName = (this instanceof Ext.data.JsonReader) ? 'json' : 'node';
var rs = [];
- 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
if(attr == 'cls'){
el.className = val;
}else{
if(useSet){
el.setAttribute(attr, val);
Function scroll
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
scroll : function(el, args, duration, easing, cb, scope){