mar10/fancytree

View on GitHub

Showing 460 of 700 total issues

Function treeInit has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            treeInit: function (ctx) {
                var tree = ctx.tree,
                    opts = tree.options;

                //this.debug("Fancytree.treeInit()");
Severity: Minor
Found in src/jquery.fancytree.js - About 1 hr to fix

    Function navigate has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            navigate: function (where, activate) {
                var node,
                    KC = $.ui.keyCode;
    
                // Handle optional expand/collapse action for LEFT/RIGHT
    Severity: Minor
    Found in src/jquery.fancytree.js - About 1 hr to fix

      Function attr has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          attr: function( elem, name, value ) {
              var ret, hooks,
                  nType = elem.nodeType;
      
              // Don't get/set attributes on text, comment and attribute nodes
      Severity: Minor
      Found in lib/jquery.js - About 1 hr to fix

        Function diffCommonOverlap has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              DiffMatchPatch.prototype.diffCommonOverlap = function (text1, text2) {
                var text1Length, text2Length, textLength, best, length, pattern, found; // Cache the text lengths to prevent multiple calls.
          
                text1Length = text1.length;
                text2Length = text2.length; // Eliminate the null case.
        Severity: Minor
        Found in lib/qunit.js - About 1 hr to fix

          Function getTree has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                      getTree: function (el) {
                          var widget,
                              orgEl = el;
          
                          if (el instanceof Fancytree) {
          Severity: Minor
          Found in src/jquery.fancytree.js - About 1 hr to fix

            Function applyDropEffectCallback has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function applyDropEffectCallback(event, data, allowDrop) {
                    var tree = data.tree,
                        dataTransfer = data.dataTransfer;
            
                    if (
            Severity: Minor
            Found in src/jquery.fancytree.dnd5.js - About 1 hr to fix

              Function fixPositionOptions has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                          fixPositionOptions: function (opts) {
                              if (opts.offset || ("" + opts.my + opts.at).indexOf("%") >= 0) {
                                  $.error(
                                      "expected new position syntax (but '%' is not supported)"
                                  );
              Severity: Minor
              Found in src/jquery.fancytree.js - About 1 hr to fix

                Function left has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                            left: function( position, data ) {
                                var within = data.within,
                                    withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
                                    outerWidth = within.width,
                                    collisionPosLeft = position.left - data.collisionPosition.marginLeft,
                Severity: Minor
                Found in src/jquery-ui-dependencies/jquery-ui-iife.js - About 1 hr to fix

                  Function top has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                              top: function( position, data ) {
                                  var within = data.within,
                                      withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
                                      outerHeight = data.within.height,
                                      collisionPosTop = position.top - data.collisionPosition.marginTop,
                  Severity: Minor
                  Found in src/jquery-ui-dependencies/jquery-ui-iife.js - About 1 hr to fix

                    Function nodeRemoveChildren has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                nodeRemoveChildren: function (ctx) {
                                    var //subCtx,
                                        tree = ctx.tree,
                                        node = ctx.node,
                                        children = node.children;
                    Severity: Minor
                    Found in src/jquery.fancytree.js - About 1 hr to fix

                      Function top has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              top: function( position, data ) {
                                  var within = data.within,
                                      withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
                                      outerHeight = data.within.height,
                                      collisionPosTop = position.top - data.collisionPosition.marginTop,
                      Severity: Minor
                      Found in src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js - About 1 hr to fix

                        Function top has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                top: function( position, data ) {
                                    var within = data.within,
                                        withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
                                        outerHeight = data.within.height,
                                        collisionPosTop = position.top - data.collisionPosition.marginTop,
                        Severity: Minor
                        Found in src/jquery-ui-dependencies/jquery-ui.js - About 1 hr to fix

                          Function left has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  left: function( position, data ) {
                                      var within = data.within,
                                          withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
                                          outerWidth = within.width,
                                          collisionPosLeft = position.left - data.collisionPosition.marginLeft,
                          Severity: Minor
                          Found in src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js - About 1 hr to fix

                            Function parseHTML has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            jQuery.parseHTML = function( data, context, keepScripts ) {
                                if ( typeof data !== "string" ) {
                                    return [];
                                }
                                if ( typeof context === "boolean" ) {
                            Severity: Minor
                            Found in lib/jquery.js - About 1 hr to fix

                              Function buildNav has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function buildNav(members) {
                                  var globalNav;
                                  var nav = '<h2><a href="index.html">Home</a></h2>';
                                  var seen = {};
                                  var seenTutorials = {};
                              Severity: Minor
                              Found in bin/jsdoc3-moogle/publish.js - About 1 hr to fix

                                Function nodeSetStatus has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        nodeSetStatus: function (ctx, status, message, details) {
                                            var res,
                                                span,
                                                opts = ctx.options.glyph,
                                                node = ctx.node;
                                Severity: Minor
                                Found in src/jquery.fancytree.glyph.js - About 1 hr to fix

                                  Function left has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          left: function( position, data ) {
                                              var within = data.within,
                                                  withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
                                                  outerWidth = within.width,
                                                  collisionPosLeft = position.left - data.collisionPosition.marginLeft,
                                  Severity: Minor
                                  Found in src/jquery-ui-dependencies/jquery-ui.js - About 1 hr to fix

                                    Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        finish: function( type ) {
                                            if ( type !== false ) {
                                                type = type || "fx";
                                            }
                                            return this.each( function() {
                                    Severity: Minor
                                    Found in lib/jquery.js - About 1 hr to fix

                                      Function off has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          off: function( types, selector, fn ) {
                                              var handleObj, type;
                                              if ( types && types.preventDefault && types.handleObj ) {
                                      
                                                  // ( event )  dispatched jQuery.Event
                                      Severity: Minor
                                      Found in lib/jquery.js - About 1 hr to fix

                                        Function keydown has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                    keydown: function( event ) {
                                                        switch ( event.keyCode ) {
                                                            case $.ui.keyCode.TAB:
                                                                // Waiting for close() will make popup hide too late, which breaks tab key behavior
                                                                this.element.hide();
                                        Severity: Minor
                                        Found in lib/jquery.popup.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language