jonahoffline/csv2api

View on GitHub

Showing 169 of 403 total issues

Function cellMethodLookupFactory has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Handsontable.helper.cellMethodLookupFactory = function (methodName, allowUndefined) {

  allowUndefined = typeof allowUndefined == 'undefined' ? true : allowUndefined;

  return function cellMethodLookup (row, col) {
Severity: Minor
Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

    Function query has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        this.query = function (queryStr, callback, queryMethod) {
          var rowCount = instance.countRows();
          var colCount = instance.countCols();
          var queryResult = [];
    
    
    Severity: Minor
    Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

      Function Autofill has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function Autofill(instance) {
          this.instance = instance;
          this.addingStarted = false;
      
          var $document = $(document),
      Severity: Minor
      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

        Function bindManualColumnWidthEvents has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          var bindManualColumnWidthEvents = function () {
            var instance = this;
            var dblclick = 0;
            var autoresizeTimeout = null;
        
        
        Severity: Minor
        Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

          Function getCellMeta has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            this.getCellMeta = function (row, col) {
              var prop = datamap.colToProp(col)
                , cellProperties;
          
              row = translateRowIndex(row);
          Severity: Minor
          Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

            Function addCommentsActionsToContextMenu has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              addCommentsActionsToContextMenu = function (defaultOptions) {
                var instance = this;
                if (!instance.getSettings().comments) {
                  return;
                }
            Severity: Minor
            Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

              Function applyChanges has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function applyChanges(changes, source) {
                  var i = changes.length - 1;
              
                  if (i < 0) {
                    return;
              Severity: Minor
              Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                Function _executeBucket has 9 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                  PluginHookClass.prototype._executeBucket = function (bucket, instance, key, p1, p2, p3, p4, p5, p6) {
                Severity: Major
                Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                  Function _runBucket has 9 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                    PluginHookClass.prototype._runBucket = function (bucket, instance, key, p1, p2, p3, p4, p5, p6) {
                  Severity: Major
                  Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                    Function reduce has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            Array.prototype.reduce = function (callback, opt_initialValue) {
                                'use strict';
                                
                                if (null === this || 'undefined' === typeof this) {
                                    // At the moment all modern browsers, that support strict mode, have
                    Severity: Minor
                    Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                      Function keydownListener has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        this.keydownListener = function (event) {
                          var isCtrlDown = false;
                          if (event.metaKey) { //mac
                            isCtrlDown = true;
                          }
                      Severity: Minor
                      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                        Function name has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                              name: function () {
                                var div = document.createElement('div'),
                                  button = document.createElement('button'),
                                  xButton = button.cloneNode(true),
                                  tButton = button.cloneNode(true),
                        Severity: Minor
                        Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                          Function bindManualRowHeightEvents has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              var bindManualRowHeightEvents = function () {
                                var instance = this,
                                  autoresizeTimeout = null,
                                  dblclick = 0;
                          
                          
                          Severity: Minor
                          Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                            Function resetFixedPosition has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            WalkontableVerticalScrollbarNative.prototype.resetFixedPosition = function () {
                              if (!this.instance.wtTable.holder.parentNode) {
                                return; //removed from DOM
                              }
                              var elem = this.clone.wtTable.holder.parentNode;
                            Severity: Minor
                            Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                              Function selectCell has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                this.selectCell = function (row, col, endRow, endCol, scrollToCell) {
                                  if (typeof row !== 'number' || row < 0 || row >= instance.countRows()) {
                                    return false;
                                  }
                                  if (typeof col !== 'number' || col < 0 || col >= instance.countCols()) {
                              Severity: Minor
                              Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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

                                    this.init = function (source) {
                                      var instance = this;
                                
                                      var manualRowMoveEnabled = !!(instance.getSettings().manualRowMove);
                                
                                
                                Severity: Minor
                                Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                                  Function WalkontableDebugOverlay has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function WalkontableDebugOverlay(instance) {
                                    this.instance = instance;
                                    this.init();
                                    this.clone = this.makeClone('debug');
                                    this.clone.wtTable.holder.style.opacity = 0.4;
                                  Severity: Minor
                                  Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                                    Function isVisible has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    Handsontable.Dom.isVisible = function (elem) {
                                      //fast method according to benchmarks, but requires layout so slow in our case
                                      /*
                                      if (!Handsontable.Dom.hasOffsetParent(elem)) {
                                        return false; //fixes problem with UI Bootstrap <tabs> directive
                                    Severity: Minor
                                    Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                                      Function beforeInit has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          this.beforeInit = function () {
                                            var instance = this;
                                            instance.autoColumnWidths = [];
                                      
                                            if (instance.getSettings().autoColumnSize !== false) {
                                      Severity: Minor
                                      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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

                                          this.init = function (source) {
                                            var instance = this;
                                        
                                            var manualColMoveEnabled = !!(this.getSettings().manualColumnMove);
                                        
                                        
                                        Severity: Minor
                                        Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language