eisen-dev/eisen_front

View on GitHub

Showing 2,746 of 2,746 total issues

Function destroy has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

destroy : function( table, removeClasses, callback ) {
table = $( table )[ 0 ];
if ( !table.hasInitialized ) { return; }
// remove all widgets
ts.removeWidget( table, true, false );
Severity: Minor
Found in webd/includes/tablesorter/jquery.tablesorter.js - About 1 hr to fix

    Function appendCache has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    appendCache : function( c, init ) {
    var parsed, totalRows, $tbody, $curTbody, rowIndex, tbodyIndex, appendTime,
    table = c.table,
    wo = c.widgetOptions,
    $tbodies = c.$tbodies,
    Severity: Minor
    Found in webd/includes/tablesorter/jquery.tablesorter.js - About 1 hr to fix

      Function findRange has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      findRange: function( c, val, ignoreRanges ) {
      // look for multiple columns '1-3,4-6,8' in data-column
      var temp, ranges, range, start, end, singles, i, indx, len,
      columns = [];
      if ( /^[0-9]+$/.test( val ) ) {
      Severity: Minor
      Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 1 hr to fix

        Function updateHeaderSortCount has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        updateHeaderSortCount : function( c, list ) {
        var col, dir, group, indx, primary, temp, val, order,
        sortList = list || c.sortList,
        len = sortList.length;
        c.sortList = [];
        Severity: Minor
        Found in webd/includes/tablesorter/jquery.tablesorter.js - About 1 hr to fix

          Function format has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          format: function(table, c, wo) {
          var $tbody, tbodyIndex, $rows, rows, $row, $cells, remove, indx,
          $table = c.$table,
          $tbodies = c.$tbodies,
          sortList = c.sortList,
          Severity: Minor
          Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 1 hr to fix

            Method get_TargetHost has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            public function get_TargetHost($user_id)
            {
            $dba = new DbAction();
            $dbh = $dba->Connect();
            $machine = $dba->hostManagerActiveList($user_id, $dbh);
            Severity: Minor
            Found in webd/includes/target_host_controller.php - About 1 hr to fix

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

              if ( ( parsed || c.parsers[ index ].type === 'numeric' ) && !isNaN( range1 ) && !isNaN( range2 ) ) {
              result = data.cache;
              } else {
              tmp = isNaN( data.iExact ) ? data.iExact.replace( ts.regex.nondigit, '' ) : data.iExact;
              result = ts.formatFloat( tmp, table );
              Severity: Major
              Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js and 1 other location - About 1 hr to fix
              webd/includes/tablesorter/jquery.tablesorter.widgets.js on lines 605..611

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

              if ( ( parsed || parser.type === 'numeric' ) && !isNaN( query ) &&
              typeof data.cache !== 'undefined' ) {
              cachedValue = data.cache;
              } else {
              txt = isNaN( data.iExact ) ? data.iExact.replace( ts.regex.nondigit, '' ) : data.iExact;
              Severity: Major
              Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js and 1 other location - About 1 hr to fix
              webd/includes/tablesorter/jquery.tablesorter.widgets.js on lines 673..678

              Function getOptions has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              getOptions: function( table, column, onlyAvail ) {
              table = $( table )[0];
              var rowIndex, tbodyIndex, len, row, cache, indx, child, childLen,
              c = table.config,
              wo = c.widgetOptions,
              Severity: Minor
              Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 1 hr to fix

                Function applyWidgetId has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                applyWidgetId : function( table, id, init ) {
                var applied, time, name,
                c = table.config,
                wo = c.widgetOptions,
                widget = ts.getWidgetById( id );
                Severity: Minor
                Found in webd/includes/tablesorter/jquery.tablesorter.js - About 1 hr to fix

                  Function computeColumnIndex has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  computeColumnIndex : function( $rows, c ) {
                  var i, j, k, l, cell, cells, rowIndex, rowSpan, colSpan, firstAvailCol,
                  // total columns has been calculated, use it to set the matrixrow
                  columns = c && c.columns || 0,
                  matrix = [],
                  Severity: Minor
                  Found in webd/includes/tablesorter/jquery.tablesorter.js - About 1 hr to fix

                    Function addHeaderResizeEvent has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    ts.addHeaderResizeEvent = function(table, disable, settings) {
                    table = $(table)[0]; // make sure we're using a dom element
                    if ( !table.config ) { return; }
                    var defaults = {
                    timer : 250
                    Severity: Minor
                    Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 1 hr to fix

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                      export function resolve<Value>(v: Value): Promise<Value>
                      {
                      return defer<Value>().resolve(v).promise();
                      }
                      Severity: Major
                      Found in webd/ts/libs/Promise.ts and 1 other location - About 1 hr to fix
                      webd/ts/libs/Promise.ts on lines 33..36

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                      export function reject<Value>(err: Rejection): Promise<Value>
                      {
                      return defer<Value>().reject(err).promise();
                      }
                      Severity: Major
                      Found in webd/ts/libs/Promise.ts and 1 other location - About 1 hr to fix
                      webd/ts/libs/Promise.ts on lines 24..27

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                      public function PackageSearch($target_host, $dbh, $search)
                      {
                      $search = "%$search%";
                      $stm = $dbh->prepare("select * from pack_info WHERE target_host=:target_host AND pack_name LIKE :search ;");
                      $stm-> bindParam(':search', $search, PDO::PARAM_STR);
                      Severity: Major
                      Found in webd/includes/DbAction.php and 1 other location - About 1 hr to fix
                      webd/includes/DbAction.php on lines 735..749

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                      public function installedPackageSearch($target_host, $dbh, $search)
                      {
                      $search = "%$search%";
                      $stm = $dbh->prepare('
                      select * from installed_package
                      Severity: Major
                      Found in webd/includes/DbAction.php and 1 other location - About 1 hr to fix
                      webd/includes/DbAction.php on lines 751..761

                      Function sendData has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function sendData(item, packageName, packageVersion, targetHost, managerHost, Action)
                      {
                      $('#modal-contents > '+item+' > form').submit(function (event) {
                      console.log('sendData clicked');
                      console.log(event);
                      Severity: Minor
                      Found in webd/ts/async.ts - About 1 hr to fix

                        Function success has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        success: function (data) {
                        $("#" + id).empty();
                        if (!(data.query.results.rss instanceof Array)) {
                        data.query.results.rss = [data.query.results.rss];
                        }
                        Severity: Minor
                        Found in webd/includes/feedEK/FeedEk.js - About 1 hr to fix

                          Function format has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          format: function(table, c, wo, init) {
                          var stored, time,
                          $table = c.$table,
                          saveSort = wo.saveSort !== false, // make saveSort active/inactive; default to true
                          sortList = { 'sortList' : c.sortList };
                          Severity: Minor
                          Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                            if ( ( tsfRegex.orTest.test( data.iFilter ) || tsfRegex.orSplit.test( data.filter ) ) &&
                            // this test for regex has potential to slow down the overall search
                            !tsfRegex.regex.test( data.filter ) ) {
                            var indx, filterMatched, query, regex,
                            // duplicate data but split filter
                            Severity: Critical
                            Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 1 hr to fix
                              Severity
                              Category
                              Status
                              Source
                              Language