angelakuo/citydogshare

View on GitHub
public/assets/jquery-ui/effect-fade-f35a73ad7f590045c5630e5594f66af72c79733e91e6bbe3e4cd67e9988daff7.js

Summary

Maintainability
F
4 days
Test Coverage

File effect-fade-f35a73ad7f590045c5630e5594f66af72c79733e91e6bbe3e4cd67e9988daff7.js has 1018 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery UI Effects 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors

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

        createWrapper: function( element ) {
    
            // if the element is already wrapped, return it
            if ( element.parent().is( ".ui-effects-wrapper" )) {
                return element.parent();

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

          parse: function( red, green, blue, alpha ) {
              if ( red === undefined ) {
                  this._rgba = [ null, null, null, null ];
                  return this;
              }

        Function animateClass has 50 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        $.effects.animateClass = function( value, duration, easing, callback ) {
            var o = $.speed( duration, easing, callback );
        
            return this.queue( function() {
                var animated = $( this ),

          Function hook has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          color.hook = function( hook ) {
              var hooks = hook.split( " " );
              each( hooks, function( i, hook ) {
                  jQuery.cssHooks[ hook ] = {
                      set: function( elem, value ) {

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

                effect: function( /* effect, options, speed, callback */ ) {
                    var args = _normalizeArguments.apply( this, arguments ),
                        mode = args.mode,
                        queue = args.queue,
                        effectMethod = $.effects.effect[ args.effect ];

              Function _normalizeArguments has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function _normalizeArguments( effect, options, speed, callback ) {
              
                  // allow passing all options as the first parameter
                  if ( $.isPlainObject( effect ) ) {
                      options = effect;

                Function to has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                spaces.hsla.to = function( rgba ) {
                    if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
                        return [ null, null, null, rgba[ 3 ] ];
                    }
                    var r = rgba[ 0 ] / 255,

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

                      transition: function( other, distance ) {
                          var end = color( other ),
                              spaceName = end._space(),
                              space = spaces[ spaceName ],
                              startColor = this.alpha() === 0 ? color( "transparent" ) : this,

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

                                set: function( elem, value ) {
                                    var parsed, curElem,
                                        backgroundColor = "";
                    
                                    if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {

                      Consider simplifying this complex logical expression.
                      Open

                                          if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
                                              curElem = hook === "backgroundColor" ? elem.parentNode : elem;
                                              while (
                                                  (backgroundColor === "" || backgroundColor === "transparent") &&
                                                  curElem && curElem.style

                        Function switchClass has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            switchClass: function( remove, add, speed, easing, callback) {

                          Avoid too many return statements within this function.
                          Open

                              return false;

                            There are no issues that match your filters.

                            Category
                            Status