Showing 573 of 5,122 total issues
Avoid deeply nested control flow statements. Open
Open
if ( wo.filter_childByColumn ) {
if ( !wo.filter_childWithSibs ) {
// hide all child rows
childRow.addClass( wo.filter_filteredRow );
// if only showing resulting child row, only include parent
Avoid deeply nested control flow statements. Open
Open
if ( !searchFiltered ) { indx = columnIndex; }
Avoid deeply nested control flow statements. Open
Open
for ( string in fxn ) {
if ( typeof string === 'string' ) {
options += options === '' ?
'<option value="">' +
( $header.data( 'placeholder' ) ||
Avoid deeply nested control flow statements. Open
Open
if ( hasParser && ( parsers[ cacheIndex ].type || '' ).toLowerCase() === 'numeric' ) {
// determine column max value (ignore sign)
colMax[ cacheIndex ] = Math.max( Math.abs( txt ) || 0, colMax[ cacheIndex ] || 0 );
}
Avoid deeply nested control flow statements. Open
Open
if ( injected ) {
data.anyMatchFilter = query.join( ' && ' );
}
Avoid deeply nested control flow statements. Open
Open
for ( indx = 0; indx < childLen; indx++ ) {
arry[ arry.length ] = '' + cache.normalized[ rowIndex ][ c.columns ].child[ indx ][ column ];
}
Avoid deeply nested control flow statements. Open
Open
for ( indx = 0; indx < childLen; indx++ ) {
arry[ arry.length ] = '' + cache.normalized[ rowIndex ][ c.columns ].child[ indx ][ column ];
}
Avoid deeply nested control flow statements. Open
Open
if ( noParser ) {
parser = ts.getParserById( 'no-parser' );
}
Avoid deeply nested control flow statements. Open
Open
if ( span > 0 ) {
index = 0;
while ( index <= span ) {
// duplicate text (or not) to spanned columns
// instead of setting duplicate span to empty string, use textExtraction to try to get a value
Avoid deeply nested control flow statements. Open
Open
if ( !$sorted[ column ].sortDisabled ) {
updateColumnSort( $sorted.eq( column ), list[ indx ][ 1 ] );
}
Avoid deeply nested control flow statements. Open
Open
for ( indx = 0; indx < childRow.length; indx++ ) {
txt += ' ' + childRow[indx].join( ' ' ) || '';
}
Avoid deeply nested control flow statements. Open
Open
for ( indx = 0; indx < childRow.length; indx++ ) {
txt += ' ' + childRow[indx].join( ' ' ) || '';
}
Avoid deeply nested control flow statements. Open
Open
if ( $.inArray( setting, ignore ) < 0 && typ === 'undefined' ) {
console.warn( 'Tablesorter Warning! "table.config.' + setting + '.' + setting2 + '" option not recognized' );
}
Avoid deeply nested control flow statements. Open
Open
if ( txt.indexOf( wo.filter_selectSourceSeparator ) >= 0 ) {
t = txt.split( wo.filter_selectSourceSeparator );
val = t[0];
txt = t[1];
}
Function sortNumericAsc
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
sortNumericAsc : function( a, b, num, max, col, c ) {
Avoid deeply nested control flow statements. Open
Open
if ( cell ) {
prevRowData.child[ len ][ colIndex ] = ts.getParsedText( c, cell, colIndex );
span = $cells[ colIndex ].colSpan - 1;
if ( span > 0 ) {
cacheIndex += span;
Avoid deeply nested control flow statements. Open
Open
if ( temp ) {
tmp = c.sortList[ 0 ][ 1 ];
switch ( temp[ 0 ] ) {
case 'd' :
dir = 1;
Avoid deeply nested control flow statements. Open
Open
for (indx = 1; indx < len; indx++) {
// secondary, tertiary, etc sort column classes
$cells.eq(sortList[indx][0]).addClass( css[indx] || css[last] );
}
Avoid deeply nested control flow statements. Open
Open
if ( txt.indexOf( wo.filter_selectSourceSeparator ) >= 0 ) {
t = txt.split( wo.filter_selectSourceSeparator );
val = t[0];
txt = t[1];
}
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 );
}