CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method widget has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function widget($args, $instance) {

        if ( isset($instance['error']) && $instance['error'] )
            return;

Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/default-widgets.php - About 1 hr to fix

    Method apop has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function apop ($login,$pass) {
            //  Attempts an APOP login. If this fails, it'll
            //  try a standard login. YOUR SERVER MUST SUPPORT
            //  THE USE OF THE APOP COMMAND!
            //  (apop is optional per rfc1939)
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/class-pop3.php - About 1 hr to fix

      Method wp_default_styles has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function wp_default_styles( &$styles ) {
          // This checks to see if site_url() returns something and if it does not
          // then it assigns $guess_url to wp_guess_url(). Strange format, but it works.
          if ( ! $guessurl = site_url() )
              $guessurl = wp_guess_url();
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/script-loader.php - About 1 hr to fix

        Method wp_set_auth_cookie has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function wp_set_auth_cookie($user_id, $remember = false, $secure = '') {
            if ( $remember ) {
                $expiration = $expire = time() + apply_filters('auth_cookie_expiration', 1209600, $user_id, $remember);
            } else {
                $expiration = time() + apply_filters('auth_cookie_expiration', 172800, $user_id, $remember);
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/pluggable.php - About 1 hr to fix

          Method auth_redirect has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function auth_redirect() {
              // Checks if a user is logged in, if not redirects them to the login page
          
              if ( is_ssl() || force_ssl_admin() )
                  $secure = true;
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/pluggable.php - About 1 hr to fix

            Method do_item has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function do_item( $handle, $group = false ) {
                    if ( !parent::do_item($handle) )
                        return false;
            
                    if ( 0 === $group && $this->groups[$handle] > 0 ) {
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/class.wp-scripts.php - About 1 hr to fix

              Method methodSignature has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function methodSignature($method) {
                      if (!$this->hasMethod($method)) {
                          return new IXR_Error(-32601, 'server error. requested method "'.$method.'" not specified.');
                      }
                      // We should be returning an array of types
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/class-IXR.php - About 1 hr to fix

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

                      if(pointer[1] < (p[1]+this.options.scrollSensitivity)) speed[1] = pointer[1]-(p[1]+this.options.scrollSensitivity);
                Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js on lines 385..385
                Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js on lines 387..387
                Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js on lines 388..388

                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 63.

                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 4 locations. Consider refactoring.
                Open

                      if(pointer[1] > (p[3]-this.options.scrollSensitivity)) speed[1] = pointer[1]-(p[3]-this.options.scrollSensitivity);
                Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js on lines 385..385
                Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js on lines 386..386
                Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js on lines 387..387

                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 63.

                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 4 locations. Consider refactoring.
                Open

                      if(pointer[0] > (p[2]-this.options.scrollSensitivity)) speed[0] = pointer[0]-(p[2]-this.options.scrollSensitivity);
                Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js on lines 385..385
                Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js on lines 386..386
                Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js on lines 388..388

                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 63.

                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 3 locations. Consider refactoring.
                Open

                                Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
                Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery.color.dev.js on lines 19..19
                Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery.color.dev.js on lines 20..20

                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 63.

                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 3 locations. Consider refactoring.
                Open

                                Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
                Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery.color.dev.js on lines 18..18
                Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery.color.dev.js on lines 20..20

                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 63.

                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 3 locations. Consider refactoring.
                Open

                            workflow.state('playlist-edit').on( 'update', function( selection ) {
                                /**
                                 * @this wp.media.editor
                                 */
                                this.insert( wp.media.playlist.shortcode( selection ).string() );
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/js/media-editor.js and 2 other locations - About 1 hr to fix
                Web.Admin/2014/wordpress/wp-includes/js/media-editor.js on lines 765..770
                Web.Admin/2014/wordpress/wp-includes/js/media-editor.js on lines 779..784

                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 63.

                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 4 locations. Consider refactoring.
                Open

                      if(pointer[0] < (p[0]+this.options.scrollSensitivity)) speed[0] = pointer[0]-(p[0]+this.options.scrollSensitivity);
                Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js on lines 386..386
                Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js on lines 387..387
                Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js on lines 388..388

                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 63.

                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

                    afterUpdateInternal: function(effect) {
                      effect.element.down().setStyle({bottom:
                        (effect.dims[0] - effect.element.clientHeight) + 'px' });
                    },
                Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/effects.js on lines 699..702

                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 63.

                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 3 locations. Consider refactoring.
                Open

                            workflow.state('gallery-edit').on( 'update', function( selection ) {
                                /**
                                 * @this wp.media.editor
                                 */
                                this.insert( wp.media.gallery.shortcode( selection ).string() );
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/js/media-editor.js and 2 other locations - About 1 hr to fix
                Web.Admin/2014/wordpress/wp-includes/js/media-editor.js on lines 772..777
                Web.Admin/2014/wordpress/wp-includes/js/media-editor.js on lines 779..784

                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 63.

                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

                    afterUpdateInternal: function(effect) {
                      effect.element.down().setStyle({bottom:
                        (effect.dims[0] - effect.element.clientHeight) + 'px' }); 
                    },
                Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/effects.js on lines 727..730

                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 63.

                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 3 locations. Consider refactoring.
                Open

                                Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
                Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery.color.dev.js on lines 18..18
                Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery.color.dev.js on lines 19..19

                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 63.

                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

                                else {
                                    dw = round(sf >= df ? min(sw, dw) : dh*sf);
                                    dh = round(sf >= df ? dw/sf : min(sh, dh));
                                }
                Severity: Major
                Found in Web.Admin/z-scripts/FileAPI.js and 1 other location - About 1 hr to fix
                Web.Admin/z-scripts/FileAPI.js on lines 2063..2066

                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 63.

                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

                                else if( strategy == 'min' ){
                                    dw = round(sf < df ? min(sw, dw) : dh*sf);
                                    dh = round(sf < df ? dw/sf : min(sh, dh));
                                }
                Severity: Major
                Found in Web.Admin/z-scripts/FileAPI.js and 1 other location - About 1 hr to fix
                Web.Admin/z-scripts/FileAPI.js on lines 2067..2070

                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 63.

                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

                Severity
                Category
                Status
                Source
                Language