Showing 3,486 of 3,486 total issues
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
EXTLIB.Anim.color = function(el, args, duration, easing, cb, scope) {
Function anim
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
anim : function(args, opt, animType, defaultDur, defaultEase, cb){
Avoid deeply nested control flow statements. Open
Open
if(!cc || typeof cc != 'object' || !cc.bubble) {
c.enableBubble(ename);
}
Function elasticOut
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
elasticOut: function (t, b, c, d, a, p) {
Function color
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
color : function(el, args, duration, easing, cb, scope){
Function onClick
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
onClick : function(e)
{
var target = e.getTarget(),
view = this.getView(),
row = view.findRowIndex(target),
- 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
Open
motion : function(el, args, duration, easing, cb, scope){
Function scroll
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
EXTLIB.Anim.scroll = function(el, args, duration, easing, cb, scope) {
Function getData
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
,getData:function(value, cell, record, row, col, store) {
Avoid deeply nested control flow statements. Open
Open
if((li = lis[i]) && li[TYPE] == eventName && li[FN] == fn){
unloadListeners[el.id].splice(i, 1);
}
Function motion
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
motion : function(el, args, duration, easing, cb, scope){
Function checkResponse
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function checkResponse(o, callback, conn, tId, poll, cbTimeout){
Function formRequest
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
formRequest : function(form, uri, cb, data, isUpload, sslUri){
Function doRender
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
doRender : function(cs, rs, ds, startRow, colCount, stripe)
Function doRender
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
doRender : function(cs, rs, ds, startRow, colCount, stripe)
Function renderer
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.renderer = function(value, cell, record, row, col, store) {
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 (p != el && !pe.isStyle('overflow','visible')) {
x += bl;
y += bt;
}
Function color
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
color : function(el, args, duration, easing, cb, scope){