CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Function show has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function show() {
        var parent = $('#wp-auth-check'),
            form = $('#wp-auth-check-form'),
            noframe = wrap.find('.wp-auth-fallback-expired'),
            frame, loaded = false;
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/js/wp-auth-check.js - About 1 hr to fix

    Function connect has 49 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function connect() {
                var ajaxData, heartbeatData;
    
                // If the connection to the server is slower than the interval,
                // heartbeat connects as soon as the previous connection's response is received.
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/js/heartbeat.js - About 1 hr to fix

      Function addTheme has 49 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      Galleria.addTheme = function( theme ) {
      
          // make sure we have a name
          if ( !theme.name ) {
              Galleria.raise('No theme name specified');
      Severity: Minor
      Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

        Method privReadCentralFileHeader has 49 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function privReadCentralFileHeader(&$p_header)
          {
            $v_result=1;
        
            // ----- Read the 4 bytes signature
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 hr to fix

          Method update_core has 49 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function update_core($from, $to) {
              global $wp_filesystem, $_old_files, $wpdb;
          
              @set_time_limit( 300 );
          
          
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/includes/update-core.php - About 1 hr to fix

            Method wp_read_image_metadata has 49 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function wp_read_image_metadata( $file ) {
                if ( !file_exists( $file ) )
                    return false;
            
                list(,,$sourceImageType) = getimagesize( $file );
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/includes/image.php - About 1 hr to fix

              Method mw_newMediaObject has 49 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function mw_newMediaObject($args) {
                      global $wpdb;
              
                      $blog_ID     = (int) $args[0];
                      $username  = $wpdb->escape($args[1]);
              Severity: Minor
              Found in Web.Admin/2014/wordpress/xmlrpc.php - About 1 hr to fix

                Method initialise_blog_option_info has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function initialise_blog_option_info( ) {
                        global $wp_version;
                
                        $this->blog_options = array(
                            // Read only options
                Severity: Minor
                Found in Web.Admin/2014/wordpress/xmlrpc.php - About 1 hr to fix

                  Method wp_editTerm has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function wp_editTerm( $args ) {
                          if ( ! $this->minimum_args( $args, 5 ) )
                              return $this->error;
                  
                          $this->escape( $args );
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix

                    Method readData has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function readData() {
                            $this->skipBits(8);
                            $this->skipBits(8);
                            $profile = $this->getBits(8);    //    read profile
                            $this->skipBits(16);
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio-video.flv.php - About 1 hr to fix

                      Method get_categories has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function get_categories()
                          {
                              $categories = array();
                      
                              foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'category') as $category)
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Source.php - About 1 hr to fix

                        Method get_categories has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function get_categories()
                            {
                                $categories = array();
                        
                                foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'category') as $category)
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php - About 1 hr to fix

                          Method wp_version_check has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function wp_version_check() {
                              if ( defined('WP_INSTALLING') )
                                  return;
                          
                              global $wp_version, $wpdb, $wp_local_package;
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/update.php - About 1 hr to fix

                            Method wp_update_plugins has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function wp_update_plugins() {
                                global $wp_version;
                            
                                if ( defined('WP_INSTALLING') )
                                    return false;
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/update.php - About 1 hr to fix

                              Method wp_widget_rss_form has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function wp_widget_rss_form( $args, $inputs = null ) {
                              
                                  $default_inputs = array( 'url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true );
                                  $inputs = wp_parse_args( $inputs, $default_inputs );
                                  extract( $args );
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/default-widgets.php - About 1 hr to fix

                                Method get_categories has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function get_categories()
                                    {
                                        $categories = array();
                                
                                        foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'category') as $category)
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 hr to fix

                                  Method get_categories has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function get_categories()
                                      {
                                          $categories = array();
                                  
                                          foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'category') as $category)
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 hr to fix

                                    Method get_categories has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function get_categories()
                                        {
                                            $categories = array();
                                    
                                            foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'category') as $category)
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 hr to fix

                                      Method Manage has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              [HttpPost]
                                              [ValidateAntiForgeryToken]
                                              public ActionResult Manage(LocalPasswordModel model)
                                              {
                                                  bool hasLocalAccount = OAuthWebSecurity.HasLocalAccount(WebSecurity.GetUserId(User.Identity.Name));
                                      Severity: Minor
                                      Found in Web.Admin/Controllers/AccountController.cs - About 1 hr to fix

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

                                                public void Handle(TournamentCreated e)
                                                {
                                                    if (Tournaments.ContainsValue(e.Year))
                                                    {
                                                        var tournament = Tournaments.SingleOrDefault(x => x.Value == e.Year);
                                        Severity: Major
                                        Found in ReadModels/ContingentPracticePlanQueries.cs and 3 other locations - About 1 hr to fix
                                        ReadModels/HighScoreQueries.cs on lines 73..88
                                        ReadModels/StandingQueries.cs on lines 94..109
                                        ReadModels/StatisticsQueries.cs on lines 78..93

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

                                        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