jonahoffline/csv2api

View on GitHub

Showing 403 of 403 total issues

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

  PluginHookClass.prototype.execute = 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

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

            'vertical_alignment': {
              name: function () {
                var div = document.createElement('div'),
                  button = document.createElement('button'),
                  tButton = button.cloneNode(true),
    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 8476..8478

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

    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

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

              disabled: function () {
                return false;
              }
    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 8442..8479

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

    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

            delta.row = priv.selRange.highlight.row + delta.row == 0 ? instance.countRows() - 1 : -1;
    Severity: Minor
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 55 mins to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 639..639

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

    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 4 locations. Consider refactoring.
    Open

            if(row == range.to.row){
              add++;
              if(rowObj.hasOwnProperty('bottom')){
                border.bottom = rowObj.bottom;
              }
    Severity: Major
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 3 other locations - About 55 mins to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 11546..11551
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 11560..11565
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 11568..11573

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

    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 4 locations. Consider refactoring.
    Open

            if(row == range.from.row) {
              add++;
              if(rowObj.hasOwnProperty('top')){
                border.top = rowObj.top;
              }
    Severity: Major
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 3 other locations - About 55 mins to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 11553..11558
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 11560..11565
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 11568..11573

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

    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

    WalkontableRowFilter.prototype.fixed = function (n) {
      if (n < this.fixedCount) {
        return n - this.offset;
      }
      else {
    Severity: Minor
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 55 mins to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 13542..13549

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

    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.currentCellCache.test(vr, vc, classNames[s])) {
              cell = this.getCell(new WalkontableCellCoords(r, c));
              if (typeof cell == 'object' ) Handsontable.Dom.addClass(cell, classNames[s]);
            }
            else if (selectionsOnly && this.oldCellCache.test(vr, vc, classNames[s])) {
    Severity: Minor
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 55 mins to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 14680..14684

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

    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

            config.animate && !immediate ?
              el.stop(1,1).animate({
                height: scrollTop
              }, config.animate)
              : el.height(scrollTop);
    Severity: Minor
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 55 mins to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 6444..6448

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

    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

    WalkontableRowFilter.prototype.unFixed = function (n) {
      if (n < this.fixedCount) {
        return n + this.offset;
      }
      else {
    Severity: Minor
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 55 mins to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 13533..13540

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

    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

              config.animate && !immediate ?
                el.stop(1,1).animate({
                  width: newWidth
                }, config.animate)
                : el.width(newWidth);
    Severity: Minor
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 55 mins to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 6489..6493

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

    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 4 locations. Consider refactoring.
    Open

            if(col == range.from.col) {
              add++;
              if(rowObj.hasOwnProperty('left')){
                border.left = rowObj.left;
              }
    Severity: Major
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 3 other locations - About 55 mins to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 11546..11551
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 11553..11558
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 11568..11573

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

    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

            delta.col = priv.selRange.highlight.col + delta.col == 0 ? instance.countCols() - 1 : -1;
    Severity: Minor
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 55 mins to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 652..652

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

    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 4 locations. Consider refactoring.
    Open

            if (col == range.to.col) {
              add++;
              if(rowObj.hasOwnProperty('right')){
                border.right = rowObj.right;
              }
    Severity: Major
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 3 other locations - About 55 mins to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 11546..11551
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 11553..11558
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 11560..11565

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

    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

            else if (selectionsOnly && this.oldCellCache.test(vr, vc, classNames[s])) {
              cell = this.getCell(new WalkontableCellCoords(r, c));
              if (typeof cell == 'object' ) Handsontable.Dom.removeClass(cell, classNames[s]);
    
            }
    Severity: Minor
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 55 mins to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 14676..14684

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

    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

    Walkontable.prototype.scrollVertical = function (delta) {
      var result = this.wtScroll.scrollVertical(delta);
    
      this.getSetting('onScrollVertically');
    
    
    Severity: Minor
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 55 mins to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 13189..13195

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

    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

    Walkontable.prototype.scrollHorizontal = function (delta) {
      var result = this.wtScroll.scrollHorizontal(delta);
    
      this.getSetting('onScrollHorizontally');
    
    
    Severity: Minor
    Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 55 mins to fix
    lib/csv2api/public/js/jquery.handsontable.full.js on lines 13181..13187

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

    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 PasswordRenderer has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      var PasswordRenderer = function (instance, TD, row, col, prop, value, cellProperties) {
    Severity: Major
    Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 50 mins to fix

      Function TextRenderer has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        var TextRenderer = function (instance, TD, row, col, prop, value, cellProperties) {
      Severity: Major
      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 50 mins to fix

        Function HtmlRenderer has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          function HtmlRenderer(instance, TD, row, col, prop, value, cellProperties){
        Severity: Major
        Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 50 mins to fix
          Severity
          Category
          Status
          Source
          Language