CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method render_screen_options has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function render_screen_options() {
        global $wp_meta_boxes, $wp_list_table;

        $columns = get_column_headers( $this );
        $hidden  = get_hidden_columns( $this );
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/includes/screen.php - About 2 hrs to fix

    Method wp_dashboard_quick_press has 63 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function wp_dashboard_quick_press() {
        $drafts = false;
        if ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['action'] ) && 0 === strpos( $_POST['action'], 'post-quickpress' ) && (int) $_POST['post_ID'] ) {
            $view = get_permalink( $_POST['post_ID'] );
            $edit = esc_url( get_edit_post_link( $_POST['post_ID'] ) );
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-admin/includes/dashboard.php - About 2 hrs to fix

      Method display_rows has 63 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function display_rows() {
              $plugins_allowedtags = array(
                  'a' => array( 'href' => array(),'title' => array(), 'target' => array() ),
                  'abbr' => array( 'title' => array() ),'acronym' => array( 'title' => array() ),
                  'code' => array(), 'pre' => array(), 'em' => array(),'strong' => array(),

        Method WrapText has 63 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function WrapText($message, $length, $qp_mode = false) {
            $soft_break = ($qp_mode) ? sprintf(" =%s", $this->LE) : $this->LE;
            // If utf-8 encoding is used, we will need to make sure we don't
            // split multibyte characters when we wrap
            $is_utf8 = (strtolower($this->CharSet) == "utf-8");
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/class-phpmailer.php - About 2 hrs to fix

          File class-wp-ms-themes-list-table.php has 271 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          /**
           * MS Themes List Table class.
           *
           * @package WordPress

            Base has 23 functions (exceeds 20 allowed). Consider refactoring.
            Open

            Autocompleter.Base = Class.create({
              baseInitialize: function(element, update, options) {
                element          = $(element)
                this.element     = element; 
                this.update      = $(update);  
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/controls.js - About 2 hrs to fix

              Textpattern_Import has 23 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class Textpattern_Import {
              
                  function header()
                  {
                      echo '<div class="wrap">';
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-admin/import/textpattern.php - About 2 hrs to fix

                Dotclear_Import has 23 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class Dotclear_Import {
                
                    function header()
                    {
                        echo '<div class="wrap">';
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/import/dotclear.php - About 2 hrs to fix

                  SimplePie_Source has 23 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class SimplePie_Source
                  {
                      var $item;
                      var $data = array();
                      protected $registry;
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Source.php - About 2 hrs to fix

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

                    Object.extend(Enumerable, {
                      map:     Enumerable.collect,
                      find:    Enumerable.detect,
                      select:  Enumerable.findAll,
                      filter:  Enumerable.findAll,
                    Web.Admin/2014/wordpress/wp-includes/js/prototype.js on lines 795..804

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

                    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

                                    new media.controller.Library({
                                        id:         'gallery',
                                        title:      l10n.createGalleryTitle,
                                        priority:   40,
                                        toolbar:    'main-gallery',
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/js/media-views.js and 2 other locations - About 2 hrs to fix
                    Web.Admin/2014/wordpress/wp-includes/js/media-views.js on lines 2123..2135
                    Web.Admin/2014/wordpress/wp-includes/js/media-views.js on lines 2156..2168

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

                    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

                    Object.extend(Enumerable, {
                      map:     Enumerable.collect,
                      find:    Enumerable.detect,
                      select:  Enumerable.findAll,
                      filter:  Enumerable.findAll,
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js and 1 other location - About 2 hrs to fix
                    Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js on lines 795..804

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

                    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

                                    new media.controller.Library({
                                        id:         'playlist',
                                        title:      l10n.createPlaylistTitle,
                                        priority:   60,
                                        toolbar:    'main-playlist',
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/js/media-views.js and 2 other locations - About 2 hrs to fix
                    Web.Admin/2014/wordpress/wp-includes/js/media-views.js on lines 2095..2107
                    Web.Admin/2014/wordpress/wp-includes/js/media-views.js on lines 2156..2168

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

                    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

                                    new media.controller.Library({
                                        id:         'video-playlist',
                                        title:      l10n.createVideoPlaylistTitle,
                                        priority:   60,
                                        toolbar:    'main-video-playlist',
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/js/media-views.js and 2 other locations - About 2 hrs to fix
                    Web.Admin/2014/wordpress/wp-includes/js/media-views.js on lines 2095..2107
                    Web.Admin/2014/wordpress/wp-includes/js/media-views.js on lines 2123..2135

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

                    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 (!edCheckOpenTags(i) || edButtons[i].tagEnd == '') {
                                    sel.text = edButtons[i].tagStart;
                                    edAddTag(i);
                                }
                                else {
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/js/quicktags.dev.js and 1 other location - About 2 hrs to fix
                    Web.Admin/2014/wordpress/wp-includes/js/quicktags.dev.js on lines 322..329

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

                    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 (!edCheckOpenTags(i) || edButtons[i].tagEnd == '') {
                                myField.value += edButtons[i].tagStart;
                                edAddTag(i);
                            }
                            else {
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/js/quicktags.dev.js and 1 other location - About 2 hrs to fix
                    Web.Admin/2014/wordpress/wp-includes/js/quicktags.dev.js on lines 277..284

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

                    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

                      getTeamScores(id: string): Observable<TeamResult> {
                        const params = new HttpParams()
                          .set('teamId', id);
                    
                        return this.http
                    Severity: Major
                    Found in Website/src/app/services/results.service.ts and 2 other locations - About 2 hrs to fix
                    Website/src/app/services/results.service.ts on lines 25..31
                    Website/src/app/services/results.service.ts on lines 41..47

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

                    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

                      getMatch(id: string): Observable<MatchResult> {
                        const params = new HttpParams()
                          .set('matchId', id);
                    
                        return this.http
                    Severity: Major
                    Found in Website/src/app/services/results.service.ts and 2 other locations - About 2 hrs to fix
                    Website/src/app/services/results.service.ts on lines 33..39
                    Website/src/app/services/results.service.ts on lines 41..47

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

                    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

                      getBowlerScores(id: string): Observable<BowlerResult> {
                        const params = new HttpParams()
                          .set('participantId', id);
                    
                        return this.http
                    Severity: Major
                    Found in Website/src/app/services/results.service.ts and 2 other locations - About 2 hrs to fix
                    Website/src/app/services/results.service.ts on lines 25..31
                    Website/src/app/services/results.service.ts on lines 33..39

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

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

                        function wp_getPageStatusList( $args ) {
                            $this->escape( $args );
                    
                            $blog_id    = (int) $args[0];
                            $username    = $args[1];
                    Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php on lines 3284..3301
                    Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php on lines 3345..3362
                    Web.Admin/2014/wordpress/xmlrpc.php on lines 1352..1369
                    Web.Admin/2014/wordpress/xmlrpc.php on lines 1414..1432
                    Web.Admin/2014/wordpress/xmlrpc.php on lines 1442..1460

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

                    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