eisen-dev/eisen_front

View on GitHub

Showing 150 of 2,746 total issues

Function buildHeaders has 79 lines of code (exceeds 25 allowed). Consider refactoring.
Open

buildHeaders : function( c ) {
var $temp, icon, timer, indx;
c.headerList = [];
c.headerContent = [];
c.sortVars = [];
Severity: Major
Found in webd/includes/tablesorter/jquery.tablesorter.js - About 3 hrs to fix

    File Promise.ts has 298 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    "use strict";
     
    /**
    Module P: Generic Promises for TypeScript
     
     
    Severity: Minor
    Found in webd/ts/libs/Promise.ts - About 3 hrs to fix

      Function bindMethods has 77 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      bindMethods : function( c ) {
      var $table = c.$table,
      namespace = c.namespace,
      events = ( 'sortReset update updateRows updateAll updateHeaders addRows updateCell updateComplete ' +
      'sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup ' +
      Severity: Major
      Found in webd/includes/tablesorter/jquery.tablesorter.js - About 3 hrs to fix

        Consider simplifying this complex logical expression.
        Open

        if ( searchFiltered ) {
        // cycle through all filters; include last ( columnIndex + 1 = match any column ). Fixes #669
        for ( indx = 0; indx < columnIndex + 1; indx++ ) {
        val = filters[indx] || '';
        // break out of loop if we've already determined not to search filtered rows
        Severity: Critical
        Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 3 hrs to fix

          Function buildRow has 70 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          buildRow: function( table, c, wo ) {
          var $filter, col, column, $header, makeSelect, disabled, name, ffxn, tmp,
          // c.columns defined in computeThIndexes()
          cellFilter = wo.filter_cellFilter,
          columns = c.columns,
          Severity: Major
          Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 2 hrs to fix

            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

                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

                            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

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