mambax7/adslight

View on GitHub

Showing 573 of 5,122 total issues

Avoid deeply nested control flow statements.
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
Severity: Major
Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                if ( !searchFiltered ) { indx = columnIndex; }
    Severity: Major
    Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                  for ( string in fxn ) {
                                      if ( typeof string === 'string' ) {
                                          options += options === '' ?
                                              '<option value="">' +
                                                  ( $header.data( 'placeholder' ) ||
      Severity: Major
      Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        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 );
                                    }
        Severity: Major
        Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                      if ( injected ) {
                                          data.anyMatchFilter = query.join( ' && ' );
                                      }
          Severity: Major
          Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                        for ( indx = 0; indx < childLen; indx++ ) {
                                            arry[ arry.length ] = '' + cache.normalized[ rowIndex ][ c.columns ].child[ indx ][ column ];
                                        }
            Severity: Major
            Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                          for ( indx = 0; indx < childLen; indx++ ) {
                                              arry[ arry.length ] = '' + cache.normalized[ rowIndex ][ c.columns ].child[ indx ][ column ];
                                          }
              Severity: Major
              Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                            if ( noParser ) {
                                                parser = ts.getParserById( 'no-parser' );
                                            }
                Severity: Major
                Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  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
                  Severity: Major
                  Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                if ( !$sorted[ column ].sortDisabled ) {
                                                    updateColumnSort( $sorted.eq( column ), list[ indx ][ 1 ] );
                                                }
                    Severity: Major
                    Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                  for ( indx = 0; indx < childRow.length; indx++ ) {
                                                      txt += ' ' + childRow[indx].join( ' ' ) || '';
                                                  }
                      Severity: Major
                      Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                    for ( indx = 0; indx < childRow.length; indx++ ) {
                                                        txt += ' ' + childRow[indx].join( ' ' ) || '';
                                                    }
                        Severity: Major
                        Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                      if ( $.inArray( setting, ignore ) < 0 && typ === 'undefined' ) {
                                                          console.warn( 'Tablesorter Warning! "table.config.' + setting + '.' + setting2 + '" option not recognized' );
                                                      }
                          Severity: Major
                          Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if ( txt.indexOf( wo.filter_selectSourceSeparator ) >= 0 ) {
                                                        t = txt.split( wo.filter_selectSourceSeparator );
                                                        val = t[0];
                                                        txt = t[1];
                                                    }
                            Severity: Major
                            Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 45 mins to fix

                              Function sortNumericAsc has 6 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                      sortNumericAsc : function( a, b, num, max, col, c ) {
                              Severity: Minor
                              Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                            if ( cell ) {
                                                                prevRowData.child[ len ][ colIndex ] = ts.getParsedText( c, cell, colIndex );
                                                                span = $cells[ colIndex ].colSpan - 1;
                                                                if ( span > 0 ) {
                                                                    cacheIndex += span;
                                Severity: Major
                                Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                              if ( temp ) {
                                                                  tmp = c.sortList[ 0 ][ 1 ];
                                                                  switch ( temp[ 0 ] ) {
                                                                      case 'd' :
                                                                          dir = 1;
                                  Severity: Major
                                  Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                    for (indx = 1; indx < len; indx++) {
                                                                        // secondary, tertiary, etc sort column classes
                                                                        $cells.eq(sortList[indx][0]).addClass( css[indx] || css[last] );
                                                                    }
                                    Severity: Major
                                    Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if ( txt.indexOf( wo.filter_selectSourceSeparator ) >= 0 ) {
                                                                  t = txt.split( wo.filter_selectSourceSeparator );
                                                                  val = t[0];
                                                                  txt = t[1];
                                                              }
                                      Severity: Major
                                      Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                if ( $.isArray( setFilters ) ) {
                                                                    // skip first ( latest input ) to maintain cursor position while typing
                                                                    if ( skipFirst && $column.length > 1 ) {
                                                                        $column = $column.slice( 1 );
                                                                    }
                                        Severity: Major
                                        Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language