mar10/fancytree

View on GitHub

Showing 700 of 700 total issues

Function _makeVirtualFunction has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function _makeVirtualFunction(methodName, tree, base, extension, extName) {
        // $.ui.fancytree.debug("_makeVirtualFunction", methodName, tree, base, extension, extName);
        // if(rexTestSuper && !rexTestSuper.test(func)){
        //     // extension.methodName() doesn't call _super(), so no wrapper required
        //     return func;
Severity: Minor
Found in src/jquery.fancytree.js - About 1 hr to fix

    Function getDimensions has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function getDimensions( elem ) {
            var raw = elem[ 0 ];
            if ( raw.nodeType === 9 ) {
                return {
                    width: elem.width(),
    Severity: Minor
    Found in src/jquery-ui-dependencies/jquery-ui-iife.js - About 1 hr to fix

      Function getDimensions has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function getDimensions( elem ) {
          var raw = elem[ 0 ];
          if ( raw.nodeType === 9 ) {
              return {
                  width: elem.width(),
      Severity: Minor
      Found in src/jquery-ui-dependencies/jquery-ui.js - About 1 hr to fix

        Function getDimensions has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function getDimensions( elem ) {
            var raw = elem[ 0 ];
            if ( raw.nodeType === 9 ) {
                return {
                    width: elem.width(),
        Severity: Minor
        Found in src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js - About 1 hr to fix

          Function when has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              when: function( singleValue ) {
                  var
          
                      // count of uncompleted subordinates
                      remaining = arguments.length,
          Severity: Minor
          Found in lib/jquery.js - About 1 hr to fix

            Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function propFilter( props, specialEasing ) {
                var index, name, easing, value, hooks;
            
                // camelCase, specialEasing and expand cssHook pass
                for ( index in props ) {
            Severity: Minor
            Found in lib/jquery.js - About 1 hr to fix

              Function logHook has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function logHook(name, this_, args, extra) {
                      var res,
                          ctx = args[0],
                          opts = ctx.options.logger,
                          obj = ctx.node || ctx.tree,
              Severity: Minor
              Found in src/jquery.fancytree.logger.js - About 1 hr to fix

                Function postProcess has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                            postProcess: function (event, data) {
                                var response = data.response;
                
                                data.node.info("search postProcess", response);
                                data.result = $.map(response.results, function (o) {
                Severity: Minor
                Found in demo/taxonomy-browser/taxonomy-browser.js - About 1 hr to fix

                  Function clone has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                          var i, l, srcElements, destElements,
                              clone = elem.cloneNode( true ),
                              inPage = isAttached( elem );
                  
                  
                  Severity: Minor
                  Found in lib/jquery.js - About 1 hr to fix

                    Function renderColumns has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                renderColumns: function (event, data) {
                                    var i,
                                        node = data.node,
                                        $tdList = $(node.tr).find(">td"),
                                        cnList = node.data.vernacularNames
                    Severity: Minor
                    Found in demo/taxonomy-browser/taxonomy-browser.js - About 1 hr to fix

                      Function addClass has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          addClass: function( value ) {
                              var classes, elem, cur, curValue, clazz, j, finalValue,
                                  i = 0;
                      
                              if ( isFunction( value ) ) {
                      Severity: Minor
                      Found in lib/jquery.js - About 1 hr to fix

                        Function exportQUnit has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function exportQUnit(QUnit) {
                              var exportedModule = false;
                          
                              if (window$1 && document) {
                                // QUnit may be defined when it is preconfigured but then only QUnit and QUnit.config may be defined.
                        Severity: Minor
                        Found in lib/qunit.js - About 1 hr to fix

                          Function position has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              position: function() {
                                  if ( !this[ 0 ] ) {
                                      return;
                                  }
                          
                          
                          Severity: Minor
                          Found in lib/jquery.js - About 1 hr to fix

                            Function queueHook has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                  queueHook: function queueHook(hook, hookName, hookOwner) {
                                    var _this3 = this;
                              
                                    var callHook = function callHook() {
                                      var promise = hook.call(_this3.testEnvironment, _this3.assert);
                            Severity: Minor
                            Found in lib/qunit.js - About 1 hr to fix

                              Function objectType has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function objectType(obj) {
                                    if (typeof obj === 'undefined') {
                                      return 'undefined';
                                    } // Consider: typeof null === object
                                
                              Severity: Minor
                              Found in lib/qunit.js - About 1 hr to fix

                                Function simulateDrag has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    simulateDrag: function() {
                                        var i = 0,
                                            target = this.target,
                                            eventDoc = target.ownerDocument,
                                            options = this.options,
                                Severity: Minor
                                Found in lib/jquery.simulate.js - About 1 hr to fix

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

                                                  if (!node) {
                                                      tree.debug(
                                                          "Ignore non-node " +
                                                              event.type +
                                                              ": " +
                                  Severity: Major
                                  Found in src/jquery.fancytree.dnd5.js and 1 other location - About 1 hr to fix
                                  src/jquery.fancytree.dnd5.js on lines 878..888

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

                                  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

                                                              _setStatusNode(
                                                                  {
                                                                      title:
                                                                          tree.options.strings.loading +
                                                                          (message ? " (" + message + ")" : ""),
                                  Severity: Major
                                  Found in src/jquery.fancytree.js and 1 other location - About 1 hr to fix
                                  src/jquery.fancytree.js on lines 5898..5908

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

                                  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

                                                          _setStatusNode(
                                                              {
                                                                  title:
                                                                      tree.options.strings.loadError +
                                                                      (message ? " (" + message + ")" : ""),
                                  Severity: Major
                                  Found in src/jquery.fancytree.js and 1 other location - About 1 hr to fix
                                  src/jquery.fancytree.js on lines 5881..5891

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

                                  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

                                                  case "activate":
                                                      this.tree.timer = setTimeout(function () {
                                                          self.tree.debug("setTimeout: trigger activate");
                                                          self.setActive(true);
                                                      }, ms);
                                  Severity: Major
                                  Found in src/jquery.fancytree.js and 1 other location - About 1 hr to fix
                                  src/jquery.fancytree.js on lines 2076..2081

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

                                  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