Showing 573 of 5,122 total issues
Function init
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
init: function( elem, options, prop, end, easing, unit ) {
Avoid deeply nested control flow statements. Open
Open
} else if ( copy !== undefined ) {
target[ name ] = copy;
}
Avoid deeply nested control flow statements. Open
Open
} else if ( match[2] ) {
push.apply( results, context.getElementsByTagName( selector ) );
return results;
// Class selector
Function sortNumericDesc
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
sortNumericDesc : function( a, b, num, max, col, c ) {
Avoid deeply nested control flow statements. Open
Open
if ( buildFilter && buildFilter.length === 0 ) {
buildFilter = $filter.children( 'input' );
}
Avoid deeply nested control flow statements. Open
Open
if ( fxn === true ) {
// default selector uses exact match unless 'filter-match' class is found
result = data.isMatch ?
// data.iExact may be a number
( '' + data.iExact ).search( data.iFilter ) >= 0 :
Avoid deeply nested control flow statements. Open
Open
if ( tmp[1] === 2 ) {
c.sortList.splice( indx, 1 );
c.sortVars[ col ].count = -1;
}
Avoid deeply nested control flow statements. Open
Open
for ( indx = 1; indx < childLen; indx++ ) {
child = cache.normalized[ rowIndex ][ c.columns ].$row.eq( indx ).children().eq( column );
arry[ arry.length ] = '' + ts.getElementText( c, child, column );
}
Avoid deeply nested control flow statements. Open
Open
if ( !parser ) {
parser = ts.detectParserForColumn( c, rows, -1, colIndex );
}
Avoid deeply nested control flow statements. Open
Open
if ( fxn ) {
// updating so the extra options are appended
tsf.buildSelect( c.table, column, '', true, $header.hasClass( wo.filter_onlyAvail ) );
}
Avoid deeply nested control flow statements. Open
Open
if ( $.isArray( setFilters ) ) {
// skip first ( latest input ) to maintain cursor position while typing
if ( skipFirst && $column.length > 1 ) {
$column = $column.slice( 1 );
}
Avoid deeply nested control flow statements. Open
Open
if ( !extractor ) {
// For now, maybe detect someday
extractor = false;
}
Avoid deeply nested control flow statements. Open
Open
if ( !hasParser && debug ) {
console.warn( 'No parser found for row: ' + rowIndex + ', column: ' + colIndex +
'; cell containing: "' + $(cell).text() + '"; does it have a header?' );
}
Avoid deeply nested control flow statements. Open
Open
for ( indx = 0; indx < query.length; indx++ ) {
res = query[ indx ].split( ':' );
if ( res.length > 1 ) {
// make the column a one-based index ( non-developers start counting from one :P )
if ( isNaN( res[0] ) ) {
Avoid deeply nested control flow statements. Open
Open
if ( span > 0 ) {
colIndex += span;
max += span;
while ( span + 1 > 0 ) {
// set colspan columns to use the same parsers & extractors
Avoid deeply nested control flow statements. Open
Open
if ( fxn === true ) {
// default selector uses exact match unless 'filter-match' class is found
result = data.isMatch ?
// data.iExact may be a number
( '' + data.iExact ).search( data.iFilter ) >= 0 :
Avoid deeply nested control flow statements. Open
Open
if ( !searchFiltered ) { indx = columnIndex; }
Avoid deeply nested control flow statements. Open
Open
if ( fxn ) {
// updating so the extra options are appended
tsf.buildSelect( c.table, column, '', true, $header.hasClass( wo.filter_onlyAvail ) );
}
Avoid deeply nested control flow statements. Open
Open
if ( buildFilter && ( buildFilter.parent().length === 0 ||
( buildFilter.parent().length && buildFilter.parent()[0] !== $filter[0] ) ) ) {
$filter.append( buildFilter );
}
Avoid deeply nested control flow statements. Open
Open
if ( injected ) {
data.anyMatchFilter = query.join( ' && ' );
}