mar10/fancytree

View on GitHub

Showing 460 of 700 total issues

Function _create has 139 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _create: function() {
        if ( !this.options.trigger ) {
            this.options.trigger = this.element.prev();
        }

Severity: Major
Found in lib/jquery.popup.js - About 5 hrs to fix

    File jquery.fancytree.persist.js has 398 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * jquery.fancytree.persist.js
     *
     * Persist tree status in cookiesRemove or highlight tree nodes, based on a filter.
     * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
    Severity: Minor
    Found in src/jquery.fancytree.persist.js - About 5 hrs to fix

      Function toolbarModuleFilter has 138 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            function toolbarModuleFilter(beginDetails) {
              var initialSelected = null;
              dropdownData = {
                options: beginDetails.modules.slice(),
                selectedMap: new StringMap(),
      Severity: Major
      Found in lib/qunit.js - About 5 hrs to fix

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

        /**
         * jQuery Theme Switcher plugin
         *
         * Copyright (c) 2011 Dave Hoff (davehoff.com)
         * Dual licensed under the MIT and GPL licenses:
        Severity: Minor
        Found in lib/Super-Theme-Switcher/jquery.themeswitcher.js - About 5 hrs to fix

          Consider simplifying this complex logical expression.
          Open

                      if ( event.pageX === 0 && event.pageY === 0 && Object.defineProperty ) {
                          eventDoc = event.relatedTarget.ownerDocument || document;
                          doc = eventDoc.documentElement;
                          body = eventDoc.body;
          
          
          Severity: Critical
          Found in lib/jquery.simulate.js - About 5 hrs to fix

            Function goAsync has 133 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        goAsync: function goAsync(search, targets, options) {
                          var canceled = false;
                          var p = new Promise(function (resolve, reject) {
                            if (search == 'farzher') return resolve([{
                              target: "farzher was here (^-^*)/",
            Severity: Major
            Found in lib/qunit.js - About 5 hrs to fix

              Function nodeRender has 132 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                          nodeRender: function (ctx, force, deep, collapsed, _recursive) {
                              /* This method must take care of all cases where the current data mode
                               * (i.e. node hierarchy) does not match the current markup.
                               *
                               * - node was not yet rendered:
              Severity: Major
              Found in src/jquery.fancytree.js - About 5 hrs to fix

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

                        treeInit: function (ctx) {
                            var i,
                                columnCount,
                                n,
                                $row,
                Severity: Major
                Found in src/jquery.fancytree.grid.js - About 5 hrs to fix

                  Function handleDragOver has 129 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function handleDragOver(event, data) {
                          // Implement auto-scrolling
                          if (data.options.dnd5.scroll) {
                              autoScroll(data.tree, event);
                          }
                  Severity: Major
                  Found in src/jquery.fancytree.dnd5.js - About 5 hrs to fix

                    Function p has 126 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                  var p = new Promise(function (resolve, reject) {
                                    if (search == 'farzher') return resolve([{
                                      target: "farzher was here (^-^*)/",
                                      score: 0,
                                      indexes: [0, 1, 2, 3, 4, 5, 6],
                    Severity: Major
                    Found in lib/qunit.js - About 5 hrs to fix

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

                              treeInit: function (ctx) {
                                  var tree = ctx.tree,
                                      opts = ctx.options,
                                      local = this._local,
                                      instOpts = this.options.persist;
                      Severity: Major
                      Found in src/jquery.fancytree.persist.js - About 4 hrs to fix

                        Function defaultPrefilter has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function defaultPrefilter( elem, props, opts ) {
                            var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
                                isBox = "width" in props || "height" in props,
                                anim = this,
                                orig = {},
                        Severity: Major
                        Found in lib/jquery.js - About 4 hrs to fix

                          Function scrollIntoView has 121 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  scrollIntoView: function (effects, options) {
                                      if (options !== undefined && _isNode(options)) {
                                          throw Error(
                                              "scrollIntoView() with 'topNode' option is deprecated since 2014-05-08. Use 'options.topNode' instead."
                                          );
                          Severity: Major
                          Found in src/jquery.fancytree.js - About 4 hrs to fix

                            Function Callbacks has 121 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            jQuery.Callbacks = function( options ) {
                            
                                // Convert options from String-formatted to Object-formatted if needed
                                // (we check in cache first)
                                options = typeof options === "string" ?
                            Severity: Major
                            Found in lib/jquery.js - About 4 hrs to fix

                              Function SuiteReport has 117 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  var SuiteReport = /*#__PURE__*/function () {
                                    function SuiteReport(name, parentSuite) {
                                      _classCallCheck(this, SuiteReport);
                                
                                      this.name = name;
                              Severity: Major
                              Found in lib/qunit.js - About 4 hrs to fix

                                File jquery.fancytree.clones.js has 351 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /*!
                                 *
                                 * jquery.fancytree.clones.js
                                 * Support faster lookup of nodes by key and shared ref-ids.
                                 * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
                                Severity: Minor
                                Found in src/jquery.fancytree.clones.js - About 4 hrs to fix

                                  Function step has 106 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                                  function step() {
                                                    if (canceled) return reject('canceled');
                                                    var startMs = Date.now(); // This code is copy/pasted 3 times for performance reasons [options.keys, options.key, no keys]
                                                    // options.keys
                                    
                                  Severity: Major
                                  Found in lib/qunit.js - About 4 hrs to fix

                                    Function fixSelection3FromEndNodes has 104 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            fixSelection3FromEndNodes: function (callOpts) {
                                                var opts = this.tree.options;
                                    
                                                // this.debug("fixSelection3FromEndNodes()");
                                                _assert(opts.selectMode === 3, "expected selectMode 3");
                                    Severity: Major
                                    Found in src/jquery.fancytree.js - About 4 hrs to fix

                                      File sample.js has 339 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      /*************************************************************************
                                          (c) 2008-2012 Martin Wendt
                                       *************************************************************************/
                                      
                                      /*******************************************************************************
                                      Severity: Minor
                                      Found in demo/sample.js - About 4 hrs to fix

                                        Function then has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                        then: function( onFulfilled, onRejected, onProgress ) {
                                                            var maxDepth = 0;
                                                            function resolve( depth, deferred, handler, special ) {
                                                                return function() {
                                                                    var that = this,
                                        Severity: Major
                                        Found in lib/jquery.js - About 4 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language