eisen-dev/eisen_front

View on GitHub

Showing 150 of 2,746 total issues

Function init has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

init : function( c, wo ) {
if ( c.$table.hasClass( 'hasResizable' ) ) { return; }
c.$table.addClass( 'hasResizable' );
 
var noResize, $header, column, storedSizes, tmp,
Severity: Major
Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 2 hrs to fix

    Function storage has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    ts.storage = function(table, key, value, options) {
    table = $(table)[0];
    var cookieIndex, cookies, date,
    hasStorage = false,
    values = {},
    Severity: Minor
    Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 2 hrs to fix

      Consider simplifying this complex logical expression.
      Open

      if (!$table.hasClass('tablesorter-' + theme) || c.theme !== c.appliedTheme || !wo.uitheme_applied) {
      wo.uitheme_applied = true;
      oldtheme = themesAll[c.appliedTheme] || {};
      hasOldTheme = !$.isEmptyObject(oldtheme);
      oldremove = hasOldTheme ? [ oldtheme.sortNone, oldtheme.sortDesc, oldtheme.sortAsc, oldtheme.active ].join( ' ' ) : '';
      Severity: Critical
      Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 2 hrs to fix

        Function $headers has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        c.$headers = $( $.map( c.$table.find( c.selectorHeaders ), function( elem, index ) {
        var configHeaders, header, column, template, tmp,
        $elem = $( elem );
        // ignore cell (don't add it to c.$headers) if row has ignoreRow class
        if ( $elem.parent().hasClass( c.cssIgnoreRow ) ) { return; }
        Severity: Minor
        Found in webd/includes/tablesorter/jquery.tablesorter.js - About 1 hr to fix

          Function getColumnText has 44 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          getColumnText : function( table, column, callback, rowFilter ) {
          table = $( table )[0];
          var tbodyIndex, rowIndex, cache, row, tbodyLen, rowLen, raw, parsed, $cell, result,
          hasCallback = typeof callback === 'function',
          allColumns = column === 'all',
          Severity: Minor
          Found in webd/includes/tablesorter/jquery.tablesorter.js - About 1 hr to fix

            Function run has 44 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            Notification.prototype.run = function(data, options) {
            var d, datas, name, type, value;
            if ($.isPlainObject(options)) {
            $.extend(this.options, options);
            } else if ($.type(options) === "string") {
            Severity: Minor
            Found in webd/includes/notify/notify.js - About 1 hr to fix

              Function addStyle has 44 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var addStyle = function(name, def) {
              if (!name) {
              throw "Missing Style name";
              }
              if (!def) {
              Severity: Minor
              Found in webd/includes/notify/notify.js - About 1 hr to fix

                Function checkFilters has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                checkFilters: function( table, filter, skipFirst ) {
                var c = table.config,
                wo = c.widgetOptions,
                filterArray = $.isArray( filter ),
                filters = ( filterArray ) ? filter : ts.getFilters( table, true ),
                Severity: Minor
                Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 1 hr to fix

                  Method isInstalled has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  public function isInstalled($dba,$dbh,$search,$update,$target_host){
                   
                  $return = [];
                   
                  $return['msg'] = '';
                  Severity: Minor
                  Found in webd/includes/search.php - About 1 hr to fix

                    Method isRepository has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    public function isRepository($dba,$dbh,$search,$update,$target_host, $start_row, $row_in_table) {
                    $return = array();
                     
                    $return['msg'] = '';
                    $return['error'] = false;
                    Severity: Minor
                    Found in webd/includes/search.php - About 1 hr to fix

                      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

                                  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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language