jonahoffline/csv2api

View on GitHub

Showing 403 of 403 total issues

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

    instance.addHook("afterCreateCol", function (index, amount, createdAutomatically) {

      if (createdAutomatically) {
        return;
      }
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 10247..10255

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

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

    function addHooks() {
      var instance = this;

      for (var hookName in hooks) {
        if (hooks.hasOwnProperty(hookName)) {
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 10214..10222

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

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

    instance.addHook("afterCreateRow", function (index, amount, createdAutomatically) {

      if (createdAutomatically) {
        return;
      }
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 10265..10273

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

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

    function removeHooks() {
      var instance = this;

      for (var hookName in hooks) {
        if (hooks.hasOwnProperty(hookName)) {
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 10204..10212

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

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

  this.getCellMeta = function (row, col) {
    var prop = datamap.colToProp(col)
      , cellProperties;

    row = translateRowIndex(row);
Severity: Minor
Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

    Function addCommentsActionsToContextMenu has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

      Function applyChanges has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function applyChanges(changes, source) {
          var i = changes.length - 1;
      
          if (i < 0) {
            return;
      Severity: Minor
      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

        Function bindManualColumnWidthEvents has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          var bindManualColumnWidthEvents = function () {
            var instance = this;
            var dblclick = 0;
            var autoresizeTimeout = null;
        
        
        Severity: Minor
        Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

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

                if (this.instance.selections[i].settings.highlightColumnClassName) {
                  classNames.push(this.instance.selections[i].settings.highlightColumnClassName);
                }
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js and 2 other locations - About 1 hr to fix
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 14656..14658
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 14659..14661

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

          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

          Handsontable.Dom.getScrollTop = function (elem) {
            if (elem === window) {
              return Handsontable.Dom.getWindowScrollTop(elem);
            }
            else {
          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 2682..2689

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

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

                if (this.instance.selections[i].settings.highlightRowClassName) {
                  classNames.push(this.instance.selections[i].settings.highlightRowClassName);
                }
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js and 2 other locations - About 1 hr to fix
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 14656..14658
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 14662..14664

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

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

                if (this.instance.selections[i].settings.className) {
                  classNames.push(this.instance.selections[i].settings.className);
                }
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js and 2 other locations - About 1 hr to fix
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 14659..14661
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 14662..14664

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

          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

          Handsontable.Dom.getScrollLeft = function (elem) {
            if (elem === window) {
              return Handsontable.Dom.getWindowScrollLeft(elem);
            }
            else {
          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 2673..2680

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

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

            PluginHookClass.prototype._runBucket = function (bucket, 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

            Function _executeBucket has 9 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              PluginHookClass.prototype._executeBucket = function (bucket, 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

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

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

                  this.keydownListener = function (event) {
                    var isCtrlDown = false;
                    if (event.metaKey) { //mac
                      isCtrlDown = true;
                    }
                Severity: Minor
                Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                  Function reduce has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          Array.prototype.reduce = function (callback, opt_initialValue) {
                              'use strict';
                              
                              if (null === this || 'undefined' === typeof this) {
                                  // At the moment all modern browsers, that support strict mode, have
                  Severity: Minor
                  Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                    Function bindManualRowHeightEvents has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        var bindManualRowHeightEvents = function () {
                          var instance = this,
                            autoresizeTimeout = null,
                            dblclick = 0;
                    
                    
                    Severity: Minor
                    Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix

                      Function selectCell has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        this.selectCell = function (row, col, endRow, endCol, scrollToCell) {
                          if (typeof row !== 'number' || row < 0 || row >= instance.countRows()) {
                            return false;
                          }
                          if (typeof col !== 'number' || col < 0 || col >= instance.countCols()) {
                      Severity: Minor
                      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 1 hr to fix
                        Severity
                        Category
                        Status
                        Source
                        Language