eisen-dev/eisen_front

View on GitHub

Showing 150 of 2,746 total issues

Avoid deeply nested control flow statements.
Open

if ( tmp[1] === 2 ) {
c.sortList.splice( indx, 1 );
c.sortVars[ col ].count = -1;
}
Severity: Major
Found in webd/includes/tablesorter/jquery.tablesorter.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

    if ( option.hasOwnProperty( val ) && val !== 'text' ) {
    options += ' ' + val + '="' + option[ val ] + '"';
    }
    Severity: Major
    Found in webd/includes/tablesorter/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 webd/includes/tablesorter/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 webd/includes/tablesorter/jquery.tablesorter.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 webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 45 mins to fix

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

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

              Consider simplifying this complex logical expression.
              Open

              if ( tsfRegex.andTest.test( data.filter ) ) {
              var indx, filterMatched, result, query, regex,
              // duplicate data but split filter
              data2 = $.extend( {}, data ),
              filter = data.filter.split( tsfRegex.andSplit ),
              Severity: Major
              Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                if ( tsfRegex.toTest.test( data.iFilter ) ) {
                var result, tmp, range1, range2,
                table = c.table,
                index = data.index,
                parsed = data.parsed[index],
                Severity: Major
                Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                  if ( wo.filter_initialized && ( event.which === tskeyCodes.enter || event.type === 'search' ||
                  // only "input" event fires in MS Edge when clicking the "x" to clear the search
                  ( event.type === 'change' || event.type === 'input' ) && this.value !== c.lastSearch[column] ) ) {
                  event.preventDefault();
                  // init search with no delay
                  Severity: Major
                  Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                    if ( header && header.length ) {
                    // get column indexed table cell
                    configHeaders = ts.getColumnData( table, c.headers, colIndex );
                    // get column parser/extractor
                    extractor = ts.getParserById( ts.getData( header, configHeaders, 'extractor' ) );
                    Severity: Major
                    Found in webd/includes/tablesorter/jquery.tablesorter.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                      if ( ( wo.filter_$anyMatch && wo.filter_$anyMatch.length ) ||
                      typeof filters[c.columns] !== 'undefined' ) {
                      data.anyMatchFlag = true;
                      data.anyMatchFilter = '' + (
                      filters[ c.columns ] ||
                      Severity: Major
                      Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                        if ( $header && $header.length ) {
                        // $filter = c.$filters.filter( '[data-column="' + column + '"]' );
                        $filter = tsf.getColumnElm( c, c.$filters, column );
                        ffxn = ts.getColumnData( table, wo.filter_functions, column );
                        makeSelect = ( wo.filter_functions && ffxn && typeof ffxn !== 'function' ) ||
                        Severity: Major
                        Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 40 mins to fix

                          Function generateLink has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          function generateLink(packageName: String, packageVersion: String, targetHost: String, managerHost: String, packageAction: String)
                          Severity: Minor
                          Found in webd/ts/async.ts - About 35 mins to fix

                            Function buildSelect has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            buildSelect: function( table, column, arry, updating, onlyAvail ) {
                            Severity: Minor
                            Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 35 mins to fix

                              Method isInstalled has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              public function isInstalled($dba,$dbh,$search,$update,$target_host){
                              Severity: Minor
                              Found in webd/includes/search.php - About 35 mins to fix

                                Method tasks_run has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                public function tasks_run($rest_host, $rest_port, $username, $password, $task_id)
                                Severity: Minor
                                Found in webd/includes/restclient.php - About 35 mins to fix

                                  Method tasks_result has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  public function tasks_result($rest_host, $rest_port, $username, $password, $task_id)
                                  Severity: Minor
                                  Found in webd/includes/restclient.php - About 35 mins to fix

                                    Function getColumnData has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    getColumnData : function( table, obj, indx, getCell, $headers ) {
                                    Severity: Minor
                                    Found in webd/includes/tablesorter/jquery.tablesorter.js - About 35 mins to fix

                                      Method recipe_result has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      public function recipe_result($rest_host, $rest_port, $username, $password, $recipe_id)
                                      Severity: Minor
                                      Found in webd/includes/restclient.php - About 35 mins to fix

                                        Method tasks_delete has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        public function tasks_delete($rest_host, $rest_port, $username, $password, $task_id)
                                        Severity: Minor
                                        Found in webd/includes/restclient.php - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language