Showing 1,637 of 1,637 total issues
Avoid deeply nested control flow statements. Open
Open
if (val > 0) {
stackTotals[i] += val;
}
Function _fnFilter
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function _fnFilter( oSettings, sInput, iForce, bRegex, bSmart, bCaseInsensitive )
Avoid deeply nested control flow statements. Open
Open
if ( oSettings._iDisplayStart + oSettings._iDisplayLength < oSettings.fnRecordsDisplay() )
{
oSettings._iDisplayStart += oSettings._iDisplayLength;
}
Avoid deeply nested control flow statements. Open
Open
if ( oSettings._iDisplayLength >= 0 )
{
var iPages = parseInt( (oSettings.fnRecordsDisplay()-1) / oSettings._iDisplayLength, 10 ) + 1;
oSettings._iDisplayStart = (iPages-1) * oSettings._iDisplayLength;
}
Avoid deeply nested control flow statements. Open
Open
if ( sNodeName == "TD" || sNodeName == "TH" )
{
_fnSetCellData( oSettings, iThisIndex, jInner, $.trim(nTd.innerHTML) );
jInner++;
}
Avoid deeply nested control flow statements. Open
Open
switch (col) {
case 0: calender += " ui-datepicker-group-first";
cornerClass = " ui-corner-" + (isRTL ? "right" : "left"); break;
case numMonths[1]-1: calender += " ui-datepicker-group-last";
cornerClass = " ui-corner-" + (isRTL ? "left" : "right"); break;
Avoid deeply nested control flow statements. Open
Open
for ( k=0 ; k<iRowspan ; k++ )
{
aApplied[i+k][j+iColspan] = 1;
}
Avoid deeply nested control flow statements. Open
Open
while( oSettings.aoColumns.length <= aTargets[j] )
{
_fnAddColumn( oSettings );
}
Avoid deeply nested control flow statements. Open
Open
for ( var j=0, jLen=data.length ; j<jLen ; j++ ) {
out.push( fetchData( data[j], type, innerSrc ) );
}
Avoid deeply nested control flow statements. Open
Open
if (lookAhead("'")) {
output += "'";
} else {
literal = true;
}
Function fnFilter
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )
Avoid deeply nested control flow statements. Open
Open
for ( i=0, iLen=aoData.length ; i<iLen ; i++ )
{
tr = aoData[ i ].nTr ;
if ( tr )
{
Avoid deeply nested control flow statements. Open
Open
if ( oSettings.aoColumns[i].sContentPadding !== "" )
{
nTd.innerHTML += oSettings.aoColumns[i].sContentPadding;
}
Avoid deeply nested control flow statements. Open
Open
else if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 )
{
/* Negative integer, right to left column counting */
fn( oSettings.aoColumns.length+aTargets[j], aoColDefs[i] );
}
Function _fnFilterColumn
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function _fnFilterColumn ( oSettings, sInput, iColumn, bRegex, bSmart, bCaseInsensitive )
Avoid deeply nested control flow statements. Open
Open
if ( oCol.bUseRendered )
{
/* Use the rendered data for filtering / sorting */
_fnSetCellData( oSettings, iRow, iColumn, sRendered );
}
Avoid deeply nested control flow statements. Open
Open
if ( cOption == aoFeatures[k].cFeature )
{
nTmp = aoFeatures[k].fnInit( oSettings );
if ( nTmp )
{
Avoid deeply nested control flow statements. Open
Open
for ( j=0, jLen=aoData.length ; j<jLen ; j++ )
{
_fnSetCellData( oSettings, j, iColumn, aData[j] );
}
Avoid deeply nested control flow statements. Open
Open
if ( a[i] !== "" ) {
data = data[ a[i] ];
}
Avoid deeply nested control flow statements. Open
Open
if ( oSettings.aoColumns[i].sWidthOrig === null )
{
iTotal += $(oNodes[iCorrector]).outerWidth();
}
else