mar10/fancytree

View on GitHub

Showing 460 of 700 total issues

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

    mouseEvent: function( type, options ) {
        var event, eventDoc, doc, body;
        options = $.extend({
            bubbles: true,
            cancelable: (type !== "mousemove"),
Severity: Major
Found in lib/jquery.simulate.js - About 2 hrs to fix

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

          DiffMatchPatch.prototype.diffHalfMatch = function (text1, text2) {
            var longtext, shorttext, dmp, text1A, text2B, text2A, text1B, midCommon, hm1, hm2, hm;
            longtext = text1.length > text2.length ? text1 : text2;
            shorttext = text1.length > text2.length ? text2 : text1;
      
    Severity: Major
    Found in lib/qunit.js - About 2 hrs to fix

      Function nodeSetSelected has 52 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  nodeSetSelected: function (ctx, flag, callOpts) {
                      callOpts = callOpts || {};
                      var node = ctx.node,
                          tree = ctx.tree,
                          opts = ctx.options,
      Severity: Major
      Found in src/jquery.fancytree.js - About 2 hrs to fix

        Function remove has 52 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            remove: function( elem, types, handler, selector, mappedTypes ) {
        
                var j, origCount, tmp,
                    events, t, handleObj,
                    special, handlers, type, namespaces, origType,
        Severity: Major
        Found in lib/jquery.js - About 2 hrs to fix

          Function _renderOptions has 52 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  _renderOptions: function(){
                      var plugin = $(this.element).data("ui-" + this.options.pluginName) || $(this.element).data(this.options.pluginName),
                          opts = this.options,
                          actualOpts = plugin.options,
                          availOptList = opts.optionList,
          Severity: Major
          Found in lib/jquery.configurator.js - About 2 hrs to fix

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

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

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

                          init: function (options) {
                              var i,
                                  opts = $.extend({}, defaultOptions, options),
                                  hrefs = [],
                                  $link = null,
              Severity: Major
              Found in demo/sample.js - About 2 hrs to fix

                Function buildFragment has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function buildFragment( elems, context, scripts, selection, ignored ) {
                    var elem, tmp, tag, wrap, attached, j,
                        fragment = context.createDocumentFragment(),
                        nodes = [],
                        i = 0,
                Severity: Major
                Found in lib/jquery.js - About 2 hrs to fix

                  Function name has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          $.fn[ name ] = function( options ) {
                              var isMethodCall = typeof options === "string";
                              var args = widgetSlice.call( arguments, 1 );
                              var returnValue = this;
                  
                  
                  Severity: Minor
                  Found in src/jquery-ui-dependencies/jquery-ui-iife.js - About 2 hrs to fix

                    Function name has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        $.fn[ name ] = function( options ) {
                            var isMethodCall = typeof options === "string";
                            var args = widgetSlice.call( arguments, 1 );
                            var returnValue = this;
                    
                    
                    Severity: Minor
                    Found in src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js - About 2 hrs to fix

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

                              treeCreate: function (ctx) {
                                  var tree = ctx.tree,
                                      opts = ctx.options;
                      
                                  if (
                      Severity: Minor
                      Found in src/jquery.fancytree.logger.js - About 2 hrs to fix

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

                            function updateBreadcrumb(tsn, loadTreeNodes) {
                                // var $ol = $("ol.breadcrumb").text("...");
                                var $ol = $("ol.breadcrumb").addClass("busy");
                                _callItis("getFullHierarchyFromTSN", {
                                    tsn: tsn,
                        Severity: Minor
                        Found in demo/taxonomy-browser/taxonomy-browser-itis.js - About 2 hrs to fix

                          Consider simplifying this complex logical expression.
                          Open

                                          if ( ( mappedTypes || origType === handleObj.origType ) &&
                                              ( !handler || handler.guid === handleObj.guid ) &&
                                              ( !tmp || tmp.test( handleObj.namespace ) ) &&
                                              ( !selector || selector === handleObj.selector ||
                                                  selector === "**" && handleObj.selector ) ) {
                          Severity: Critical
                          Found in lib/jquery.js - About 2 hrs to fix

                            Function name has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                $.fn[ name ] = function( options ) {
                                    var isMethodCall = typeof options === "string";
                                    var args = widgetSlice.call( arguments, 1 );
                                    var returnValue = this;
                            
                            
                            Severity: Minor
                            Found in src/jquery-ui-dependencies/jquery-ui.js - About 2 hrs to fix

                              Function internalStop has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                    internalStop: function internalStop() {
                                      var requiredCalls = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
                                      config.blocking = true;
                                      var test = this;
                                      var pauseId = this.nextPauseId++;
                              Severity: Minor
                              Found in lib/qunit.js - About 2 hrs to fix

                                Function toolbarChanged has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                      function toolbarChanged() {
                                        var field = this;
                                        var params = {}; // Detect if field is a select menu or a checkbox
                                  
                                        var value;
                                Severity: Minor
                                Found in lib/qunit.js - About 2 hrs to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                  if(jQuery)( function() {
                                  
                                      /* Check browser version, since $.browser was removed in jQuery 1.9 */
                                      function _checkBrowser(){
                                          var matched, browser;
                                  Severity: Critical
                                  Found in lib/contextmenu-abs/jquery.contextMenu-custom.js - About 2 hrs to fix

                                    Function addChildren has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            addChildren: function (children, insertBefore) {
                                                var i,
                                                    l,
                                                    pos,
                                                    origFirstChild = this.getFirstChild(),
                                    Severity: Minor
                                    Found in src/jquery.fancytree.js - About 1 hr to fix

                                      Function diffCleanupEfficiency has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                            DiffMatchPatch.prototype.diffCleanupEfficiency = function (diffs) {
                                              var changes, equalities, equalitiesLength, lastequality, pointer, preIns, preDel, postIns, postDel;
                                              changes = false;
                                              equalities = []; // Stack of indices where equalities are found.
                                        
                                      Severity: Minor
                                      Found in lib/qunit.js - About 1 hr to fix

                                        Function _createForOfIteratorHelper has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function _createForOfIteratorHelper(o, allowArrayLike) {
                                              var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
                                          
                                              if (!it) {
                                                if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
                                        Severity: Minor
                                        Found in lib/qunit.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language