jacquev6/variadic

View on GitHub

Showing 201 of 201 total issues

Function attr has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    attr: function( elem, name, value ) {
        var ret, hooks,
            nType = elem.nodeType;

        // Don't get/set attributes on text, comment and attribute nodes
Severity: Minor
Found in docs/_static/jquery-3.2.1.js - About 1 hr to fix

    Function deleteComment has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function deleteComment(id) {
        $.ajax({
          type: 'POST',
          url: opts.deleteCommentURL,
          data: {id: id},
    Severity: Minor
    Found in docs/_static/websupport.js - About 1 hr to fix

      Function parseHTML has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      jQuery.parseHTML = function( data, context, keepScripts ) {
          if ( typeof data !== "string" ) {
              return [];
          }
          if ( typeof context === "boolean" ) {
      Severity: Minor
      Found in docs/_static/jquery-3.2.1.js - About 1 hr to fix

        Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            finish: function( type ) {
                if ( type !== false ) {
                    type = type || "fx";
                }
                return this.each( function() {
        Severity: Minor
        Found in docs/_static/jquery-3.2.1.js - About 1 hr to fix

          Function off has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              off: function( types, selector, fn ) {
                  var handleObj, type;
                  if ( types && types.preventDefault && types.handleObj ) {
          
                      // ( event )  dispatched jQuery.Event
          Severity: Minor
          Found in docs/_static/jquery-3.2.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.2.1.js - About 1 hr to fix

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

                function getComments(id) {
                  $.ajax({
                   type: 'GET',
                   url: opts.getCommentsURL,
                   data: {node: id},
              Severity: Minor
              Found in docs/_static/websupport.js - About 1 hr to fix

                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 = jQuery.contains( elem.ownerDocument, elem );
                
                
                Severity: Minor
                Found in docs/_static/jquery-3.2.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.2.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 ( jQuery.isFunction( value ) ) {
                    Severity: Minor
                    Found in docs/_static/jquery-3.2.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.2.1.js - About 1 hr to fix

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

                        function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
                            var i,
                                val = 0;
                        
                            // If we already have the right measurement, avoid augmentation
                        Severity: Minor
                        Found in docs/_static/jquery-3.2.1.js - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

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

                            Similar blocks of code found in 2 locations. Consider refactoring.
                            Open

                                    "even": createPositionalPseudo(function( matchIndexes, length ) {
                                        var i = 0;
                                        for ( ; i < length; i += 2 ) {
                                            matchIndexes.push( i );
                                        }
                            Severity: Minor
                            Found in docs/_static/jquery-3.2.1.js and 1 other location - About 55 mins to fix
                            docs/_static/jquery-3.2.1.js on lines 2129..2135

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 54.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 2 locations. Consider refactoring.
                            Open

                                    "odd": createPositionalPseudo(function( matchIndexes, length ) {
                                        var i = 1;
                                        for ( ; i < length; i += 2 ) {
                                            matchIndexes.push( i );
                                        }
                            Severity: Minor
                            Found in docs/_static/jquery-3.2.1.js and 1 other location - About 55 mins to fix
                            docs/_static/jquery-3.2.1.js on lines 2121..2127

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 54.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            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.2.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.2.1.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                } else if ( copy !== undefined ) {
                                                    target[ name ] = copy;
                                                }
                                Severity: Major
                                Found in docs/_static/jquery-3.2.1.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                              if ( !(unmatched[i] || setMatched[i]) ) {
                                                                  setMatched[i] = pop.call( results );
                                                              }
                                  Severity: Major
                                  Found in docs/_static/jquery-3.2.1.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if ( rscriptType.test( node.type || "" ) &&
                                                            !dataPriv.access( node, "globalEval" ) &&
                                                            jQuery.contains( doc, node ) ) {
                                    
                                                            if ( node.src ) {
                                    Severity: Major
                                    Found in docs/_static/jquery-3.2.1.js - About 45 mins to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language