mar10/fancytree

View on GitHub

Showing 460 of 700 total issues

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

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

    Function algorithm has 101 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                algorithm: function algorithm(searchLowerCodes, prepared, searchLowerCode) {
                  var targetLowerCodes = prepared._targetLowerCodes;
                  var searchLen = searchLowerCodes.length;
                  var targetLen = targetLowerCodes.length;
                  var searchI = 0; // where we at
    Severity: Major
    Found in lib/qunit.js - About 4 hrs to fix

      Function contextMenu has 101 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              contextMenu: function(o, callback) {
                  // Defaults
                  if( o.menu == undefined ) return false;
                  if( o.inSpeed == undefined ) o.inSpeed = 150;
                  if( o.outSpeed == undefined ) o.outSpeed = 75;
      Severity: Major
      Found in lib/contextmenu-abs/jquery.contextMenu-custom.js - About 4 hrs to fix

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

                    nodeSetStatus: function (ctx, status, message, details) {
                        var node = ctx.node,
                            tree = ctx.tree;
        
                        function _clearStatusNode() {
        Severity: Major
        Found in src/jquery.fancytree.js - About 3 hrs to fix

          Function onDragEvent has 96 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function onDragEvent(event) {
                  var json,
                      tree = this,
                      dndOpts = tree.options.dnd5,
                      node = FT.getNode(event),
          Severity: Major
          Found in src/jquery.fancytree.dnd5.js - About 3 hrs to fix

            Function Animation has 96 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function Animation( elem, properties, options ) {
                var result,
                    stopped,
                    index = 0,
                    length = Animation.prefilters.length,
            Severity: Major
            Found in lib/jquery.js - About 3 hrs to fix

              Function go has 96 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

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

                      finish: function finish() {
                        config.current = this; // Release the test callback to ensure that anything referenced has been
                        // released to be garbage collected.
                  
                        this.callback = undefined;
                Severity: Major
                Found in lib/qunit.js - About 3 hrs to fix

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

                          nodeRender: function (ctx, force, deep, collapsed, _recursive) {
                              var children,
                                  firstTr,
                                  i,
                                  l,
                  Severity: Major
                  Found in src/jquery.fancytree.table.js - About 3 hrs to fix

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

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

                      Function trigger has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          trigger: function( event, data, elem, onlyHandlers ) {
                      
                              var i, cur, tmp, bubbleType, ontype, handle, special, lastElement,
                                  eventPath = [ elem || document ],
                                  type = hasOwn.call( event, "type" ) ? event.type : event,
                      Severity: Major
                      Found in lib/jquery.js - About 3 hrs to fix

                        Function planize has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          jQuery.fn.planize = function(config) {
                        
                            var self          = jQuery(this);
                            var processed     = false;
                            var toc           = '';
                        Severity: Major
                        Found in lib/jquery.planize.js - About 3 hrs to fix

                          Function TestReport has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Function treeLoad has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        treeLoad: function (ctx, source) {
                                            var metaData,
                                                type,
                                                $ul,
                                                tree = ctx.tree,
                            Severity: Major
                            Found in src/jquery.fancytree.js - About 3 hrs to fix

                              Function nodeKeydown has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                          nodeKeydown: function (ctx) {
                                              // TODO: return promise?
                                              var matchNode,
                                                  stamp,
                                                  _res,
                              Severity: Major
                              Found in src/jquery.fancytree.js - About 3 hrs to fix

                                Function _loadKeyPathImpl has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        _loadKeyPathImpl: function (dfd, opts, parent, pathSegList) {
                                            var deferredList,
                                                i,
                                                key,
                                                node,
                                Severity: Major
                                Found in src/jquery.fancytree.js - About 3 hrs to fix

                                  Function diffCleanupMerge has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                        DiffMatchPatch.prototype.diffCleanupMerge = function (diffs) {
                                          var pointer, countDelete, countInsert, textInsert, textDelete, commonlength, changes, diffPointer, position;
                                          diffs.push([DIFF_EQUAL, '']); // Add a dummy entry at the end.
                                    
                                          pointer = 0;
                                  Severity: Major
                                  Found in lib/qunit.js - About 3 hrs to fix

                                    Function parseHtml has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                parseHtml: function ($ul) {
                                                    var classes,
                                                        className,
                                                        extraClasses,
                                                        i,
                                    Severity: Major
                                    Found in src/jquery.fancytree.js - About 3 hrs to fix

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

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

                                        Function _initDragAndDrop has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function _initDragAndDrop(tree) {
                                                var dnd = tree.options.dnd || null,
                                                    glyph = tree.options.glyph || null;
                                        
                                                // Register 'connectToFancytree' option with ui.draggable
                                        Severity: Major
                                        Found in src/jquery.fancytree.dnd.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language