Showing 3,486 of 3,486 total issues
Function scroll
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
EXTLIB.Anim.scroll = function(el, args, duration, easing, cb, scope) {
Function select
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
select : function(index) {
if(index === false || index === -1) {
// remove current selection in el
this.value = this.resetValue;
this.title = "";
- 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 elasticIn
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
elasticIn: function (t, b, c, d, a, p) {
Avoid deeply nested control flow statements. Open
Open
for(var i = 0, n; n = ns[i]; i++){
while((n = n.nextSibling)){
if (n.nodeName == utag || n.nodeName == tagName || tagName == '*'){
result[++ri] = n;
}
Function motion
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
motion : function(el, args, duration, easing, cb, scope) {
Avoid deeply nested control flow statements. Open
Open
if(!docEl){
var f = function(){};
f.prototype = El.prototype;
docEl = new f();
docEl.dom = DOC;
Function motion
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
motion : function(el, args, duration, easing, cb, scope){
Function addListener
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function addListener(el, ename, fn, task, wrap, scope){
Avoid deeply nested control flow statements. Open
Open
if (Ext.isIE && (el.id == undefined || el.id == '')) {
el.dom = el.dom;
} else {
el.dom = DOC.getElementById(el.id) || el.dom;
}
Function formRequest
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
formRequest : function(form, uri, cb, data, isUpload, sslUri){
Function color
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
color : function(el, args, duration, easing, cb, scope){
Avoid deeply nested control flow statements. Open
Open
switch (typeof v) {
case "undefined":
case "function":
case "unknown":
break;
Function fxanim
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
fxanim : function(args, opt, animType, defaultDur, defaultEase, cb){
Avoid deeply nested control flow statements. Open
Open
for (key in val) {
b += key + ':' + val[key] + ';';
};
Avoid deeply nested control flow statements. Open
Open
while((n = n.nextSibling) && n.nodeType != 1);
Function elasticBoth
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
elasticBoth: function (t, b, c, d, a, p) {
Avoid deeply nested control flow statements. Open
Open
while(k--) {
fn[0].tasks[k].cancel();
}
Function doInsert
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function doInsert(el, o, returnElement, pos, sibling, append){
Function checkResponse
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function checkResponse(o, callback, conn, tId, poll, cbTimeout){
Avoid deeply nested control flow statements. Open
Open
if((li = lis[i]) && li[TYPE] == eventName && li[FN] == fn){
unloadListeners[el.id].splice(i, 1);
}