creimers/cmsplugin_simpleslider

View on GitHub

Showing 244 of 619 total issues

Function Deferred has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    Deferred: function( func ) {
        var tuples = [
                // action, add listener, listener list, final state
                [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],

    Function CHILD has 59 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            "CHILD": function( type, what, argument, first, last ) {
                var simple = type.slice( 0, 3 ) !== "nth",
                    forward = type.slice( -4 ) !== "last",
                    ofType = what === "of-type";
    
    

      Function CHILD has 59 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              "CHILD": function( type, what, argument, first, last ) {
                  var simple = type.slice( 0, 3 ) !== "nth",
                      forward = type.slice( -4 ) !== "last",
                      ofType = what === "of-type";
      
      

        Function Deferred has 59 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            Deferred: function( func ) {
                var tuples = [
                        // action, add listener, listener list, final state
                        [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                        [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],

          Consider simplifying this complex logical expression.
          Open

                                  if ( forward && useCache ) {
                                      // Seek `elem` from a previously-cached index
                                      outerCache = parent[ expando ] || (parent[ expando ] = {});
                                      cache = outerCache[ type ] || [];
                                      nodeIndex = cache[0] === dirruns && cache[1];

            Consider simplifying this complex logical expression.
            Open

                                    if ( forward && useCache ) {
                                        // Seek `elem` from a previously-cached index
                                        outerCache = parent[ expando ] || (parent[ expando ] = {});
                                        cache = outerCache[ type ] || [];
                                        nodeIndex = cache[0] === dirruns && cache[1];

              Function domManip has 58 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  domManip: function( args, callback ) {
              
                      // Flatten any nested arrays
                      args = concat.apply( [], args );
              
              

                Function domManip has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    domManip: function( args, callback ) {
                
                        // Flatten any nested arrays
                        args = concat.apply( [], args );
                
                

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

                      init = jQuery.fn.init = function( selector, context ) {
                          var match, elem;
                  
                          // HANDLE: $(""), $(null), $(undefined), $(false)
                          if ( !selector ) {

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

                        init = jQuery.fn.init = function( selector, context ) {
                            var match, elem;
                    
                            // HANDLE: $(""), $(null), $(undefined), $(false)
                            if ( !selector ) {

                      Function ajaxConvert has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function ajaxConvert( s, response, jqXHR, isSuccess ) {
                          var conv2, current, conv, tmp, prev,
                              converters = {},
                              // Work with a copy of dataTypes in case we need to modify it for conversion
                              dataTypes = s.dataTypes.slice();

                        Function ajaxConvert has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function ajaxConvert( s, response, jqXHR, isSuccess ) {
                            var conv2, current, conv, tmp, prev,
                                converters = {},
                                // Work with a copy of dataTypes in case we need to modify it for conversion
                                dataTypes = s.dataTypes.slice();

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

                                      send: function( headers, complete ) {
                                          var i,
                                              xhr = options.xhr(),
                                              id = ++xhrId;
                          
                          

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

                                data: function( key, value ) {
                                    var i, name, data,
                                        elem = this[ 0 ],
                                        attrs = elem && elem.attributes;
                            
                            

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

                                          send: function( headers, complete ) {
                                              var i,
                                                  xhr = options.xhr(),
                                                  id = ++xhrId;
                              
                              

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

                                    data: function( key, value ) {
                                        var i, name, data,
                                            elem = this[ 0 ],
                                            attrs = elem && elem.attributes;
                                
                                

                                  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 ) ) {
                                                      handlers.splice( j, 1 );

                                    Function remove has 50 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,

                                      Function remove has 50 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,

                                        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 ) ) {
                                                            handlers.splice( j, 1 );
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language