jonahoffline/csv2api

View on GitHub

Showing 403 of 403 total issues

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

  return (topLeft.row <= cellCoords.row && bottomRight.row >= cellCoords.row && topLeft.col <= cellCoords.col && bottomRight.col >= cellCoords.col);
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 12860..12860

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

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 (cellCoords.row < topLeft.row || cellCoords.col < topLeft.col || cellCoords.row > bottomRight.row || cellCoords.col > bottomRight.col) {
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 12827..12827

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

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 unformatNumeral has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function unformatNumeral (n, string) {
        var stringOriginal = string,
            thousandRegExp,
            millionRegExp,
            billionRegExp,
Severity: Minor
Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

    Function Search has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      Handsontable.Search = function Search(instance) {
        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 open has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        AutocompleteEditor.prototype.open = function () {
      
          Handsontable.editors.HandsontableEditor.prototype.open.apply(this, arguments);
      
          this.$textarea[0].style.visibility = 'visible';
      Severity: Minor
      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

        Function isMetaKey has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        Handsontable.helper.isMetaKey = function (keyCode) {
          var keyCodes = Handsontable.helper.keyCode;
          var metaKeys = [
            keyCodes.ARROW_DOWN,
            keyCodes.ARROW_UP,
        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

            ContextMenu.prototype.menuFitsOnRightOfCursor = function (cursor) {
              return cursor.leftRelative + this.menu.offsetWidth <= cursor.scrollLeft + document.body.clientWidth;
            };
          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 8917..8919

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

          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

            ContextMenu.prototype.positionMenuOnLeftOfCursor = function (cursor) {
              this.menu.style.left = (cursor.left - this.menu.offsetWidth) + 'px';
            };
          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 8929..8931

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

          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(ContextMenu.utils.isSeparator(nextCell) || ContextMenu.utils.isDisabled(nextCell)){
                  selectNextCell(nextRow, col, instance);
                } else {
                  instance.selectCell(nextRow, col);
                }
          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 8829..8833

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

          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(ContextMenu.utils.isSeparator(prevCell) || ContextMenu.utils.isDisabled(prevCell)){
                  selectPrevCell(prevRow, col, instance);
                } else {
                  instance.selectCell(prevRow, col);
                }
          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 8813..8817

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

          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

            ContextMenu.prototype.positionMenuAboveCursor = function (cursor) {
              this.menu.style.top = (cursor.top - this.menu.offsetHeight) + 'px';
            };
          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 8937..8939

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

          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

            ContextMenu.prototype.menuFitsBelowCursor = function (cursor) {
              return cursor.topRelative + this.menu.offsetHeight <= cursor.scrollTop + document.body.clientHeight;
            };
          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 8921..8923

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

          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 refreshStretching has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          WalkontableTableRenderer.prototype.refreshStretching = function () {
            if (this.wtTable.isWorkingOnClone()) {
              return;
            }
          
          
          Severity: Minor
          Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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

                function apply(tree, patches) {
                    var result = false, p = 0, plen = patches.length, patch;
                    while (p < plen) {
                        patch = patches[p];
            
            
            Severity: Minor
            Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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

              WalkontableCornerScrollbarNative.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 draw has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                WalkontableSelection.prototype.draw = function () {
                  var corners, r, c, source_r, source_c,
                    instance = this.instance,
                    visibleRows = instance.wtTable.getRowStrategy().countVisible(),
                    renderedColumns = instance.wtTable.getColumnStrategy().cellCount,
                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 renderer has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        ContextMenu.prototype.renderer = function(instance, TD, row, col, prop, value, cellProperties){
                          var contextMenu = this;
                          var item = instance.getData()[row];
                          var wrapper = document.createElement('DIV');
                      
                      
                      Severity: Minor
                      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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