eisen-dev/eisen_front

View on GitHub

Showing 2,746 of 2,746 total issues

Function setElementPosition has 68 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Notification.prototype.setElementPosition = function() {
var arrowColor, arrowCss, arrowSize, color, contH, contW, css, elemH, elemIH, elemIW, elemPos, elemW, gap, j, k, len, len1, mainFull, margin, opp, oppFull, pAlign, pArrow, pMain, pos, posFull, position, ref, wrapPos;
position = this.getPosition();
pMain = position[0];
pAlign = position[1];
Severity: Major
Found in webd/includes/notify/notify.js - About 2 hrs to fix

    Function buildSelect has 68 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    buildSelect: function( table, column, arry, updating, onlyAvail ) {
    table = $( table )[0];
    column = parseInt( column, 10 );
    if ( !table.config.cache || $.isEmptyObject( table.config.cache ) ) {
    return;
    Severity: Major
    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

      reject(err: Rejection) {
      if (this._status !== Status.Unfulfilled)
      throw new Error("tried to reject a fulfilled promise");
       
      this._error = err;
      Severity: Major
      Found in webd/ts/libs/Promise.ts and 1 other location - About 2 hrs to fix
      webd/ts/libs/Promise.ts on lines 371..381

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

      resolve(result: Value) {
      if (this._status !== Status.Unfulfilled)
      throw new Error("tried to resolve a fulfilled promise");
       
      this._result = result;
      Severity: Major
      Found in webd/ts/libs/Promise.ts and 1 other location - About 2 hrs to fix
      webd/ts/libs/Promise.ts on lines 383..393

      File task_list.php has 276 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      /**
      * Eisen Frontend
      * http://eisen-dev.github.io
      *
      Severity: Minor
      Found in webd/task_list.php - About 2 hrs to fix

        File recipe_list.php has 276 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
        * Eisen Frontend
        * http://eisen-dev.github.io
        *
        Severity: Minor
        Found in webd/recipe_list.php - About 2 hrs to fix

          Function bindEvents has 65 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          bindEvents : function( table, $headers, core ) {
          table = $( table )[ 0 ];
          var tmp,
          c = table.config,
          namespace = c.namespace,
          Severity: Major
          Found in webd/includes/tablesorter/jquery.tablesorter.js - About 2 hrs to fix

            Function getFilters has 61 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            ts.getFilters = function( table, getRaw, setFilters, skipFirst ) {
            var i, $filters, $column, cols,
            filters = false,
            c = table ? $( table )[0].config : '',
            wo = c ? c.widgetOptions : '';
            Severity: Major
            Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 2 hrs to fix

              Function setHeadersCss has 60 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              setHeadersCss : function( c ) {
              var $sorted, indx, column,
              list = c.sortList,
              len = list.length,
              none = ts.css.sortNone + ' ' + c.cssNone,
              Severity: Major
              Found in webd/includes/tablesorter/jquery.tablesorter.js - About 2 hrs to fix

                Function addRows has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                addRows : function( c, $row, resort, callback ) {
                var txt, val, tbodyIndex, rowIndex, rows, cellIndex, len,
                cacheIndex, rowData, cells, cell, span,
                // allow passing a row string if only one non-info tbody exists in the table
                valid = typeof $row === 'string' && c.$tbodies.length === 1 && /<tr/.test( $row || '' ),
                Severity: Major
                Found in webd/includes/tablesorter/jquery.tablesorter.js - About 2 hrs to fix

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

                  done(doneCallback1?: JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[], ...doneCallbackN: Array<JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[]>): JQueryPromise<T>;
                  Severity: Major
                  Found in webd/ts/libs/jquery.d.ts and 1 other location - About 2 hrs to fix
                  webd/ts/libs/jquery.d.ts on lines 370..370

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

                  done(doneCallback1?: JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[], ...doneCallbackN: Array<JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[]>): JQueryDeferred<T>;
                  Severity: Major
                  Found in webd/ts/libs/jquery.d.ts and 1 other location - About 2 hrs to fix
                  webd/ts/libs/jquery.d.ts on lines 330..330

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

                  if (jQuery(target).css("display") == "none") {
                  jQuery(target).css("display", "block");
                  } else if (jQuery(target).css("display") != "none") {
                  jQuery(target).css("display", "none");
                  }
                  Severity: Major
                  Found in webd/ts/script.ts and 1 other location - About 2 hrs to fix
                  webd/ts/script.ts on lines 113..117

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

                  if (jQuery(target).css("display") == "none") {
                  jQuery(target).css("display", "block");
                  } else if (jQuery(target).css("display") != "none") {
                  jQuery(target).css("display", "none");
                  }
                  Severity: Major
                  Found in webd/ts/script.ts and 1 other location - About 2 hrs to fix
                  webd/ts/script.ts on lines 122..126

                  Function bindings has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  bindings : function( c, wo ) {
                  var namespace = c.namespace + 'tsresize';
                  wo.$resizable_container.children().bind( 'mousedown', function( event ) {
                  // save header cell and mouse position
                  var column,
                  Severity: Major
                  Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 2 hrs to fix

                    Function FeedEk has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    $.fn.FeedEk = function (opt) {
                    var def = $.extend({
                    MaxCount: 5,
                    ShowDesc: true,
                    ShowPubDate: true,
                    Severity: Major
                    Found in webd/includes/feedEK/FeedEk.js - About 2 hrs to fix

                      Function processOptions has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      processOptions: function( table, column, arry ) {
                      if ( !$.isArray( arry ) ) {
                      return false;
                      }
                      table = $( table )[0];
                      Severity: Major
                      Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 2 hrs to fix

                        Function applyWidget has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        applyWidget : function( table, init, callback ) {
                        table = $( table )[ 0 ]; // in case this is called externally
                        var indx, len, names, widget, time,
                        c = table.config,
                        widgets = [];
                        Severity: Major
                        Found in webd/includes/tablesorter/jquery.tablesorter.js - About 2 hrs to fix

                          Function updateCell has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          updateCell : function( c, cell, resort, callback ) {
                          if ( ts.isEmptyObject( c.cache ) ) {
                          // empty table, do an update instead - fixes #1099
                          ts.updateHeader( c );
                          ts.commonUpdate( c, resort, callback );
                          Severity: Major
                          Found in webd/includes/tablesorter/jquery.tablesorter.js - About 2 hrs to fix

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

                            bindSearch: function( table, $el, internal ) {
                            table = $( table )[0];
                            $el = $( $el ); // allow passing a selector string
                            if ( !$el.length ) { return; }
                            var tmp,
                            Severity: Major
                            Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 2 hrs to fix
                              Severity
                              Category
                              Status
                              Source
                              Language