eisen-dev/eisen_front

View on GitHub

Showing 2,746 of 2,746 total issues

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

multisort : function( c ) { /*jshint loopfunc:true */
var tbodyIndex, sortTime, colMax, rows,
table = c.table,
dir = 0,
textSorter = c.textSorter || '',
Severity: Major
Found in webd/includes/tablesorter/jquery.tablesorter.js - About 2 hrs to fix

    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

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

          format : function( str, table ) {
          var date = str ? new Date( str.replace( ts.regex.dateReplace, '$1 $2' ) ) : str;
          return date instanceof Date && isFinite( date ) ? date.getTime() : str;
          },
          Severity: Major
          Found in webd/includes/tablesorter/jquery.tablesorter.js and 1 other location - About 1 hr to fix
          webd/includes/tablesorter/jquery.tablesorter.js on lines 2538..2541

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

          format : function( str, table ) {
          var date = str ? new Date( str.replace( ts.regex.dash, '/' ) ) : str;
          return date instanceof Date && isFinite( date ) ? date.getTime() : str;
          },
          Severity: Major
          Found in webd/includes/tablesorter/jquery.tablesorter.js and 1 other location - About 1 hr to fix
          webd/includes/tablesorter/jquery.tablesorter.js on lines 2581..2584

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

          always(alwaysCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...alwaysCallbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
          Severity: Major
          Found in webd/ts/libs/jquery.d.ts and 4 other locations - About 1 hr to fix
          webd/ts/libs/jquery.d.ts on lines 323..323
          webd/ts/libs/jquery.d.ts on lines 337..337
          webd/ts/libs/jquery.d.ts on lines 377..377
          webd/ts/libs/jquery.d.ts on lines 383..383

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

          fail(failCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...failCallbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryPromise<T>;
          Severity: Major
          Found in webd/ts/libs/jquery.d.ts and 4 other locations - About 1 hr to fix
          webd/ts/libs/jquery.d.ts on lines 323..323
          webd/ts/libs/jquery.d.ts on lines 363..363
          webd/ts/libs/jquery.d.ts on lines 377..377
          webd/ts/libs/jquery.d.ts on lines 383..383

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

          fail(failCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...failCallbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
          Severity: Major
          Found in webd/ts/libs/jquery.d.ts and 4 other locations - About 1 hr to fix
          webd/ts/libs/jquery.d.ts on lines 323..323
          webd/ts/libs/jquery.d.ts on lines 337..337
          webd/ts/libs/jquery.d.ts on lines 363..363
          webd/ts/libs/jquery.d.ts on lines 383..383

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

          progress(progressCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...progressCallbackN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
          Severity: Major
          Found in webd/ts/libs/jquery.d.ts and 4 other locations - About 1 hr to fix
          webd/ts/libs/jquery.d.ts on lines 323..323
          webd/ts/libs/jquery.d.ts on lines 337..337
          webd/ts/libs/jquery.d.ts on lines 363..363
          webd/ts/libs/jquery.d.ts on lines 377..377

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

          always(alwaysCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...alwaysCallbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryPromise<T>;
          Severity: Major
          Found in webd/ts/libs/jquery.d.ts and 4 other locations - About 1 hr to fix
          webd/ts/libs/jquery.d.ts on lines 337..337
          webd/ts/libs/jquery.d.ts on lines 363..363
          webd/ts/libs/jquery.d.ts on lines 377..377
          webd/ts/libs/jquery.d.ts on lines 383..383

          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

                        Avoid excessively long variable names like $manager_host_ipaddress. Keep variable name length under 20.
                        Open

                        public function hostManagerStatus($dbh, $manager_host_ipaddress, $status)
                        Severity: Minor
                        Found in webd/includes/DbAction.php by phpmd

                        Avoid excessively long variable names like $manager_host_ipaddress. Keep variable name length under 20.
                        Open

                        public function hostManagerip2id($dbh, $manager_host_ipaddress)
                        Severity: Minor
                        Found in webd/includes/DbAction.php by phpmd
                        Severity
                        Category
                        Status
                        Source
                        Language