jacquev6/ActionTree

View on GitHub

Showing 171 of 197 total issues

Function clone has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    clone: function( elem, dataAndEvents, deepDataAndEvents ) {
        var i, l, srcElements, destElements,
            clone = elem.cloneNode( true ),
            inPage = isAttached( elem );

Severity: Minor
Found in docs/_static/jquery-3.5.1.js - About 1 hr to fix

    Function position has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        position: function() {
            if ( !this[ 0 ] ) {
                return;
            }
    
    
    Severity: Minor
    Found in docs/_static/jquery-3.5.1.js - About 1 hr to fix

      Function addClass has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          addClass: function( value ) {
              var classes, elem, cur, curValue, clazz, j, finalValue,
                  i = 0;
      
              if ( isFunction( value ) ) {
      Severity: Minor
      Found in docs/_static/jquery-3.5.1.js - About 1 hr to fix

        Function when has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            when: function( singleValue ) {
                var
        
                    // count of uncompleted subordinates
                    remaining = arguments.length,
        Severity: Minor
        Found in docs/_static/jquery-3.5.1.js - About 1 hr to fix

          Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function propFilter( props, specialEasing ) {
              var index, name, easing, value, hooks;
          
              // camelCase, specialEasing and expand cssHook pass
              for ( index in props ) {
          Severity: Minor
          Found in docs/_static/jquery-3.5.1.js - About 1 hr to fix

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

                remove: function( owner, key ) {
                    var i,
                        cache = owner[ this.expando ];
            
                    if ( cache === undefined ) {
            Severity: Minor
            Found in docs/_static/jquery-3.5.1.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                  if ( support.matchesSelector && documentIsHTML &&
                      !nonnativeSelectorCache[ expr + " " ] &&
                      ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                      ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
              
              
              Severity: Major
              Found in docs/_static/jquery-3.5.1.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                      if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
                          && !event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
                        switch (event.keyCode) {
                          case 37: // left
                            var prevHref = $('link[rel="prev"]').prop('href');
                Severity: Major
                Found in docs/_static/doctools.js - About 1 hr to fix

                  Function _cancel_action has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                  Open

                      def _cancel_action(self, action, now):
                          self.report.get_action_status(action)._set_cancel_time(now)
                          self.hooks.action_canceled(now, action)
                  
                          if action in self.pending:
                  Severity: Minor
                  Found in ActionTree/__init__.py - About 55 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                  Severity: Major
                  Found in docs/_static/jquery-3.5.1.js - About 50 mins to fix

                    Function on has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    function on( elem, types, selector, data, fn, one ) {
                    Severity: Minor
                    Found in docs/_static/jquery-3.5.1.js - About 45 mins to fix

                      Function setMatcher has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                      Severity: Minor
                      Found in docs/_static/jquery-3.5.1.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                            if ( !selector ) {
                                                push.apply( results, seed );
                                                return results;
                                            }
                        Severity: Major
                        Found in docs/_static/jquery-3.5.1.js - About 45 mins to fix

                          Function boxModelAdjustment has 6 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
                          Severity: Minor
                          Found in docs/_static/jquery-3.5.1.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if ( matchedSelectors[ sel ] === undefined ) {
                                                        matchedSelectors[ sel ] = handleObj.needsContext ?
                                                            jQuery( sel, this ).index( cur ) > -1 :
                                                            jQuery.find( sel, this, null, [ cur ] ).length;
                                                    }
                            Severity: Major
                            Found in docs/_static/jquery-3.5.1.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if ( matchedSelectors[ sel ] ) {
                                                          matchedHandlers.push( handleObj );
                                                      }
                              Severity: Major
                              Found in docs/_static/jquery-3.5.1.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        for ( match in context ) {
                                
                                                            // Properties of context are called as methods if possible
                                                            if ( isFunction( this[ match ] ) ) {
                                                                this[ match ]( context[ match ] );
                                Severity: Major
                                Found in docs/_static/jquery-3.5.1.js - About 45 mins to fix

                                  Function init has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      init: function( elem, options, prop, end, easing, unit ) {
                                  Severity: Minor
                                  Found in docs/_static/jquery-3.5.1.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            if ( ( event.result = ret ) === false ) {
                                                                event.preventDefault();
                                                                event.stopPropagation();
                                                            }
                                    Severity: Major
                                    Found in docs/_static/jquery-3.5.1.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                          if ( copyIsArray && !Array.isArray( src ) ) {
                                                              clone = [];
                                                          } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
                                                              clone = {};
                                                          } else {
                                      Severity: Major
                                      Found in docs/_static/jquery-3.5.1.js - About 45 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language