mar10/fancytree

View on GitHub

Showing 460 of 700 total issues

Function clearFilter has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.ui.fancytree._FancytreeClass.prototype.clearFilter = function () {
        var $title,
            statusNode = this.getRootNode()._findDirectChild(KeyNoData),
            escapeTitles = this.options.escapeTitles,
            enhanceTitle = this.options.enhanceTitle,
Severity: Minor
Found in src/jquery.fancytree.filter.js - About 1 hr to fix

    Function select has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    select = Sizzle.select = function( selector, context, results, seed ) {
        var i, tokens, token, type, find,
            compiled = typeof selector === "function" && selector,
            match = !seed && tokenize( ( selector = compiled.selector || selector ) );
    
    
    Severity: Minor
    Found in lib/jquery.js - About 1 hr to fix

      Function matcherFromTokens has 48 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function matcherFromTokens( tokens ) {
          var checkContext, matcher, j,
              len = tokens.length,
              leadingRelative = Expr.relative[ tokens[ 0 ].type ],
              implicitRelative = leadingRelative || Expr.relative[ " " ],
      Severity: Minor
      Found in lib/jquery.js - About 1 hr to fix

        Function _classes has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                _classes: function( options ) {
                    var full = [];
                    var that = this;
        
                    options = $.extend( {
        Severity: Minor
        Found in src/jquery-ui-dependencies/jquery-ui-iife.js - About 1 hr to fix

          Function _classes has 47 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _classes: function( options ) {
                  var full = [];
                  var that = this;
          
                  options = $.extend( {
          Severity: Minor
          Found in src/jquery-ui-dependencies/jquery-ui.js - About 1 hr to fix

            Function keyHandler has 47 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function keyHandler(handleObj) {
                if (typeof handleObj.data === "string") {
                  handleObj.data = {
                    keys: handleObj.data
                  };
            Severity: Minor
            Found in 3rd-party/extensions/hotkeys/js/jquery.hotkeys.js - About 1 hr to fix

              Function _classes has 47 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _classes: function( options ) {
                      var full = [];
                      var that = this;
              
                      options = $.extend( {
              Severity: Minor
              Found in src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js - About 1 hr to fix

                Function initContextMenu has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    var initContextMenu = function (tree, selector, menu, actions) {
                        tree.$container.on("mousedown.contextMenu", function (event) {
                            var node = $.ui.fancytree.getNode(event);
                
                            if (node) {
                Severity: Minor
                Found in 3rd-party/extensions/contextmenu/js/jquery.fancytree.contextMenu.js - About 1 hr to fix

                  Function reRegister has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      $.ui.fancytree._FancytreeNodeClass.prototype.reRegister = function (
                          key,
                          refKey
                      ) {
                          key = key == null ? null : "" + key;
                  Severity: Minor
                  Found in src/jquery.fancytree.clones.js - About 1 hr to fix

                    Function addCombinator has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function addCombinator( matcher, combinator, base ) {
                        var dir = combinator.dir,
                            skip = combinator.next,
                            key = skip || dir,
                            checkNonElements = base && key === "parentNode",
                    Severity: Minor
                    Found in lib/jquery.js - About 1 hr to fix

                      Function initIframe has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function initIframe() {
                              var iframeWin,
                                  body = document.body;
                      
                              function onIframeLoad() {
                      Severity: Minor
                      Found in lib/qunit-composite.js - About 1 hr to fix

                        Function tokenize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
                            var matched, match, tokens, type,
                                soFar, groups, preFilters,
                                cached = tokenCache[ selector + " " ];
                        
                        
                        Severity: Minor
                        Found in lib/jquery.js - About 1 hr to fix

                          Function val has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              val: function( value ) {
                                  var hooks, ret, valueIsFunction,
                                      elem = this[ 0 ];
                          
                                  if ( !arguments.length ) {
                          Severity: Minor
                          Found in lib/jquery.js - About 1 hr to fix

                            Function done has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function done() {
                                  // We have reached the end of the processing queue and are about to emit the
                                  // "runEnd" event after which reporters typically stop listening and exit
                                  // the process. First, check if we need to emit one final test.
                                  if (config.stats.testCount === 0 && config.failOnZeroTests === true) {
                            Severity: Minor
                            Found in lib/qunit.js - About 1 hr to fix

                              Function initCodeSamples has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function initCodeSamples() {
                                      var info,
                                          $source = $("#sourceCode");
                              
                                      $("#codeExample").clickToggle(
                              Severity: Minor
                              Found in demo/sample.js - About 1 hr to fix

                                Function leverageNative has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function leverageNative( el, type, expectSync ) {
                                
                                    // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
                                    if ( !expectSync ) {
                                        if ( dataPriv.get( el, type ) === undefined ) {
                                Severity: Minor
                                Found in lib/jquery.js - About 1 hr to fix

                                  Function data has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      data: function( key, value ) {
                                          var i, name, data,
                                              elem = this[ 0 ],
                                              attrs = elem && elem.attributes;
                                  
                                  
                                  Severity: Minor
                                  Found in lib/jquery.js - About 1 hr to fix

                                    Function diffLineMode has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                          DiffMatchPatch.prototype.diffLineMode = function (text1, text2, deadline) {
                                            var a, diffs, linearray, pointer, countInsert, countDelete, textInsert, textDelete, j; // Scan the text on a line-by-line basis first.
                                      
                                            a = this.diffLinesToChars(text1, text2);
                                            text1 = a.chars1;
                                    Severity: Minor
                                    Found in lib/qunit.js - About 1 hr to fix

                                      Function renderCode has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              renderCode: 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: Minor
                                      Found in lib/jquery.configurator.js - About 1 hr to fix

                                        Function helper has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                                helper: function (event) {
                                                                    var $helper,
                                                                        $nodeTag,
                                                                        opts,
                                                                        sourceNode = $.ui.fancytree.getNode(
                                        Severity: Minor
                                        Found in src/jquery.fancytree.dnd.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language