jonahoffline/csv2api

View on GitHub

Showing 169 of 403 total issues

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

  WalkontableTableRenderer.prototype.render = function () {
    if (!this.wtTable.isWorkingOnClone()) {
      this.instance.getSetting('beforeDraw', true);
    }

Severity: Major
Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

      function HandsontablePersistentState() {
        var plugin = this;
    
    
        this.init = function () {
    Severity: Major
    Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

      Function prepare has 55 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        HandsontableEditor.prototype.prepare = function (td, row, col, prop, value, cellProperties) {
      
          Handsontable.editors.TextEditor.prototype.prepare.apply(this, arguments);
      
          var parent = this;
      Severity: Major
      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

            check: function(e, immediate) {
        
              var config = this.config,
                wClone = this.wClone,
                hClone = this.hClone,
        Severity: Major
        Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

              this.determineColumnWidth = function (col) {
                var instance = this
                  , tmp = instance.autoColumnSizeTmp;
          
                if (!tmp.container) {
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

              TextEditor.prototype.refreshDimensions = function () {
                if (this.state !== Handsontable.EditorState.EDITING) {
                  return;
                }
            
            
            Severity: Major
            Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

                var onBeforeKeyDown =  function onBeforeKeyDown(event){
              
                  var instance = this;
                  var that = instance.getActiveEditor();
              
              
              Severity: Minor
              Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

                Function addBordersOptionsToContextMenu has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Function setupListening has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    var setupListening = function (instance) {
                      instance.dragToScrollListening = false;
                      var scrollHandler = instance.view.wt.wtScrollbars.vertical.scrollHandler; //native scroll
                      dragToScroll = new DragToScroll();
                      if (scrollHandler === window) {
                  Severity: Minor
                  Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                    Function UndoRedo has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      Handsontable.UndoRedo = function (instance) {
                        var plugin = this;
                        this.instance = instance;
                        this.doneActions = [];
                        this.undoneActions = [];
                    Severity: Minor
                    Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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

                        this.loadData = function (data) {
                          if (typeof data === 'object' && data !== null) {
                            if (!(data.push && data.splice)) { //check if data is array. Must use duck-type check so Backbone Collections also pass it
                              //when data is not an array, attempt to make a single-row array of it
                              data = [data];
                      Severity: Minor
                      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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

                          var Hooks = function () {
                            return {
                              // Hooks
                              beforeInitWalkontable: [],
                        
                        
                        Severity: Minor
                        Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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

                              transformStart: function (rowDelta, colDelta, force) {
                                var delta = new WalkontableCellCoords(rowDelta, colDelta);
                                instance.runHooks('modifyTransformStart', delta);
                          
                                if (priv.selRange.highlight.row + rowDelta > instance.countRows() - 1) {
                          Severity: Minor
                          Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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

                            WalkontableTable.prototype.draw = function (selectionsOnly) {
                              if (!selectionsOnly) {
                                if (this.isWorkingOnClone()) {
                                  this.tableOffset = this.instance.cloneSource.wtTable.tableOffset;
                                }
                            Severity: Minor
                            Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                              Function finishEditing has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                BaseEditor.prototype.finishEditing = function (restoreOriginalValue, ctrlDown, callback) {
                              
                                  if (callback) {
                                    var previousCloseCallback = this._closeCallback;
                                    this._closeCallback = function (result) {
                              Severity: Minor
                              Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                                Function scrollToRenderedCell has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                WalkontableScroll.prototype.scrollToRenderedCell = function (TD) {
                                  var cellOffset = Handsontable.Dom.offset(TD);
                                  var cellWidth = Handsontable.Dom.outerWidth(TD);
                                  var cellHeight = Handsontable.Dom.outerHeight(TD);
                                  var workspaceOffset = Handsontable.Dom.offset(this.instance.wtTable.TABLE);
                                Severity: Minor
                                Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                                  Function renderRows has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  WalkontableTableRenderer.prototype.renderRows = function (totalRows, cloneLimit, displayTds) {
                                    var lastTD, TR, res;
                                    var offsetRow = this.instance.getSetting('offsetRow');
                                    var visibleRowIndex = 0;
                                    var sourceRowIndex = this.rowFilter.visibleToSource(visibleRowIndex);
                                  Severity: Minor
                                  Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                                    Function MultiMap has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      function MultiMap() {
                                        var map = {
                                          arrayMap: [],
                                          weakMap: new WeakMap()
                                        };
                                    Severity: Minor
                                    Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                                      Function formatCurrency has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function formatCurrency (n, format, roundingFunction) {
                                              var symbolIndex = format.indexOf('$'),
                                                  openParenIndex = format.indexOf('('),
                                                  minusSignIndex = format.indexOf('-'),
                                                  space = '',
                                      Severity: Minor
                                      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                                        Function registerListeners has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        WalkontableScrollbars.prototype.registerListeners = function () {
                                          var that = this;
                                        
                                          var oldVerticalScrollPosition
                                            , oldHorizontalScrollPosition
                                        Severity: Minor
                                        Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language