CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

File admin-bar.js has 280 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* jshint loopfunc: true */
// use jQuery and hoverIntent if loaded
if ( typeof(jQuery) != 'undefined' ) {
    if ( typeof(jQuery.fn.hoverIntent) == 'undefined' ) {
        /* jshint ignore:start */
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/js/admin-bar.js - About 2 hrs to fix

    Function onload has 68 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                imgPreloader.onload = function(){
                imgPreloader.onload = null;
    
                // Resizing large images - orginal by Christian Montoya edited by me.
                var pagesize = tb_getPageSize();
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/js/thickbox/thickbox.js - About 2 hrs to fix

      Function insertMedia has 68 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function insertMedia() {
          var fe, f = document.forms[0], h;
      
          tinyMCEPopup.restoreSelection();
      
      

        Function Grow has 68 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        Effect.Grow = function(element) {
          element = $(element);
          var options = Object.extend({
            direction: 'center',
            moveTransition: Effect.Transitions.sinoidal,
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/effects.js - About 2 hrs to fix

          Method _wp_dashboard_recent_comments_row has 68 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
              $GLOBALS['comment'] =& $comment;
          
              $comment_post_url = get_edit_post_link( $comment->comment_post_ID );
              $comment_post_title = strip_tags(get_the_title( $comment->comment_post_ID ));
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-admin/includes/dashboard.php - About 2 hrs to fix

            Method install_package has 68 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function install_package($args = array()) {
                    global $wp_filesystem;
                    $defaults = array( 'source' => '', 'destination' => '', //Please always pass these
                                    'clear_destination' => false, 'clear_working' => false,
                                    'hook_extra' => array());
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-admin/includes/class-wp-upgrader.php - About 2 hrs to fix

              Method list_plugin_updates has 68 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function list_plugin_updates() {
                  global $wp_version;
              
                  $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
              
              
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-admin/update-core.php - About 2 hrs to fix

                Method Analyze has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function Analyze() {
                        $info = &$this->getid3->info;
                
                        // http://www.volweb.cz/str/tags.htm
                
                
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.lyrics3.php - About 2 hrs to fix

                  Method QuicktimeIODSvideoProfileName has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function QuicktimeIODSvideoProfileName($video_profile_id) {
                          static $QuicktimeIODSvideoProfileNameLookup = array();
                          if (empty($QuicktimeIODSvideoProfileNameLookup)) {
                              $QuicktimeIODSvideoProfileNameLookup = array(
                                  0x00 => 'Reserved (0x00) Profile',

                    Method strip_tag has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        protected function strip_tag($tag, $document, $type)
                        {
                            $xpath = new DOMXPath($document);
                            $elements = $xpath->query('body//' . $tag);
                            if ($this->encode_instead_of_strip)
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Sanitize.php - About 2 hrs to fix

                      Method get_links has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function get_links($rel = 'alternate')
                          {
                              if (!isset($this->data['links']))
                              {
                                  $this->data['links'] = array();
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php - About 2 hrs to fix

                        Method get_links has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function get_links($rel = 'alternate')
                            {
                                if (!isset($this->data['links']))
                                {
                                    $this->data['links'] = array();
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

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

                                  return {
                                      updateVisible: updateVisible,
                                      update: update,
                                      release: release,
                                      refresh: refresh,
                          Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js on lines 85..85

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

                          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

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

                              if ( jQuery('form.type-form #media-items').children().length == 1 && jQuery('.hidden', '#media-items').length > 0 ) {
                                  jQuery('.toggle').toggle();
                                  jQuery('.slidetoggle').slideUp(200).siblings().removeClass('hidden');
                              }
                          Web.Admin/2014/wordpress/wp-includes/js/plupload/handlers.js on lines 240..243

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

                          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

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

                              if ( jQuery('form.type-form #media-items').children().length == 1 && jQuery('.hidden', '#media-items').length > 0 ) {
                                  jQuery('.toggle').toggle();
                                  jQuery('.slidetoggle').slideUp(200).siblings().removeClass('hidden');
                              }
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-includes/js/plupload/handlers.js and 1 other location - About 2 hrs to fix
                          Web.Admin/2014/wordpress/wp-includes/js/swfupload/handlers.dev.js on lines 157..160

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

                          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

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

                          $img_holder.append($track);disableHandles();return{updateVisible:updateVisible,update:update,release:release,refresh:refresh,setCursor:function(cursor){$track.css('cursor',cursor);},enableHandles:enableHandles,enableOnly:function(){seehandles=true;},showHandles:showHandles,disableHandles:disableHandles,animMode:animMode,done:done};}();var Tracker=function()
                          Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.dev.js on lines 623..635

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

                          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

                          File ScheduleBuilder.cs has 279 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          using Edument.CQRS;
                          using MBACNationals.ReadModels;
                          using MBACNationals.Scores.Commands;
                          using System;
                          using System.Collections.Generic;
                          Severity: Minor
                          Found in Aggregates/Admin/ScheduleBuilder.cs - About 2 hrs to fix

                            File revision.php has 279 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            /**
                             * Post revision functions.
                             *
                             * @package WordPress
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/revision.php - About 2 hrs to fix

                              File ContingentTravelPlanQueries.cs has 279 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              using Edument.CQRS;
                              using Events.Contingent;
                              using Events.Tournament;
                              using System;
                              using System.Collections.Generic;
                              Severity: Minor
                              Found in ReadModels/ContingentTravelPlanQueries.cs - About 2 hrs to fix

                                Function _parseData has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _parseData : function( callback ) {
                                
                                        var self = this,
                                            current,
                                            ready = false,
                                Severity: Major
                                Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 2 hrs to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language