mar10/fancytree

View on GitHub

Showing 460 of 700 total issues

Function addSampleButton has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    window.addSampleButton = function (options) {
        var sourceCode,
            opts = $.extend({}, SAMPLE_BUTTON_DEFAULTS, options),
            $buttonBar = $("#sampleButtons"),
            $container = $("<span />", {
Severity: Major
Found in demo/sample.js - About 2 hrs to fix

    Function generateFormElements has 60 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            generateFormElements: function (selected, active, opts) {
                opts = opts || {};
    
                var nodeList,
                    selectedName =
    Severity: Major
    Found in src/jquery.fancytree.js - About 2 hrs to fix

      Function domManip has 60 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function domManip( collection, args, callback, ignored ) {
      
          // Flatten any nested arrays
          args = flat( args );
      
      
      Severity: Major
      Found in lib/jquery.js - About 2 hrs to fix

        Function applyCommand has 59 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                applyCommand: function (cmd, node, opts_) {
                    var // clipboard,
                        refNode;
                    // opts = $.extend(
                    //     { setActive: true, clipboard: CLIPBOARD },
        Severity: Major
        Found in src/jquery.fancytree.js - About 2 hrs to fix

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

                  nodeSetExpanded: function (ctx, flag, callOpts) {
                      var node = ctx.node,
                          tree = ctx.tree;
          
                      // flag defaults to true
          Severity: Major
          Found in src/jquery.fancytree.grid.js - About 2 hrs to fix

            Function ajaxConvert has 59 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function ajaxConvert( s, response, jqXHR, isSuccess ) {
                var conv2, current, conv, tmp, prev,
                    converters = {},
            
                    // Work with a copy of dataTypes in case we need to modify it for conversion
            Severity: Major
            Found in lib/jquery.js - About 2 hrs to fix

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

                      nodeSetExpanded: function (ctx, flag, callOpts) {
                          // flag defaults to true
                          flag = flag !== false;
              
                          if ((ctx.node.expanded && flag) || (!ctx.node.expanded && !flag)) {
              Severity: Major
              Found in src/jquery.fancytree.table.js - About 2 hrs to fix

                Function _loadLazyNodes has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function _loadLazyNodes(tree, local, keyList, mode, dfd) {
                        var i,
                            key,
                            l,
                            node,
                Severity: Major
                Found in src/jquery.fancytree.persist.js - About 2 hrs to fix

                  Function process has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      var process = function() {
                        var level       = 0;
                        var levels      = [0,0,0,0,0,0,0];
                        var hLevelText  = '';
                        var prependText = '';
                  Severity: Major
                  Found in lib/jquery.planize.js - About 2 hrs to fix

                    Function _walk has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                function _walk(node) {
                                    var i,
                                        l,
                                        child,
                                        s,
                    Severity: Major
                    Found in src/jquery.fancytree.js - About 2 hrs to fix

                      Function treeCreate has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              treeCreate: function (ctx) {
                                  this._superApply(arguments);
                                  this.$container.addClass("fancytree-ext-wide");
                      
                                  var containerId,
                      Severity: Major
                      Found in src/jquery.fancytree.wide.js - About 2 hrs to fix

                        File jquery.simulate.js has 260 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                         /*!
                         * jQuery Simulate v@VERSION - simulate browser mouse and keyboard events
                         * https://github.com/jquery/jquery-simulate
                         *
                         * Copyright jQuery Foundation and other contributors
                        Severity: Minor
                        Found in lib/jquery.simulate.js - About 2 hrs to fix

                          Function init has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              init = jQuery.fn.init = function( selector, context, root ) {
                                  var match, elem;
                          
                                  // HANDLE: $(""), $(null), $(undefined), $(false)
                                  if ( !selector ) {
                          Severity: Major
                          Found in lib/jquery.js - About 2 hrs to fix

                            Function updateBreadcrumb has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function updateBreadcrumb(key, loadTreeNodes) {
                                    var $ol = $("ol.breadcrumb").addClass("busy"),
                                        activeNode = taxonTree.getActiveNode();
                            
                                    if (activeNode && activeNode.key !== key) {
                            Severity: Major
                            Found in demo/taxonomy-browser/taxonomy-browser.js - About 2 hrs to fix

                              Function nodeSetFocus has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                          nodeSetFocus: function (ctx, flag) {
                                              // ctx.node.debug("nodeSetFocus(" + flag + ")");
                                              var ctx2,
                                                  tree = ctx.tree,
                                                  node = ctx.node,
                              Severity: Major
                              Found in src/jquery.fancytree.js - About 2 hrs to fix

                                Function bridge has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                $.widget.bridge = function( name, object ) {
                                    var fullName = object.prototype.widgetFullName || name;
                                    $.fn[ name ] = function( options ) {
                                        var isMethodCall = typeof options === "string";
                                        var args = widgetSlice.call( arguments, 1 );
                                Severity: Major
                                Found in src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js - About 2 hrs to fix

                                  Function bridge has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      $.widget.bridge = function( name, object ) {
                                          var fullName = object.prototype.widgetFullName || name;
                                          $.fn[ name ] = function( options ) {
                                              var isMethodCall = typeof options === "string";
                                              var args = widgetSlice.call( arguments, 1 );
                                  Severity: Major
                                  Found in src/jquery-ui-dependencies/jquery-ui-iife.js - About 2 hrs to fix

                                    Function nodeRenderStatus has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            nodeRenderStatus: function (ctx) {
                                                // Set classes for current status
                                                var res,
                                                    node = ctx.node,
                                                    tree = ctx.tree,
                                    Severity: Major
                                    Found in src/jquery.fancytree.filter.js - About 2 hrs to fix

                                      Function bridge has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      $.widget.bridge = function( name, object ) {
                                          var fullName = object.prototype.widgetFullName || name;
                                          $.fn[ name ] = function( options ) {
                                              var isMethodCall = typeof options === "string";
                                              var args = widgetSlice.call( arguments, 1 );
                                      Severity: Major
                                      Found in src/jquery-ui-dependencies/jquery-ui.js - About 2 hrs to fix

                                        Function Test has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function Test(settings) {
                                              this.expected = null;
                                              this.assertions = [];
                                              this.module = config.currentModule;
                                              this.steps = [];
                                        Severity: Major
                                        Found in lib/qunit.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language