jonahoffline/csv2api

View on GitHub

Showing 169 of 403 total issues

Function observe has 87 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function observe(obj, callback) {
        var patches = [];
        var root = obj;
        var observer;
        var mirror = getMirror(obj);
Severity: Major
Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 3 hrs to fix

    Function updateSettings has 87 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      this.updateSettings = function (settings, init) {
        var i, clen;
    
        if (typeof settings.rows !== "undefined") {
          throw new Error("'rows' setting is no longer supported. do you mean startRows, minRows or maxRows?");
    Severity: Major
    Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 3 hrs to fix

      Function WalkontableBorder has 84 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function WalkontableBorder(instance, settings) {
        var style;
      
        if(!settings){
          return;
      Severity: Major
      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 3 hrs to fix

        Function populateFromArray has 75 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            populateFromArray: function (start, input, end, source, method) {
              var r, rlen, c, clen, setData = [], current = {};
              rlen = input.length;
              if (rlen === 0) {
                return false;
        Severity: Major
        Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 3 hrs to fix

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

            ContextMenu.prototype.onBeforeKeyDown = function (event) {
              var contextMenu = this;
              var instance = $(contextMenu.menu).handsontable('getInstance');
              var selection = instance.getSelected();
          
          
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 3 hrs to fix

            Function CheckboxRenderer has 74 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              var CheckboxRenderer = function (instance, TD, row, col, prop, value, cellProperties) {
            
                if (typeof cellProperties.checkedTemplate === "undefined") {
                  cellProperties.checkedTemplate = true;
                }
            Severity: Major
            Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

              Function CopyPastePlugin has 72 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function CopyPastePlugin(instance) {
                  this.copyPasteInstance = CopyPaste.getInstance();
              
                  this.copyPasteInstance.onCut(onCut);
                  this.copyPasteInstance.onPaste(onPaste);
              Severity: Major
              Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

                function WalkontableTable(instance, table) {
                  //reference to instance
                  this.instance = instance;
                  this.TABLE = table;
                  Handsontable.Dom.removeTextNodes(this.TABLE);
                Severity: Major
                Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

                      adjustRowsAndCols: function () {
                        var r, rlen, emptyRows, emptyCols;
                  
                        //should I add empty rows to data source to meet minRows?
                        rlen = instance.countRows();
                  Severity: Major
                  Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

                    CopyPasteClass.prototype.init = function () {
                      var that = this
                        , style
                        , parent;
                    
                    
                    Severity: Major
                    Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

                      Function alter has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          alter: function (action, index, amount, source, keepEmptyRows) {
                            var delta;
                      
                            amount = amount || 1;
                      
                      
                      Severity: Major
                      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

                            var bindMoveRowEvents = function () {
                              var instance = this;
                        
                              instance.rootElement.on('mousemove.manualRowMove', function (e) {
                                if (pressed) {
                        Severity: Major
                        Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

                              Autofill.prototype.apply = function () {
                                var drag, select, start, end, _data;
                          
                                this.handle.isDragged = 0;
                          
                          
                          Severity: Major
                          Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

                              var bindMoveColEvents = function () {
                                var instance = this;
                            
                                instance.rootElement.on('mousemove.manualColumnMove', function (e) {
                                  if (pressed) {
                            Severity: Major
                            Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

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

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

                                function WalkontableSettings(instance, settings) {
                                  var that = this;
                                  this.instance = instance;
                                
                                  //default settings. void 0 means it is required, null means it can be empty
                                Severity: Major
                                Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

                                  Function prepareBorder has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    function prepareBorder (range,place, type) {
                                      type = "Solid";
                                  
                                      // WHEN WE WANT TO CHANGE/ADD VIA CSS TOP BORDER THE WHOLE ROW MOVES 1PX VERTICAL
                                      // WHEN WE WANT TO CHANGE/ADD VIA CSS RIGHT BORDER THE WHOLE COLUMN MOVES 1PX HORIZONTAL
                                  Severity: Major
                                  Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

                                    Function refreshSelections has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    WalkontableTable.prototype.refreshSelections = function (selectionsOnly) {
                                      var vr
                                        , r
                                        , vc
                                        , c
                                    Severity: Major
                                    Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

                                      Function validateChanges has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        function validateChanges(changes, source, callback) {
                                          var waitingForValidator = new ValidatorsQueue();
                                          waitingForValidator.onQueueEmpty = resolve;
                                      
                                          for (var i = changes.length - 1; i >= 0; i--) {
                                      Severity: Major
                                      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

                                          function runHookForOperation(rawPatches){
                                            var instance = this;
                                            var patches = cleanPatches(rawPatches);
                                        
                                            for(var i = 0, len = patches.length; i < len; i++){
                                        Severity: Major
                                        Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language