mar10/fancytree

View on GitHub

Showing 700 of 700 total issues

Function fixSelection3FromEndNodes has 104 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        fixSelection3FromEndNodes: function (callOpts) {
            var opts = this.tree.options;

            // this.debug("fixSelection3FromEndNodes()");
            _assert(opts.selectMode === 3, "expected selectMode 3");
Severity: Major
Found in src/jquery.fancytree.js - About 4 hrs to fix

    File sample.js has 339 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*************************************************************************
        (c) 2008-2012 Martin Wendt
     *************************************************************************/
    
    /*******************************************************************************
    Severity: Minor
    Found in demo/sample.js - About 4 hrs to fix

      Function then has 102 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                      then: function( onFulfilled, onRejected, onProgress ) {
                          var maxDepth = 0;
                          function resolve( depth, deferred, handler, special ) {
                              return function() {
                                  var that = this,
      Severity: Major
      Found in lib/jquery.js - About 4 hrs to fix

        Function TapReporter has 102 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            var TapReporter = /*#__PURE__*/function () {
              function TapReporter(runner) {
                var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
          
                _classCallCheck(this, TapReporter);
        Severity: Major
        Found in lib/qunit.js - About 4 hrs to fix

          Function algorithm has 101 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                      algorithm: function algorithm(searchLowerCodes, prepared, searchLowerCode) {
                        var targetLowerCodes = prepared._targetLowerCodes;
                        var searchLen = searchLowerCodes.length;
                        var targetLen = targetLowerCodes.length;
                        var searchI = 0; // where we at
          Severity: Major
          Found in lib/qunit.js - About 4 hrs to fix

            Function contextMenu has 101 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    contextMenu: function(o, callback) {
                        // Defaults
                        if( o.menu == undefined ) return false;
                        if( o.inSpeed == undefined ) o.inSpeed = 150;
                        if( o.outSpeed == undefined ) o.outSpeed = 75;
            Severity: Major
            Found in lib/contextmenu-abs/jquery.contextMenu-custom.js - About 4 hrs to fix

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

                  try {
                      _assert(window.localStorage && window.localStorage.getItem);
                      localStorageStore = {
                          get: function (key) {
                              return window.localStorage.getItem(key);
              Severity: Major
              Found in src/jquery.fancytree.persist.js and 1 other location - About 4 hrs to fix
              src/jquery.fancytree.persist.js on lines 64..79

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

              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

                  try {
                      _assert(window.sessionStorage && window.sessionStorage.getItem);
                      sessionStorageStore = {
                          get: function (key) {
                              return window.sessionStorage.getItem(key);
              Severity: Major
              Found in src/jquery.fancytree.persist.js and 1 other location - About 4 hrs to fix
              src/jquery.fancytree.persist.js on lines 47..62

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

              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

                                for (var keyI = keysLen - 1; keyI >= 0; --keyI) {
                                  var key = keys[keyI];
                                  var target = getValue(obj, key);
                
                                  if (!target) {
              Severity: Major
              Found in lib/qunit.js and 1 other location - About 3 hrs to fix
              lib/qunit.js on lines 4907..4918

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

              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

                                    for (var keyI = keysLen - 1; keyI >= 0; --keyI) {
                                      var key = keys[keyI];
                                      var target = getValue(obj, key);
                
                                      if (!target) {
              Severity: Major
              Found in lib/qunit.js and 1 other location - About 3 hrs to fix
              lib/qunit.js on lines 4773..4784

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

              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

                  var keycode = $.ui.keyCode = {
                      BACKSPACE: 8,
                      COMMA: 188,
                      DELETE: 46,
                      DOWN: 40,
              Severity: Major
              Found in src/jquery-ui-dependencies/jquery-ui-iife.js and 2 other locations - About 3 hrs to fix
              src/jquery-ui-dependencies/jquery-ui.js on lines 1355..1372
              src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js on lines 1355..1372

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

              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 $wrapper = this.$fixedWrapper,
                              fcn = this.options.fixed.classNames,
                              $tlWrapper = $wrapper.find("div." + fcn.topLeft),
                              $blWrapper = $wrapper.find("div." + fcn.bottomLeft),
                              $trWrapper = $wrapper.find("div." + fcn.topRight),
              Severity: Major
              Found in src/jquery.fancytree.fixed.js and 1 other location - About 3 hrs to fix
              src/jquery.fancytree.fixed.js on lines 283..288

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

              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

              var keycode = $.ui.keyCode = {
                  BACKSPACE: 8,
                  COMMA: 188,
                  DELETE: 46,
                  DOWN: 40,
              Severity: Major
              Found in src/jquery-ui-dependencies/jquery-ui.js and 2 other locations - About 3 hrs to fix
              src/jquery-ui-dependencies/jquery-ui-iife.js on lines 1346..1363
              src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js on lines 1355..1372

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

              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

              var keycode = $.ui.keyCode = {
                  BACKSPACE: 8,
                  COMMA: 188,
                  DELETE: 46,
                  DOWN: 40,
              Severity: Major
              Found in src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js and 2 other locations - About 3 hrs to fix
              src/jquery-ui-dependencies/jquery-ui-iife.js on lines 1346..1363
              src/jquery-ui-dependencies/jquery-ui.js on lines 1355..1372

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

              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

                  function findTdAtColIdx($tr, colIdx) {
                      var colspan,
                          res = null,
                          idx = 0;
              
              
              Severity: Major
              Found in src/jquery.fancytree.gridnav.js and 1 other location - About 3 hrs to fix
              src/jquery.fancytree.ariagrid.js on lines 86..100

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

              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

                  function findTdAtColIdx($tr, colIdx) {
                      var colspan,
                          res = null,
                          idx = 0;
              
              
              Severity: Major
              Found in src/jquery.fancytree.ariagrid.js and 1 other location - About 3 hrs to fix
              src/jquery.fancytree.gridnav.js on lines 70..84

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

              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 $wrapper = this.$fixedWrapper,
                              fcn = this.options.fixed.classNames,
                              $topLeftWrapper = $wrapper.find("div." + fcn.topLeft),
                              $topRightWrapper = $wrapper.find("div." + fcn.topRight),
                              $bottomLeftWrapper = $wrapper.find("div." + fcn.bottomLeft),
              Severity: Major
              Found in src/jquery.fancytree.fixed.js and 1 other location - About 3 hrs to fix
              src/jquery.fancytree.fixed.js on lines 538..543

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

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

                          nodeSetStatus: function (ctx, status, message, details) {
                              var node = ctx.node,
                                  tree = ctx.tree;
              
                              function _clearStatusNode() {
              Severity: Major
              Found in src/jquery.fancytree.js - About 3 hrs to fix

                Function onDragEvent has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function onDragEvent(event) {
                        var json,
                            tree = this,
                            dndOpts = tree.options.dnd5,
                            node = FT.getNode(event),
                Severity: Major
                Found in src/jquery.fancytree.dnd5.js - About 3 hrs to fix

                  Function Animation has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function Animation( elem, properties, options ) {
                      var result,
                          stopped,
                          index = 0,
                          length = Animation.prefilters.length,
                  Severity: Major
                  Found in lib/jquery.js - About 3 hrs to fix
                    Severity
                    Category
                    Status
                    Source
                    Language