CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method redirect_post has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function redirect_post($post_ID = '') {
    global $action;

    $referredby = '';
    if ( !empty($_POST['referredby']) ) {
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-admin/post.php - About 1 hr to fix

    Method links2wp has 43 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function links2wp($links='')
        {
            // General Housekeeping
            global $wpdb;
            $count = 0;
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-admin/import/textpattern.php - About 1 hr to fix

      Method comments2wp has 43 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function comments2wp($comments='')
          {
              // General Housekeeping
              global $wpdb;
              $count = 0;
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-admin/import/textpattern.php - About 1 hr to fix

        Method list_core_update has 43 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function list_core_update( $update ) {
            global $wp_local_package;
            $version_string = ('en_US' == $update->locale && 'en_US' == get_locale() ) ?
                    $update->current : sprintf("%s&ndash;<strong>%s</strong>", $update->current, $update->locale);
            $current = false;
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-admin/update-core.php - About 1 hr to fix

          Method show_blog_form has 43 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
              $current_site = get_current_site();
              // Blog name
              if ( !is_subdomain_install() )
                  echo '<label for="blogname">' . __('Site Name:') . '</label>';
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-signup.php - About 1 hr to fix

            Method wp_editComment has 43 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function wp_editComment($args) {
                    $this->escape($args);
            
                    $blog_id    = (int) $args[0];
                    $username    = $args[1];
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix

              Method ParseVorbisPageHeader has 43 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function ParseVorbisPageHeader(&$filedata, &$filedataoffset, &$oggpageinfo) {
                      $info = &$this->getid3->info;
                      $info['audio']['dataformat'] = 'vorbis';
                      $info['audio']['lossless']   = false;
              
              
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.ogg.php - About 1 hr to fix

                Method set_iri has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function set_iri($iri)
                    {
                        static $cache;
                        if (!$cache)
                        {
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/IRI.php - About 1 hr to fix

                  Method wp_kses_attr has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function wp_kses_attr($element, $attr, $allowed_html, $allowed_protocols) {
                      # Is there a closing XHTML slash at the end of the attributes?
                  
                      $xhtml_slash = '';
                      if (preg_match('%\s/\s*$%', $attr))
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/kses.php - About 1 hr to fix

                    Method get_id has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function get_id($hash = false)
                        {
                            if (!$hash)
                            {
                                if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'id'))
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php - About 1 hr to fix

                      Method debug has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public static function debug(&$sp)
                          {
                              $info = 'SimplePie ' . SIMPLEPIE_VERSION . ' Build ' . SIMPLEPIE_BUILD . "\n";
                              $info .= 'PHP ' . PHP_VERSION . "\n";
                              if ($sp->error() !== null)
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php - About 1 hr to fix

                        Method request has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function request($url, $args = array()) {
                                $defaults = array(
                                    'method' => 'GET', 'timeout' => 5,
                                    'redirection' => 5, 'httpversion' => '1.0',
                                    'blocking' => true,
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/http.php - About 1 hr to fix

                          Method checkIPv6 has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function checkIPv6($ip)
                              {
                                  $ipPart = SimplePie_Net_IPv6::SplitV64($ip);
                                  $count = 0;
                                  if (!empty($ipPart[0]))
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 hr to fix

                            Method wp_initial_constants has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function wp_initial_constants() {
                                global $blog_id;
                            
                                // set memory limits
                                if ( !defined('WP_MEMORY_LIMIT') ) {
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/default-constants.php - About 1 hr to fix

                              Method walk has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function walk( $elements, $max_depth) {
                              
                                      $args = array_slice(func_get_args(), 2);
                                      $output = '';
                              
                              
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/class-wp-walker.php - About 1 hr to fix

                                Method walk has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function walk( $elements, $max_depth) {
                                
                                        $args = array_slice(func_get_args(), 2);
                                        $output = '';
                                
                                
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/classes.php - About 1 hr to fix

                                  Method Authenticate has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    function Authenticate($username, $password) {
                                      // Start authentication
                                      fputs($this->smtp_conn,"AUTH LOGIN" . $this->CRLF);
                                  
                                      $rply = $this->get_lines();
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/class-smtp.php - About 1 hr to fix

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

                                    using System.Reflection;
                                    using System.Runtime.CompilerServices;
                                    using System.Runtime.InteropServices;
                                    
                                    // General Information about an assembly is controlled through the following 
                                    Severity: Major
                                    Found in ReadModels/Properties/AssemblyInfo.cs and 9 other locations - About 1 hr to fix
                                    Aggregates/Properties/AssemblyInfo.cs on lines 1..37
                                    AzureTableHelper/Properties/AssemblyInfo.cs on lines 1..37
                                    Commands/Properties/AssemblyInfo.cs on lines 1..37
                                    Edument.CQRS/Properties/AssemblyInfo.cs on lines 1..37
                                    Events/Properties/AssemblyInfo.cs on lines 1..37
                                    Tests/Properties/AssemblyInfo.cs on lines 1..37
                                    UITests/Properties/AssemblyInfo.cs on lines 1..37
                                    UITestsFramework/Properties/AssemblyInfo.cs on lines 1..37
                                    Web.Admin/Properties/AssemblyInfo.cs on lines 1..36

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

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

                                    using System.Reflection;
                                    using System.Runtime.CompilerServices;
                                    using System.Runtime.InteropServices;
                                    
                                    // General Information about an assembly is controlled through the following 
                                    Severity: Major
                                    Found in Tests/Properties/AssemblyInfo.cs and 9 other locations - About 1 hr to fix
                                    Aggregates/Properties/AssemblyInfo.cs on lines 1..37
                                    AzureTableHelper/Properties/AssemblyInfo.cs on lines 1..37
                                    Commands/Properties/AssemblyInfo.cs on lines 1..37
                                    Edument.CQRS/Properties/AssemblyInfo.cs on lines 1..37
                                    Events/Properties/AssemblyInfo.cs on lines 1..37
                                    ReadModels/Properties/AssemblyInfo.cs on lines 1..37
                                    UITests/Properties/AssemblyInfo.cs on lines 1..37
                                    UITestsFramework/Properties/AssemblyInfo.cs on lines 1..37
                                    Web.Admin/Properties/AssemblyInfo.cs on lines 1..36

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

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

                                    using System.Reflection;
                                    using System.Runtime.CompilerServices;
                                    using System.Runtime.InteropServices;
                                    
                                    // General Information about an assembly is controlled through the following 
                                    Severity: Major
                                    Found in UITestsFramework/Properties/AssemblyInfo.cs and 9 other locations - About 1 hr to fix
                                    Aggregates/Properties/AssemblyInfo.cs on lines 1..37
                                    AzureTableHelper/Properties/AssemblyInfo.cs on lines 1..37
                                    Commands/Properties/AssemblyInfo.cs on lines 1..37
                                    Edument.CQRS/Properties/AssemblyInfo.cs on lines 1..37
                                    Events/Properties/AssemblyInfo.cs on lines 1..37
                                    ReadModels/Properties/AssemblyInfo.cs on lines 1..37
                                    Tests/Properties/AssemblyInfo.cs on lines 1..37
                                    UITests/Properties/AssemblyInfo.cs on lines 1..37
                                    Web.Admin/Properties/AssemblyInfo.cs on lines 1..36

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

                                    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