jonahoffline/csv2api

View on GitHub

Showing 403 of 403 total issues

Function WalkontableTable has 68 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function WalkontableTable(instance, table) {
  //reference to instance
  this.instance = instance;
  this.TABLE = table;
  Handsontable.Dom.removeTextNodes(this.TABLE);
Severity: Major
Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

    Function adjustRowsAndCols has 65 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        adjustRowsAndCols: function () {
          var r, rlen, emptyRows, emptyCols;
    
          //should I add empty rows to data source to meet minRows?
          rlen = instance.countRows();
    Severity: Major
    Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

          var pressed
            , currentTH
            , currentRow
            , currentHeight
            , instance
      Severity: Major
      Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 2 hrs to fix
      lib/csv2api/public/js/jquery.handsontable.full.js on lines 9482..9496

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

      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 pressed
          , currentTH
          , currentCol
          , currentWidth
          , instance
      Severity: Major
      Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 2 hrs to fix
      lib/csv2api/public/js/jquery.handsontable.full.js on lines 9685..9699

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

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

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

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

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

      Refactorings

      Further Reading

      Function init has 64 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      CopyPasteClass.prototype.init = function () {
        var that = this
          , style
          , parent;
      
      
      Severity: Major
      Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

          if (this.scrollHandler === window) {
            box = this.instance.wtTable.hider.getBoundingClientRect();
            var top = Math.ceil(box.top, 10);
            var bottom = Math.ceil(box.bottom, 10);
        
        
        Severity: Major
        Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 2 hrs to fix
        lib/csv2api/public/js/jquery.handsontable.full.js on lines 13898..13914

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

        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

          if (this.scrollHandler === window) {
            box = this.instance.wtTable.hider.getBoundingClientRect();
            var left = Math.ceil(box.left, 10);
            var right = Math.ceil(box.right, 10);
        
        
        Severity: Major
        Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 2 hrs to fix
        lib/csv2api/public/js/jquery.handsontable.full.js on lines 13821..13847

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

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

            alter: function (action, index, amount, source, keepEmptyRows) {
              var delta;
        
              amount = amount || 1;
        
        
        Severity: Major
        Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

                      var selected = this.getSelected(),
                        entireColumnSelection = [0,selected[1],this.view.wt.wtTable.getRowStrategy().cellCount-1,selected[1]],
                        columnSelected = entireColumnSelection.join(',') == selected.join(',');
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js and 2 other locations - About 2 hrs to fix
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 8280..8282
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 8293..8295

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

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

                      var selected = this.getSelected(),
                        entireRowSelection = [selected[0],0, selected[0],this.view.wt.wtTable.getColumnStrategy().cellCount-1],
                        rowSelected = entireRowSelection.join(',') == selected.join(',');
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js and 2 other locations - About 2 hrs to fix
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 8307..8309
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 8348..8350

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

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

                      var selected = this.getSelected(),
                        entireColumnSelection = [0,selected[1],this.view.wt.wtTable.getRowStrategy().cellCount-1,selected[1]],
                        columnSelected = entireColumnSelection.join(',') == selected.join(',');
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js and 2 other locations - About 2 hrs to fix
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 8293..8295
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 8335..8337

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

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

                      var selected = this.getSelected(),
                        entireRowSelection = [selected[0],0, selected[0],this.view.wt.wtTable.getColumnStrategy().cellCount-1],
                        rowSelected = entireRowSelection.join(',') == selected.join(',');
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js and 2 other locations - About 2 hrs to fix
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 8307..8309
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 8320..8322

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

          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

                    callback: function (key, selection ,event) {
                      var className = event.target.className,
                        type = event.target.tagName;
                      if (type === "BUTTON") {
                        if(className) {
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 2 hrs to fix
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 8426..8436

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

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

                      var selected = this.getSelected(),
                        entireRowSelection = [selected[0],0, selected[0],this.view.wt.wtTable.getColumnStrategy().cellCount-1],
                        rowSelected = entireRowSelection.join(',') == selected.join(',');
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js and 2 other locations - About 2 hrs to fix
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 8320..8322
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 8348..8350

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

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

                      var selected = this.getSelected(),
                        entireColumnSelection = [0,selected[1],this.view.wt.wtTable.getRowStrategy().cellCount-1,selected[1]],
                        columnSelected = entireColumnSelection.join(',') == selected.join(',');
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js and 2 other locations - About 2 hrs to fix
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 8280..8282
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 8335..8337

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

          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

                    callback: function (key, selection ,event) {
                      var className = event.target.className,
                        type = event.target.tagName;
          
                      if (type === "BUTTON") {
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js and 1 other location - About 2 hrs to fix
          lib/csv2api/public/js/jquery.handsontable.full.js on lines 8467..8475

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

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

              var bindMoveRowEvents = function () {
                var instance = this;
          
                instance.rootElement.on('mousemove.manualRowMove', function (e) {
                  if (pressed) {
          Severity: Major
          Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

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

                Autofill.prototype.apply = function () {
                  var drag, select, start, end, _data;
            
                  this.handle.isDragged = 0;
            
            
            Severity: Major
            Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

              Function bindMoveColEvents has 60 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                var bindMoveColEvents = function () {
                  var instance = this;
              
                  instance.rootElement.on('mousemove.manualColumnMove', function (e) {
                    if (pressed) {
              Severity: Major
              Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix

                Function WalkontableEvent has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function WalkontableEvent(instance) {
                  var that = this;
                
                  //reference to instance
                  this.instance = instance;
                Severity: Major
                Found in lib/csv2api/public/js/jquery.handsontable.full.js - About 2 hrs to fix
                  Severity
                  Category
                  Status
                  Source
                  Language