mambax7/adslight

View on GitHub

Showing 573 of 5,122 total issues

Avoid deeply nested control flow statements.
Open

                        if ( i === c.columns && $column.length ) {
                            wo.filter_$anyMatch = $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

                                if ( buildFilter && buildFilter.length === 0 ) {
                                    buildFilter = $filter.children( 'input' );
                                }
    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 ( option.hasOwnProperty( val ) && val !== 'text' ) {
                                      options += ' ' + val + '="' + option[ val ].replace( tsfRegex.quote, '"' ) + '"';
                                  }
      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 ( i === c.columns && $column.length ) {
                                    wo.filter_$anyMatch = $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 ( debug ) {
                                          debugOutput[ '(' + colIndex + ') ' + header.text() ] = {
                                              parser : parser.id,
                                              extractor : extractor ? extractor.id : 'none',
                                              string : c.strings[ colIndex ],
          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.combined.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              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] ) ) {
              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 < th.colSpan; indx++ ) {
                                                c.sortList[ c.sortList.length ] = [ col + indx, dir ];
                                                // update count on columns in colSpan
                                                c.sortVars[ col + indx ].count = $.inArray( dir, order );
                                                c.sortVars[ col + indx ].sortedBy = sortedBy;
                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.widgets.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                if ( buildFilter && ( buildFilter.parent().length === 0 ||
                                                    ( buildFilter.parent().length && buildFilter.parent()[0] !== $filter[0] ) ) ) {
                                                    $filter.append( buildFilter );
                                                }
                    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 ( 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.combined.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        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 );
                                                    }
                        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 ( option.hasOwnProperty( val ) && val !== 'text' ) {
                                                          options += ' ' + val + '="' + option[ val ].replace( tsfRegex.quote, '&quot;' ) + '"';
                                                      }
                          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 ( debug ) {
                                                            debugOutput[ '(' + colIndex + ') ' + header.text() ] = {
                                                                parser : parser.id,
                                                                extractor : extractor ? extractor.id : 'none',
                                                                string : c.strings[ colIndex ],
                            Severity: Major
                            Found in assets/js/tablesorter/js/jquery.tablesorter.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                          if ( !parser ) {
                                                              parser = ts.detectParserForColumn( c, rows, -1, colIndex );
                                                          }
                              Severity: Major
                              Found in assets/js/tablesorter/js/jquery.tablesorter.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                            if ( span > 0 ) {
                                                                colIndex += span;
                                                                max += span;
                                                                while ( span + 1 > 0 ) {
                                                                    // set colspan columns to use the same parsers & extractors
                                Severity: Major
                                Found in assets/js/tablesorter/js/jquery.tablesorter.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.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                if (mb_strlen($results[$i]['desctext']) >= 14) {
                                                                    $results[$i]['desctext'] = $myts->displayTarea(mb_substr($results[$i]['desctext'], 0, 90), 1, 1, 1, 1, 1);
                                                                }
                                    Severity: Major
                                    Found in search.php - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                  if ( !extractor ) {
                                                                      // For now, maybe detect someday
                                                                      extractor = false;
                                                                  }
                                      Severity: Major
                                      Found in assets/js/tablesorter/js/jquery.tablesorter.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                    if ( !hasParser && debug ) {
                                                                        console.warn( 'No parser found for row: ' + rowIndex + ', column: ' + colIndex +
                                                                            '; cell containing: "' + $(cell).text() + '"; does it have a header?' );
                                                                    }
                                        Severity: Major
                                        Found in assets/js/tablesorter/js/jquery.tablesorter.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language