jonahoffline/csv2api

View on GitHub

Showing 403 of 403 total issues

Function prepare has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

  BaseEditor.prototype.prepare = function(row, col, prop, td, originalValue, cellProperties){
Severity: Minor
Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 45 mins to fix

    Function prepare has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      HandsontableEditor.prototype.prepare = function (td, row, col, prop, value, cellProperties) {
    Severity: Minor
    Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if (activeEditor.state !== Handsontable.EditorState.WAITING){
                            that.closeEditorAndSaveChanges(ctrlDown);
                          }
      Severity: Major
      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if (min > 0) {
                                    value = value / min;
                                }
        Severity: Major
        Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                    if (typeof cell == 'object' ) Handsontable.Dom.removeClass(cell,classNames[s]);
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 45 mins to fix

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

              if (coords.row < 0 || coords.row > totalRows - 1) {
                throw new Error('row ' + coords.row + ' does not exist');
              }
            Severity: Minor
            Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 45 mins to fix
            lib/csv2api/public/js/jquery.handsontable.full.js on lines 13738..13740

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

            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

            Avoid deeply nested control flow statements.
            Open

                      if (typeof cell == 'object' ) Handsontable.Dom.addClass(cell,classNames[s]);
            Severity: Major
            Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 45 mins to fix

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

                Handsontable.DataMap.prototype.getText = function (start, end) {
                  return SheetClip.stringify(this.getRange(start, end, this.DESTINATION_RENDERER));
                };
              Severity: Minor
              Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 45 mins to fix
              lib/csv2api/public/js/jquery.handsontable.full.js on lines 4691..4693

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

              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

                  var loadManualRowHeights = function () {
                    var instance = this
                      , storedState = {};
              
                    Handsontable.hooks.run(instance, 'persistentStateLoad', 'manualRowHeights', storedState);
              Severity: Minor
              Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 45 mins to fix
              lib/csv2api/public/js/jquery.handsontable.full.js on lines 11918..11925

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

              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 (coords.col < 0 || coords.col > totalColumns - 1) {
                  throw new Error('column ' + coords.col + ' does not exist');
                }
              Severity: Minor
              Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 45 mins to fix
              lib/csv2api/public/js/jquery.handsontable.full.js on lines 13734..13736

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

              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.scrollHandler === window) {
                  this.windowSize = document.documentElement.clientWidth;
                  this.tableParentOffset = this.instance.wtTable.holderOffset.left;
                }
                else {
              Severity: Minor
              Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 45 mins to fix
              lib/csv2api/public/js/jquery.handsontable.full.js on lines 14110..14118

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

              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

                  this.to = new WalkontableCellCoords(Math.max(bottomRight.row, cellCoords.row), Math.max(bottomRight.col, cellCoords.col));
              Severity: Minor
              Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 45 mins to fix
              lib/csv2api/public/js/jquery.handsontable.full.js on lines 12861..12861

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

              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.scrollHandler === window) {
                  this.windowSize = document.documentElement.clientHeight;
                  this.tableParentOffset = this.instance.wtTable.holderOffset.top;
                }
                else {
              Severity: Minor
              Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 45 mins to fix
              lib/csv2api/public/js/jquery.handsontable.full.js on lines 13980..13987

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

              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

              Avoid deeply nested control flow statements.
              Open

                        if (typeof cell == 'object' ) Handsontable.Dom.removeClass(cell,classNames[s]);
              Severity: Major
              Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 45 mins to fix

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

                    var loadManualRowPositions = function () {
                      var instance = this,
                          storedState = {};
                
                      Handsontable.hooks.run(instance, 'persistentStateLoad', 'manualRowPositions', storedState);
                Severity: Minor
                Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 45 mins to fix
                lib/csv2api/public/js/jquery.handsontable.full.js on lines 9742..9749

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

                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.DataMap.prototype.getCopyableText = function (start, end) {
                    return SheetClip.stringify(this.getRange(start, end, this.DESTINATION_CLIPBOARD_GENERATOR));
                  };
                Severity: Minor
                Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 45 mins to fix
                lib/csv2api/public/js/jquery.handsontable.full.js on lines 4681..4683

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

                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

                    this.from = new WalkontableCellCoords(Math.min(topLeft.row, cellCoords.row), Math.min(topLeft.col, cellCoords.col));
                Severity: Minor
                Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 45 mins to fix
                lib/csv2api/public/js/jquery.handsontable.full.js on lines 12862..12862

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

                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 (abs >= Math.pow(10, 12) && !abbrForce || abbrT) {
                                    // trillion
                                    abbr = abbr + languages[currentLanguage].abbreviations.trillion;
                                    value = value / Math.pow(10, 12);
                                } else if (abs < Math.pow(10, 12) && abs >= Math.pow(10, 9) && !abbrForce || abbrB) {
                Severity: Major
                Found in lib/csv2api/public/js/jquery.handsontable.full.js and 3 other locations - About 40 mins to fix
                lib/csv2api/public/js/jquery.handsontable.full.js on lines 15774..15786
                lib/csv2api/public/js/jquery.handsontable.full.js on lines 15778..15786
                lib/csv2api/public/js/jquery.handsontable.full.js on lines 15782..15786

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

                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

                                } else if (abs < Math.pow(10, 12) && abs >= Math.pow(10, 9) && !abbrForce || abbrB) {
                                    // billion
                                    abbr = abbr + languages[currentLanguage].abbreviations.billion;
                                    value = value / Math.pow(10, 9);
                                } else if (abs < Math.pow(10, 9) && abs >= Math.pow(10, 6) && !abbrForce || abbrM) {
                Severity: Major
                Found in lib/csv2api/public/js/jquery.handsontable.full.js and 3 other locations - About 40 mins to fix
                lib/csv2api/public/js/jquery.handsontable.full.js on lines 15770..15786
                lib/csv2api/public/js/jquery.handsontable.full.js on lines 15778..15786
                lib/csv2api/public/js/jquery.handsontable.full.js on lines 15782..15786

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

                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

                                changeCoords(currentSelectedRange.from, Math.min(topLeft[altDim], mergeParent[altDim]), Math.min(topLeft[dim], mergeParent[dim]));
                Severity: Minor
                Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 40 mins to fix
                lib/csv2api/public/js/jquery.handsontable.full.js on lines 11280..11280

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

                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

                Severity
                Category
                Status
                Source
                Language