mar10/fancytree

View on GitHub

Showing 460 of 700 total issues

Function eventToString has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            eventToString: function (event) {
                // Poor-man's hotkeys. See here for a complete implementation:
                //   https://github.com/jeresig/jquery.hotkeys
                var which = event.which,
                    et = event.type,
Severity: Minor
Found in src/jquery.fancytree.js - About 1 hr to fix

    Function renderLevelCss has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function renderLevelCss(
            containerId,
            depth,
            levelOfs,
            lineOfs,
    Severity: Minor
    Found in src/jquery.fancytree.wide.js - About 1 hr to fix

      Function remove has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          remove: function( owner, key ) {
              var i,
                  cache = owner[ this.expando ];
      
              if ( cache === undefined ) {
      Severity: Minor
      Found in lib/jquery.js - About 1 hr to fix

        Function run has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              run: function run() {
                config.current = this;
          
                if (config.notrycatch) {
                  runTest(this);
        Severity: Minor
        Found in lib/qunit.js - About 1 hr to fix

          Function decycledShallowClone has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function decycledShallowClone(object) {
                var ancestors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
            
                if (ancestors.indexOf(object) !== -1) {
                  return '[Circular]';
          Severity: Minor
          Found in lib/qunit.js - About 1 hr to fix

            Function _checkBrowser has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function _checkBrowser(){
                    var matched, browser;
                    function uaMatch( ua ) {
                        ua = ua.toLowerCase();
                        var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
            Severity: Minor
            Found in lib/contextmenu-abs/jquery.contextMenu-custom.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                                  if (
                                      hitMode !== "before" &&
                                      hitMode !== "after" &&
                                      dnd.autoExpandMS &&
                                      node.hasChildren() !== false &&
              Severity: Major
              Found in src/jquery.fancytree.dnd.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                    if ( support.matchesSelector && documentIsHTML &&
                        !nonnativeSelectorCache[ expr + " " ] &&
                        ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                        ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                
                
                Severity: Major
                Found in lib/jquery.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if (lastequality && (preIns && preDel && postIns && postDel || lastequality.length < 2 && preIns + preDel + postIns + postDel === 3)) {
                                // Duplicate record.
                                diffs.splice(equalities[equalitiesLength - 1], 0, [DIFF_DELETE, lastequality]); // Change second copy to insert.
                    
                                diffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT;
                  Severity: Major
                  Found in lib/qunit.js - About 1 hr to fix

                    Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                    Severity: Major
                    Found in lib/jquery.js - About 50 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if (target === copy) {
                                                  continue;
                                              }
                      Severity: Major
                      Found in src/jquery.fancytree.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                if (copy && $.isPlainObject(copy)) {
                                                    clone = src && $.isPlainObject(src) ? src : {};
                                                    // Never move original objects, clone them
                                                    target[name] = _simpleDeepMerge(clone, copy);
                                                    // Don't bring in undefined values
                        Severity: Major
                        Found in src/jquery.fancytree.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                      if (res !== false) {
                                                          dict.children.push(res);
                                                      }
                          Severity: Major
                          Found in src/jquery.fancytree.js - About 45 mins to fix

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

                                        eventName,
                                        node,
                                        otherNode,
                                        event,
                                        ui,
                            Severity: Minor
                            Found in src/jquery.fancytree.dnd.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                                  if (
                                                                      node.selected === undefined ||
                                                                      (instOpts.overrideSource &&
                                                                          node.selected === false)
                                                                  ) {
                              Severity: Major
                              Found in src/jquery.fancytree.persist.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                            if (
                                                                len === 2 &&
                                                                ctx.options.clones.highlightClones
                                                            ) {
                                                                //                            node.debug("clones.treeRegisterNode: last =>", node.getCloneList());
                                Severity: Major
                                Found in src/jquery.fancytree.clones.js - About 45 mins to fix

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

                                  function on( elem, types, selector, data, fn, one ) {
                                  Severity: Minor
                                  Found in lib/jquery.js - About 45 mins to fix

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

                                        init: function( elem, options, prop, end, easing, unit ) {
                                    Severity: Minor
                                    Found in lib/jquery.js - About 45 mins to fix

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

                                      function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
                                      Severity: Minor
                                      Found in lib/jquery.js - About 45 mins to fix

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

                                        function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                        Severity: Minor
                                        Found in lib/jquery.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language