CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method wp_list_comments has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function wp_list_comments($args = array(), $comments = null ) {
    global $wp_query, $comment_alt, $comment_depth, $comment_thread_alt, $overridden_cpage, $in_comment_loop;

    $in_comment_loop = true;

Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/comment-template.php - About 2 hrs to fix

    Method get_network_by_path has 64 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function get_network_by_path( $domain, $path, $segments = null ) {
        global $wpdb;
    
        $domains = $exact_domains = array( $domain );
        $pieces = explode( '.', $domain );
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/ms-load.php - About 2 hrs to fix

      File class-wp-theme-install-list-table.php has 273 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      /**
       * Theme Installer List Table class.
       *
       * @package WordPress

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

                        if (($scope.model.IsPOA && $scope.model.Home.POA > $scope.model.Away.POA)
                            || ($scope.model.IsScratch && $scope.model.Home.Score > $scope.model.Away.Score)) {
                            $scope.model.Home.Point = 3;
                            $scope.model.Away.Point = 0;
                        }
        Severity: Major
        Found in Web.Admin/AdminApp/Controllers/controller.scoreentry.js and 1 other location - About 2 hrs to fix
        Web.Admin/AdminApp/Controllers/controller.scoreentry.js on lines 191..199

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

        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

                        else if (($scope.model.IsPOA && $scope.model.Home.POA < $scope.model.Away.POA)
                            || ($scope.model.IsScratch && $scope.model.Home.Score < $scope.model.Away.Score)) {
                            $scope.model.Home.Point = 0;
                            $scope.model.Away.Point = 3;
                        }
        Severity: Major
        Found in Web.Admin/AdminApp/Controllers/controller.scoreentry.js and 1 other location - About 2 hrs to fix
        Web.Admin/AdminApp/Controllers/controller.scoreentry.js on lines 186..199

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

        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

        (function () {
            "use strict";
        
            var hotelsController = function (dataService, $timeout) {
                var vm = this;
        Severity: Major
        Found in Web.Admin/ClientApp/Controllers/controller.hotels.js and 1 other location - About 2 hrs to fix
        Web.Admin/ClientApp/Controllers/controller.centres.js on lines 1..13

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

        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

        (function () {
            "use strict";
        
            var centresController = function (dataService, $timeout) {
                var vm = this;
        Severity: Major
        Found in Web.Admin/ClientApp/Controllers/controller.centres.js and 1 other location - About 2 hrs to fix
        Web.Admin/ClientApp/Controllers/controller.hotels.js on lines 1..13

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

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

            if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) {
        
              // ----- Generate a local information
              $v_local_header = array();
              $this->privConvertHeader2FileInfo($p_entry, $v_local_header);
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php and 2 other locations - About 2 hrs to fix
        Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php on lines 4054..4081
        Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php on lines 4168..4194

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

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

            if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) {
        
              // ----- Generate a local information
              $v_local_header = array();
              $this->privConvertHeader2FileInfo($p_entry, $v_local_header);
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php and 2 other locations - About 2 hrs to fix
        Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php on lines 3688..3714
        Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php on lines 4054..4081

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

        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

            } elseif ( isset($_POST['save']) || isset($_POST['publish']) ) {
                $status = get_post_status( $post_ID );
        
                if ( isset( $_POST['publish'] ) ) {
                    switch ( $status ) {
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/post.php and 1 other location - About 2 hrs to fix
        Web.Admin/2014/wordpress/wp-admin/page.php on lines 36..55

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

        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(isset($content_struct["mt_allow_pings"])) {
                    if(!is_numeric($content_struct["mt_allow_pings"])) {
                        switch($content_struct["mt_allow_pings"]) {
                            case "closed":
                                $ping_status = "closed";
        Severity: Major
        Found in Web.Admin/2014/wordpress/xmlrpc.php and 1 other location - About 2 hrs to fix
        Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php on lines 4799..4825

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

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

            if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) {
        
              // ----- Generate a local information
              $v_local_header = array();
              $this->privConvertHeader2FileInfo($p_entry, $v_local_header);
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php and 2 other locations - About 2 hrs to fix
        Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php on lines 3688..3714
        Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php on lines 4168..4194

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

        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 ( isset($content_struct['mt_allow_pings']) ) {
                    if ( !is_numeric($content_struct['mt_allow_pings']) ) {
                        switch ( $content_struct['mt_allow_pings'] ) {
                            case 'closed':
                                $ping_status = 'closed';
        Web.Admin/2014/wordpress/xmlrpc.php on lines 2432..2459

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

        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

            } elseif ( isset($_POST['save']) || isset($_POST['publish']) ) {
                $status = get_post_status( $page_ID );
        
                if ( isset( $_POST['publish'] ) ) {
                    switch ( $status ) {
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/page.php and 1 other location - About 2 hrs to fix
        Web.Admin/2014/wordpress/wp-admin/post.php on lines 39..58

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

        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

        Function addPan has 63 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            addPan : function( img ) {
        
                if ( this._options.imageCrop === false ) {
                    return;
                }
        Severity: Major
        Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 2 hrs to fix

          Function _InternalLogging has 63 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  var _InternalLogging = (function () {
                      function _InternalLogging() {
                      }
                      _InternalLogging.throwInternalNonUserActionable = function (severity, message) {
                          if (this.enableDebugExceptions()) {
          Severity: Major
          Found in Web.Admin/z-scripts/ai.0.15.0-build46802.js - About 2 hrs to fix

            Function convertFakeListsToProperLists has 63 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        function convertFakeListsToProperLists(node) {
                            var currentListNode, prevListNode, lastLevel = 1;
            
                            function convertParagraphToLi(paragraphNode, listStartTextNode, listName, start) {
                                var level = paragraphNode._listLevel || lastLevel;

              Function addPan has 63 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  addPan : function( img ) {
              
                      if ( this._options.imageCrop === false ) {
                          return;
                      }
              Severity: Major
              Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 2 hrs to fix

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

                function display_themes($themes, $page = 1, $totalpages = 1) {
                    global $themes_allowedtags;
                
                    $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : '';
                    $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : '';
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-admin/includes/theme-install.php - About 2 hrs to fix

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

                      function display_rows() {
                          $themes = $this->items;
                  
                          foreach ( $themes as $theme ):
                              ?><div class="available-theme"><?php
                    Severity
                    Category
                    Status
                    Source
                    Language