mar10/fancytree

View on GitHub

Showing 460 of 700 total issues

Function nodeRenderTitle has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        nodeRenderTitle: function (ctx, title) {
            var $cb,
                res,
                tree = ctx.tree,
                node = ctx.node,
Severity: Minor
Found in src/jquery.fancytree.table.js - About 1 hr to fix

    Function _requireExtension has 43 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            _requireExtension: function (name, required, before, message) {
                if (before != null) {
                    before = !!before;
                }
                var thisName = this._local.name,
    Severity: Minor
    Found in src/jquery.fancytree.js - About 1 hr to fix

      Function loadKeyPath has 43 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              loadKeyPath: function (keyPathList, optsOrCallback) {
                  var callback,
                      i,
                      path,
                      self = this,
      Severity: Minor
      Found in src/jquery.fancytree.js - About 1 hr to fix

        Function extend has 43 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        jQuery.extend = jQuery.fn.extend = function() {
            var options, name, src, copy, copyIsArray, clone,
                target = arguments[ 0 ] || {},
                i = 1,
                length = arguments.length,
        Severity: Minor
        Found in lib/jquery.js - About 1 hr to fix

          Function nodeSetExpanded has 43 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  nodeSetExpanded: function (ctx, flag, callOpts) {
                      var res,
                          self = this,
                          node = ctx.node,
                          $leftTr = $(node.tr),
          Severity: Minor
          Found in src/jquery.fancytree.fixed.js - About 1 hr to fix

            Function _changeSelectStatusAttrs has 42 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    _changeSelectStatusAttrs: function (state) {
                        var changed = false,
                            opts = this.tree.options,
                            unselectable = FT.evalOption(
                                "unselectable",
            Severity: Minor
            Found in src/jquery.fancytree.js - About 1 hr to fix

              Function ConsoleReporter has 42 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Function redrawViewport has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    $.ui.fancytree._FancytreeClass.prototype.redrawViewport = function (force) {
                        if (this._enableUpdate === false) {
                            // tree.debug("no render", tree._enableUpdate);
                            return;
                        }
                Severity: Minor
                Found in src/jquery.fancytree.grid.js - About 1 hr to fix

                  Function toDict has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          toDict: function (recursive, callback) {
                              var i,
                                  l,
                                  node,
                                  res,
                  Severity: Minor
                  Found in src/jquery.fancytree.js - About 1 hr to fix

                    Function stop has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                stop: function (event, ui) {
                                    var logObject,
                                        // 'draggable' was renamed to 'ui-draggable' since jQueryUI 1.10:
                                        draggable =
                                            $(this).data("ui-draggable") ||
                    Severity: Minor
                    Found in src/jquery.fancytree.dnd.js - About 1 hr to fix

                      Function style has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          style: function( elem, name, value, extra ) {
                      
                              // Don't set styles on text and comment nodes
                              if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                                  return;
                      Severity: Minor
                      Found in lib/jquery.js - About 1 hr to fix

                        Function adjustCSS has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function adjustCSS( elem, prop, valueParts, tween ) {
                            var adjusted, scale,
                                maxIterations = 20,
                                currentValue = tween ?
                                    function() {
                        Severity: Minor
                        Found in lib/jquery.js - About 1 hr to fix

                          Function dispatch has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              dispatch: function( nativeEvent ) {
                          
                                  var i, j, ret, matched, handleObj, handlerQueue,
                                      args = new Array( arguments.length ),
                          
                          
                          Severity: Minor
                          Found in lib/jquery.js - About 1 hr to fix

                            Function access has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                                var i = 0,
                                    len = elems.length,
                                    bulk = key == null;
                            
                            
                            Severity: Minor
                            Found in lib/jquery.js - About 1 hr to fix

                              Function updateItemDetails has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function updateItemDetails(key) {
                                      $("#tmplDetails").addClass("busy");
                                      $.bbq.pushState({ key: key });
                              
                                      $.when(
                              Severity: Minor
                              Found in demo/taxonomy-browser/taxonomy-browser.js - About 1 hr to fix

                                Function stop has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    stop: function( type, clearQueue, gotoEnd ) {
                                        var stopQueue = function( hooks ) {
                                            var stop = hooks.stop;
                                            delete hooks.stop;
                                            stop( gotoEnd );
                                Severity: Minor
                                Found in lib/jquery.js - About 1 hr to fix

                                  Function findNeighbourTd has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function findNeighbourTd(tree, $target, keyCode) {
                                          var nextNode,
                                              node,
                                              navMap = { "ctrl+home": "first", "ctrl+end": "last" },
                                              $td = $target.closest("td"),
                                  Severity: Minor
                                  Found in src/jquery.fancytree.ariagrid.js - About 1 hr to fix

                                    Function nodeClick has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                nodeClick: function (ctx) {
                                                    var activate,
                                                        expand,
                                                        // event = ctx.originalEvent,
                                                        targetType = ctx.targetType,
                                    Severity: Minor
                                    Found in src/jquery.fancytree.js - About 1 hr to fix

                                      Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function on( elem, types, selector, data, fn, one ) {
                                          var origFn, type;
                                      
                                          // Types can be a map of types/handlers
                                          if ( typeof types === "object" ) {
                                      Severity: Minor
                                      Found in lib/jquery.js - About 1 hr to fix

                                        Function toggleClass has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            toggleClass: function( value, stateVal ) {
                                                var type = typeof value,
                                                    isValidValue = type === "string" || Array.isArray( value );
                                        
                                                if ( typeof stateVal === "boolean" && isValidValue ) {
                                        Severity: Minor
                                        Found in lib/jquery.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language