mar10/fancytree

View on GitHub

Showing 460 of 700 total issues

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

                                mightThrow = function() {
                                    var returned, then;

                                    // Support: Promises/A+ section 2.3.3.3.3
                                    // https://promisesaplus.com/#point-59
Severity: Minor
Found in lib/jquery.js - About 1 hr to fix

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

            _adjustColWidths: function () {
                if (this.options.fixed.adjustColWidths) {
                    this.options.fixed.adjustColWidths.call(this);
                    return;
                }
    Severity: Minor
    Found in src/jquery.fancytree.fixed.js - About 1 hr to fix

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

      function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
          var i = dimension === "width" ? 1 : 0,
              extra = 0,
              delta = 0;
      
      
      Severity: Minor
      Found in lib/jquery.js - About 1 hr to fix

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

                value: function throws(block, expected, message) {
                  var _validateExpectedExce = validateExpectedExceptionArgs(expected, message, 'throws');
          
                  var _validateExpectedExce2 = _slicedToArray(_validateExpectedExce, 2);
          
        Severity: Minor
        Found in lib/qunit.js - About 1 hr to fix

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

                      init: function(options) {
                          var opts = $.extend({}, defaultOptions, options),
                              hrefs = [],
                              $link = null,
                              initialChoice = undefined;
          Severity: Minor
          Found in lib/jquery.skinswitcher.js - About 1 hr to fix

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

                function createModule(name, testEnvironment, modifiers) {
                  var parentModule = moduleStack.length ? moduleStack.slice(-1)[0] : null;
                  var moduleName = parentModule !== null ? [parentModule.name, name].join(' > ') : name;
                  var parentSuite = parentModule ? parentModule.suiteReport : runSuite;
                  var skip = parentModule !== null && parentModule.skip || modifiers.skip;
            Severity: Minor
            Found in lib/qunit.js - About 1 hr to fix

              Function handler has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  handleObj.handler = function(event) {
                    //      Don't fire in text-accepting inputs that we didn't directly bind to
                    if (this !== event.target && (/textarea|select/i.test(event.target.nodeName) ||
                        (jQuery.hotkeys.options.filterTextInputs &&
                          jQuery.inArray(event.target.type, jQuery.hotkeys.textAcceptingInputTypes) > -1))) {
              Severity: Minor
              Found in 3rd-party/extensions/hotkeys/js/jquery.hotkeys.js - About 1 hr to fix

                Function getWidthOrHeight has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function getWidthOrHeight( elem, dimension, extra ) {
                
                    // Start with computed style
                    var styles = getStyles( elem ),
                
                
                Severity: Minor
                Found in lib/jquery.js - About 1 hr to fix

                  Function _adjustWrapperLayout has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          _adjustWrapperLayout: function () {
                              var $wrapper = this.$fixedWrapper,
                                  fcn = this.options.fixed.classNames,
                                  $topLeftWrapper = $wrapper.find("div." + fcn.topLeft),
                                  $topRightWrapper = $wrapper.find("div." + fcn.topRight),
                  Severity: Minor
                  Found in src/jquery.fancytree.fixed.js - About 1 hr to fix

                    Function diffCompute has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                          DiffMatchPatch.prototype.diffCompute = function (text1, text2, checklines, deadline) {
                            var diffs, longtext, shorttext, i, hm, text1A, text2A, text1B, text2B, midCommon, diffsA, diffsB;
                      
                            if (!text1) {
                              // Just add some text (speedup).
                    Severity: Minor
                    Found in lib/qunit.js - About 1 hr to fix

                      Function highlightCallback has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                  highlightCallback: function highlightCallback(result, cb) {
                                    if (result === null) return null;
                                    var target = result.target;
                                    var targetLen = target.length;
                                    var indexes = result.indexes;
                      Severity: Minor
                      Found in lib/qunit.js - About 1 hr to fix

                        Function _openMenu has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                _openMenu: function (ctx) {
                                    var data,
                                        tree = ctx.tree,
                                        opts = ctx.options,
                                        $menu = $(opts.menu.selector);
                        Severity: Minor
                        Found in src/jquery.fancytree.menu.js - About 1 hr to fix

                          Function _visitRowsUp has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  _visitRowsUp: function (fn, opts) {
                                      var children,
                                          idx,
                                          parent,
                                          includeHidden = !!opts.includeHidden,
                          Severity: Minor
                          Found in src/jquery.fancytree.js - About 1 hr to fix

                            Function top has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        top: function( position, data ) {
                                            var within = data.within,
                                                withinOffset = within.offset.top + within.scrollTop,
                                                outerHeight = within.height,
                                                offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
                            Severity: Minor
                            Found in src/jquery-ui-dependencies/jquery-ui-iife.js - About 1 hr to fix

                              Function _simpleDeepMerge has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function _simpleDeepMerge() {
                                      var options,
                                          name,
                                          src,
                                          copy,
                              Severity: Minor
                              Found in src/jquery.fancytree.js - About 1 hr to fix

                                Function _subclassObject has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function _subclassObject(tree, base, extension, extName) {
                                        // $.ui.fancytree.debug("_subclassObject", tree, base, extension, extName);
                                        for (var attrName in extension) {
                                            if (typeof extension[attrName] === "function") {
                                                if (typeof tree[attrName] === "function") {
                                Severity: Minor
                                Found in src/jquery.fancytree.js - About 1 hr to fix

                                  Function top has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          top: function( position, data ) {
                                              var within = data.within,
                                                  withinOffset = within.offset.top + within.scrollTop,
                                                  outerHeight = within.height,
                                                  offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
                                  Severity: Minor
                                  Found in src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js - About 1 hr to fix

                                    Function setOffset has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        setOffset: function( elem, options, i ) {
                                            var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                                                position = jQuery.css( elem, "position" ),
                                                curElem = jQuery( elem ),
                                                props = {};
                                    Severity: Minor
                                    Found in lib/jquery.js - About 1 hr to fix

                                      Function top has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              top: function( position, data ) {
                                                  var within = data.within,
                                                      withinOffset = within.offset.top + within.scrollTop,
                                                      outerHeight = within.height,
                                                      offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
                                      Severity: Minor
                                      Found in src/jquery-ui-dependencies/jquery-ui.js - About 1 hr to fix

                                        Function handlers has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            handlers: function( event, handlers ) {
                                                var i, handleObj, sel, matchedHandlers, matchedSelectors,
                                                    handlerQueue = [],
                                                    delegateCount = handlers.delegateCount,
                                                    cur = event.target;
                                        Severity: Minor
                                        Found in lib/jquery.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language