mar10/fancytree

View on GitHub

Showing 460 of 700 total issues

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

    keyEvent: function( type, options ) {
        var event;
        options = $.extend({
            bubbles: true,
            cancelable: true,
Severity: Minor
Found in lib/jquery.simulate.js - About 1 hr to fix

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

        function prettyYamlValue(value) {
          var indent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 4;
      
          if (value === undefined) {
            // Not supported in JSON/YAML, turn into string
    Severity: Minor
    Found in lib/qunit.js - About 1 hr to fix

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

              _log: function(args) {
                  var $this = $(this),
                      data = $this.data("jsconsole"),
                      level = arguments[0],
                      levelName = LEVEL_NAMES[level],
      Severity: Minor
      Found in lib/jquery.jsconsole.js - About 1 hr to fix

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

            var StringMap = typeof g.Map === 'function' && typeof g.Map.prototype.keys === 'function' && typeof g.Symbol === 'function' && _typeof(g.Symbol.iterator) === 'symbol' ? g.Map : function StringMap(input) {
              var _this = this;
          
              var store = Object.create(null);
              var hasOwn = Object.prototype.hasOwnProperty;
        Severity: Minor
        Found in lib/qunit.js - About 1 hr to fix

          Function autoScroll has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function autoScroll(tree, event) {
                  var spOfs,
                      scrollTop,
                      delta,
                      dndOpts = tree.options.dnd5,
          Severity: Minor
          Found in src/jquery.fancytree.dnd5.js - About 1 hr to fix

            Function rejects has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    value: function rejects(promise, expected, message) {
                      var _validateExpectedExce3 = validateExpectedExceptionArgs(expected, message, 'rejects');
              
                      var _validateExpectedExce4 = _slicedToArray(_validateExpectedExce3, 2);
              
            Severity: Minor
            Found in lib/qunit.js - About 1 hr to fix

              Function _afterExpand has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                          function _afterExpand(ok, args) {
                              // ctx.tree.info("ok:" + ok, args);
                              if (ok) {
                                  // #1108 minExpandLevel: 2 together with table extension does not work
                                  // don't call when 'ok' is false:
              Severity: Minor
              Found in src/jquery.fancytree.table.js - About 1 hr to fix

                Function _on has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        _on: function( suppressDisabledCheck, element, handlers ) {
                            var delegateElement;
                            var instance = this;
                
                            // No suppressDisabledCheck flag, shuffle arguments
                Severity: Minor
                Found in src/jquery-ui-dependencies/jquery-ui-iife.js - About 1 hr to fix

                  Function _on has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _on: function( suppressDisabledCheck, element, handlers ) {
                          var delegateElement;
                          var instance = this;
                  
                          // No suppressDisabledCheck flag, shuffle arguments
                  Severity: Minor
                  Found in src/jquery-ui-dependencies/jquery-ui.js - About 1 hr to fix

                    Function _on has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _on: function( suppressDisabledCheck, element, handlers ) {
                            var delegateElement;
                            var instance = this;
                    
                            // No suppressDisabledCheck flag, shuffle arguments
                    Severity: Minor
                    Found in src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js - About 1 hr to fix

                      Function valid has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                            valid: function valid() {
                              // Internally-generated tests are always valid
                              if (this.callback && this.callback.validTest) {
                                return true;
                              }
                      Severity: Minor
                      Found in lib/qunit.js - About 1 hr to fix

                        Function allSettled has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                              function allSettled(arr) {
                                var P = this;
                                return new P(function (resolve, reject) {
                                  if (!(arr && typeof arr.length !== 'undefined')) {
                                    return reject(new TypeError(_typeof(arr) + ' ' + arr + ' is not iterable(cannot read property Symbol(Symbol.iterator))'));
                        Severity: Minor
                        Found in lib/qunit.js - About 1 hr to fix

                          Function onIframeLoad has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  function onIframeLoad() {
                                      var moduleName,
                                          testName,
                                          count = 0;
                          
                          
                          Severity: Minor
                          Found in lib/qunit-composite.js - About 1 hr to fix

                            Function _afterExpand has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        function _afterExpand(ok) {
                                            tree.redrawViewport(true);
                            
                                            if (ok) {
                                                if (
                            Severity: Minor
                            Found in src/jquery.fancytree.grid.js - About 1 hr to fix

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

                                      nodeRender: function (ctx, force, deep, collapsed, _recursive) {
                                          var res = this._superApply(arguments),
                                              node = ctx.node,
                                              isRootNode = !node.parent;
                              
                              
                              Severity: Minor
                              Found in src/jquery.fancytree.fixed.js - About 1 hr to fix

                                Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function ajaxHandleResponses( s, jqXHR, responses ) {
                                
                                    var ct, type, finalDataType, firstDataType,
                                        contents = s.contents,
                                        dataTypes = s.dataTypes;
                                Severity: Minor
                                Found in lib/jquery.js - About 1 hr to fix

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

                                          nodeClick: function (ctx) {
                                              var //pluginOpts = ctx.options.multi,
                                                  tree = ctx.tree,
                                                  node = ctx.node,
                                                  activeNode = tree.getActiveNode() || tree.getFirstChild(),
                                  Severity: Minor
                                  Found in src/jquery.fancytree.multi.js - About 1 hr to fix

                                    Function getUrlConfigHtml has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                          function getUrlConfigHtml() {
                                            var selection = false;
                                            var urlConfig = config.urlConfig;
                                            var urlConfigHtml = '';
                                      
                                    Severity: Minor
                                    Found in lib/qunit.js - About 1 hr to fix

                                      Function nodeRenderTitle has 36 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.grid.js - About 1 hr to fix

                                        Function applyPatch has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                applyPatch: function (patch) {
                                                    // patch [key, null] means 'remove'
                                                    if (patch === null) {
                                                        this.remove();
                                                        return _getResolvedPromise(this);
                                        Severity: Minor
                                        Found in src/jquery.fancytree.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language