mar10/fancytree

View on GitHub

Showing 460 of 700 total issues

Function activateCell has 84 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.ui.fancytree._FancytreeClass.prototype.activateCell = function (
        $td,
        orgEvent
    ) {
        var colIdx,
Severity: Major
Found in src/jquery.fancytree.ariagrid.js - About 3 hrs to fix

    Function moveTo has 82 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            moveTo: function (targetNode, mode, map) {
                if (mode === undefined || mode === "over") {
                    mode = "child";
                } else if (mode === "firstChild") {
                    if (targetNode.children && targetNode.children.length) {
    Severity: Major
    Found in src/jquery.fancytree.js - About 3 hrs to fix

      Function diffBisect has 82 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            DiffMatchPatch.prototype.diffBisect = function (text1, text2, deadline) {
              var text1Length, text2Length, maxD, vOffset, vLength, v1, v2, x, delta, front, k1start, k1end, k2start, k2end, k2Offset, k1Offset, x1, x2, y1, y2, d, k1, k2; // Cache the text lengths to prevent multiple calls.
        
              text1Length = text1.length;
              text2Length = text2.length;
      Severity: Major
      Found in lib/qunit.js - About 3 hrs to fix

        Function CHILD has 81 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                "CHILD": function( type, what, _argument, first, last ) {
                    var simple = type.slice( 0, 3 ) !== "nth",
                        forward = type.slice( -4 ) !== "last",
                        ofType = what === "of-type";
        
        
        Severity: Major
        Found in lib/jquery.js - About 3 hrs to fix

          Function Sizzle has 81 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function Sizzle( selector, context, results, seed ) {
              var m, i, elem, nid, match, groups, newSelector,
                  newContext = context && context.ownerDocument,
          
                  // nodeType defaults to 9, since context defaults to document
          Severity: Major
          Found in lib/jquery.js - About 3 hrs to fix

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

                    treeInit: function (ctx) {
                        var $tdFirst,
                            $ul,
                            tree = ctx.tree,
                            $table = tree.widget.element;
            Severity: Major
            Found in src/jquery.fancytree.columnview.js - About 3 hrs to fix

              Function widget has 77 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  $.widget = function( name, base, prototype ) {
                      var existingConstructor, constructor, basePrototype;
              
                      // ProxiedPrototype allows the provided prototype to remain unmodified
                      // so that it can be used as a mixin for multiple widgets (#8876)
              Severity: Major
              Found in src/jquery-ui-dependencies/jquery-ui-iife.js - About 3 hrs to fix

                Function widget has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                $.widget = $.widget || function( name, base, prototype ) {
                    var existingConstructor, constructor, basePrototype;
                
                    // ProxiedPrototype allows the provided prototype to remain unmodified
                    // so that it can be used as a mixin for multiple widgets (#8876)
                Severity: Major
                Found in src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js - About 3 hrs to fix

                  Function setViewport has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      $.ui.fancytree._FancytreeClass.prototype.setViewport = function (opts) {
                          if (typeof opts === "boolean") {
                              this.debug("setViewport( " + opts + ")");
                              return this.setViewport({ enabled: opts });
                          }
                  Severity: Major
                  Found in src/jquery.fancytree.grid.js - About 3 hrs to fix

                    Function send has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                send: function( headers, complete ) {
                                    var i,
                                        xhr = options.xhr();
                    
                                    xhr.open(
                    Severity: Major
                    Found in lib/jquery.js - About 3 hrs to fix

                      Function widget has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      $.widget = function( name, base, prototype ) {
                          var existingConstructor, constructor, basePrototype;
                      
                          // ProxiedPrototype allows the provided prototype to remain unmodified
                          // so that it can be used as a mixin for multiple widgets (#8876)
                      Severity: Major
                      Found in src/jquery-ui-dependencies/jquery-ui.js - About 3 hrs to fix

                        File taxonomy-browser-itis.js has 295 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*!
                         * Fancytree Taxonomy Browser
                         *
                         * Copyright (c) 2015, Martin Wendt (https://wwWendt.de)
                         *
                        Severity: Minor
                        Found in demo/taxonomy-browser/taxonomy-browser-itis.js - About 3 hrs to fix

                          Function nodeSetActive has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                      nodeSetActive: function (ctx, flag, callOpts) {
                                          // Handle user click / [space] / [enter], according to clickFolderMode.
                                          callOpts = callOpts || {};
                                          var subCtx,
                                              node = ctx.node,
                          Severity: Major
                          Found in src/jquery.fancytree.js - About 3 hrs to fix

                            Function _setDndStatus has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    _setDndStatus: function (
                                        sourceNode,
                                        targetNode,
                                        helper,
                                        hitMode,
                            Severity: Major
                            Found in src/jquery.fancytree.dnd.js - About 3 hrs to fix

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

                                      treeInit: function (ctx) {
                                          var tree = ctx.tree,
                                              treeOpts = ctx.options,
                                              opts = treeOpts.ariagrid;
                              
                              
                              Severity: Major
                              Found in src/jquery.fancytree.ariagrid.js - About 2 hrs to fix

                                Function editStart has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    $.ui.fancytree._FancytreeNodeClass.prototype.editStart = function () {
                                        var $input,
                                            node = this,
                                            tree = this.tree,
                                            local = tree.ext.edit,
                                Severity: Major
                                Found in src/jquery.fancytree.edit.js - About 2 hrs to fix

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

                                  /*!
                                   * jquery.fancytree.edit.js
                                   *
                                   * Make node titles editable.
                                   * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
                                  Severity: Minor
                                  Found in src/jquery.fancytree.edit.js - About 2 hrs to fix

                                    Function drag has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                drag: function (event, ui) {
                                                    var ctx,
                                                        isHelper,
                                                        logObject,
                                                        // 'draggable' was renamed to 'ui-draggable' since jQueryUI 1.10
                                    Severity: Major
                                    Found in src/jquery.fancytree.dnd.js - About 2 hrs to fix

                                      Function matcherFromGroupMatchers has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                                          var bySet = setMatchers.length > 0,
                                              byElement = elementMatchers.length > 0,
                                              superMatcher = function( seed, context, xml, results, outermost ) {
                                                  var elem, j, matcher,
                                      Severity: Major
                                      Found in lib/jquery.js - About 2 hrs to fix

                                        Function add has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            add: function( elem, types, handler, data, selector ) {
                                        
                                                var handleObjIn, eventHandle, tmp,
                                                    events, t, handleObj,
                                                    special, handlers, type, namespaces, origType,
                                        Severity: Major
                                        Found in lib/jquery.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language