jonahoffline/csv2api

View on GitHub

Showing 403 of 403 total issues

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

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

    WalkontableCellRange.prototype.isNorthWestOf = function (testedCoords) {
      return this.getTopLeftCorner().isNorthWestOf(testedCoords) || this.getBottomRightCorner().isNorthWestOf(testedCoords);
    };
    Severity: Major
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 1 hr to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 12844..12846

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

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

    WalkontableCellRange.prototype.isSouthEastOf = function (testedCoords) {
      return this.getTopLeftCorner().isSouthEastOf(testedCoords) || this.getBottomRightCorner().isSouthEastOf(testedCoords);
    };
    Severity: Major
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 1 hr to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 12848..12850

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    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 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 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 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

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

            WalkontableTable.prototype.getColumnStrategy = function () {
              return this.isWorkingOnClone() ? this.instance.cloneSource.wtTable.columnStrategy : this.columnStrategy;
            };
            Severity: Major
            Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 1 hr to fix
            lib/csv2api/public/js/jquery.handsontable.full.js on lines 14557..14559

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 56.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

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

              if (!this.COLGROUP) {
                this.COLGROUP = document.createElement('COLGROUP');
                this.TABLE.insertBefore(this.COLGROUP, this.THEAD);
              }
            Severity: Major
            Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 1 hr to fix
            lib/csv2api/public/js/jquery.handsontable.full.js on lines 14527..14530

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 56.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

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

              if (!this.THEAD) {
                this.THEAD = document.createElement('THEAD');
                this.TABLE.insertBefore(this.THEAD, this.TBODY);
              }
            Severity: Major
            Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 1 hr to fix
            lib/csv2api/public/js/jquery.handsontable.full.js on lines 14532..14535

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 56.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

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

            WalkontableTable.prototype.getRowStrategy = function () {
              return this.isWorkingOnClone() ? this.instance.cloneSource.wtTable.rowStrategy : this.rowStrategy;
            };
            Severity: Major
            Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 1 hr to fix
            lib/csv2api/public/js/jquery.handsontable.full.js on lines 14561..14563

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 56.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

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

              DateEditor.prototype.createElements = function () {
                Handsontable.editors.TextEditor.prototype.createElements.apply(this, arguments);
            
                this.datePicker = document.createElement('DIV');
                Handsontable.Dom.addClass(this.datePicker, 'htDatepickerHolder');
            Severity: Minor
            Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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

                this.setDataAtCell = function (row, col, value, source) {
                  var input = setDataInputToArray(row, col, value)
                    , i
                    , ilen
                    , changes = []
              Severity: Minor
              Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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

                function CellInfoCollection() {
                
                  var collection = [];
                
                  collection.getInfo = function (row, col) {
                Severity: Minor
                Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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

                    this.getColHeader = function (col) {
                      if (col === void 0) {
                        var out = [];
                        for (var i = 0, ilen = instance.countCols(); i < ilen; i++) {
                          out.push(instance.getColHeader(i));
                  Severity: Minor
                  Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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

                    Handsontable.Dom.offset = function (elem) {
                      if (this.hasCaptionProblem() && elem.firstChild && elem.firstChild.nodeName === 'CAPTION') {
                        //fixes problem with Firefox ignoring <caption> in TABLE offset (see also Handsontable.Dom.outerHeight)
                        //http://jsperf.com/offset-vs-getboundingclientrect/8
                        var box = elem.getBoundingClientRect();
                    Severity: Minor
                    Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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

                      function WalkontableColumnStrategy(instance, containerSizeFn, sizeAtIndex, strategy) {
                        var size
                          , i = 0;
                      
                        WalkontableAbstractStrategy.apply(this, arguments);
                      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

                          Function run has 8 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                            PluginHookClass.prototype.run = function (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

                            Consider simplifying this complex logical expression.
                            Open

                              if (this.hasCaptionProblem() && elem.firstChild && elem.firstChild.nodeName === 'CAPTION') {
                                //fixes problem with Firefox ignoring <caption> in TABLE offset (see also Handsontable.Dom.outerHeight)
                                //http://jsperf.com/offset-vs-getboundingclientrect/8
                                var box = elem.getBoundingClientRect();
                                return {
                            Severity: Major
                            Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix
                              Severity
                              Category
                              Status
                              Source
                              Language