CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

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

        $('#timestampdiv').siblings('a.edit-timestamp').click(function() {
            if ($('#timestampdiv').is(":hidden")) {
                $('#timestampdiv').slideDown("normal");
                $(this).hide();
            }
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/js/post.dev.js and 1 other location - About 2 hrs to fix
Web.Admin/2014/wordpress/wp-admin/js/post.dev.js on lines 495..501

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

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

        $('#post-status-select').siblings('a.edit-post-status').click(function() {
            if ($('#post-status-select').is(":hidden")) {
                $('#post-status-select').slideDown("normal");
                $(this).hide();
            }
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/js/post.dev.js and 1 other location - About 2 hrs to fix
Web.Admin/2014/wordpress/wp-admin/js/post.dev.js on lines 467..473

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

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 po.php has 258 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * Class for working with PO files
 *
 * @version $Id: po.php 283 2009-09-23 16:21:51Z nbachiyski $
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/pomo/po.php - About 2 hrs to fix

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

                if ($description_parent = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'description'))
                {
                    if (isset($description_parent[0]['data']))
                    {
                        $description_parent = $this->sanitize($description_parent[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 3 other locations - About 2 hrs to fix
    Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 1344..1357
    Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 1684..1697
    Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 4379..4392

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

    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 ($title_parent = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'title'))
                {
                    if (isset($title_parent[0]['data']))
                    {
                        $title_parent = $this->sanitize($title_parent[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 3 other locations - About 2 hrs to fix
    Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 1344..1357
    Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 1684..1697
    Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 4043..4056

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

    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

          if ($v_requested_options !== false) {
            for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) {
              // ----- Look for mandatory option
              if ($v_requested_options[$key] == 'mandatory') {
                // ----- Look if present
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php and 1 other location - About 2 hrs to fix
    Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php on lines 1794..1808

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

    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

        } elseif ( 'nonce' == $scheme ) {
            if ( defined('NONCE_KEY') && ('' != NONCE_KEY) && ( $wp_default_secret_key != NONCE_KEY) )
                $secret_key = NONCE_KEY;
    
            if ( defined('NONCE_SALT') ) {
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/pluggable.php and 2 other locations - About 2 hrs to fix
    Web.Admin/2014/wordpress/wp-includes/pluggable.php on lines 1315..1328
    Web.Admin/2014/wordpress/wp-includes/pluggable.php on lines 1328..1341

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

    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 ($description_parent = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'description'))
                {
                    if (isset($description_parent[0]['data']))
                    {
                        $description_parent = $this->sanitize($description_parent[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php and 3 other locations - About 2 hrs to fix
    Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 1684..1697
    Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 4043..4056
    Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 4379..4392

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

    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

        } elseif ( 'secure_auth' == $scheme ) {
            if ( defined('SECURE_AUTH_KEY') && ('' != SECURE_AUTH_KEY) && ( $wp_default_secret_key != SECURE_AUTH_KEY) )
                $secret_key = SECURE_AUTH_KEY;
    
            if ( defined('SECURE_AUTH_SALT') ) {
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/pluggable.php and 2 other locations - About 2 hrs to fix
    Web.Admin/2014/wordpress/wp-includes/pluggable.php on lines 1328..1341
    Web.Admin/2014/wordpress/wp-includes/pluggable.php on lines 1341..1354

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

    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

        } elseif ( 'logged_in' == $scheme ) {
            if ( defined('LOGGED_IN_KEY') && ('' != LOGGED_IN_KEY) && ( $wp_default_secret_key != LOGGED_IN_KEY) )
                $secret_key = LOGGED_IN_KEY;
    
            if ( defined('LOGGED_IN_SALT') ) {
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/pluggable.php and 2 other locations - About 2 hrs to fix
    Web.Admin/2014/wordpress/wp-includes/pluggable.php on lines 1315..1328
    Web.Admin/2014/wordpress/wp-includes/pluggable.php on lines 1341..1354

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

    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

        public static function iconv_fallback_utf16be_utf8($string) {
            if (substr($string, 0, 2) == "\xFE\xFF") {
                // strip BOM
                $string = substr($string, 2);
            }
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.lib.php and 1 other location - About 2 hrs to fix
    Web.Admin/2014/wordpress/wp-includes/ID3/getid3.lib.php on lines 877..888

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

    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 ($title_parent = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'title'))
                {
                    if (isset($title_parent[0]['data']))
                    {
                        $title_parent = $this->sanitize($title_parent[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php and 3 other locations - About 2 hrs to fix
    Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 1344..1357
    Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 4043..4056
    Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 4379..4392

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

    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

        public static function iconv_fallback_utf16le_utf8($string) {
            if (substr($string, 0, 2) == "\xFF\xFE") {
                // strip BOM
                $string = substr($string, 2);
            }
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.lib.php and 1 other location - About 2 hrs to fix
    Web.Admin/2014/wordpress/wp-includes/ID3/getid3.lib.php on lines 863..874

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

    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

        if ($v_requested_options !== false) {
          for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) {
            // ----- Look for mandatory option
            if ($v_requested_options[$key] == 'mandatory') {
              // ----- Look if present
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php and 1 other location - About 2 hrs to fix
    Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php on lines 1964..1975

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

    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

    getID3 has 21 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class getID3
    {
        // public: Settings
        public $encoding        = 'UTF-8';        // CASE SENSITIVE! - i.e. (must be supported by iconv()). Examples:  ISO-8859-1  UTF-8  UTF-16  UTF-16BE
        public $encoding_id3v1  = 'ISO-8859-1';   // Should always be 'ISO-8859-1', but some tags may be written in other encodings such as 'EUC-CN' or 'CP1252'
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.php - About 2 hrs to fix

      WP_Admin_Bar has 21 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class WP_Admin_Bar {
          private $nodes = array();
          private $bound = false;
          public $user;
      
      
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/class-wp-admin-bar.php - About 2 hrs to fix

        Class ParticipantAggregate has 21 methods (exceeds 20 allowed). Consider refactoring.
        Open

            public class ParticipantAggregate : Aggregate,
                IApplyEvent<ParticipantCreated>,
                IApplyEvent<ParticipantRenamed>,
                IApplyEvent<ParticipantAssignedToContingent>,
                IApplyEvent<ParticipantAssignedToTeam>,
        Severity: Minor
        Found in Aggregates/Participant/ParticipantAggregate.cs - About 2 hrs to fix

          SMTP has 21 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class SMTP
          {
            /**
             *  SMTP server port
             *  @var int
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/class-smtp.php - About 2 hrs to fix

            WP_Query has 21 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class WP_Query {
            
                /**
                 * Query string
                 *
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/query.php - About 2 hrs to fix

              Function link has 54 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      link: function (scope, element, attr) {
                          // again we need the native object
                          var el = element[0];
              
                          el.addEventListener(
              Severity: Major
              Found in Web.Admin/AdminApp/Directives/directive.droppable.js - About 2 hrs to fix
                Severity
                Category
                Status
                Source
                Language