CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

File angular-ui-router.js has 1710 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * State-based routing for AngularJS
 * @version v0.2.15
 * @link http://angular-ui.github.com/
 * @license MIT License, http://www.opensource.org/licenses/MIT
Severity: Major
Found in Web.Admin/z-scripts/angular-ui-router.js - About 4 days to fix

    Method ParseID3v2Frame has 923 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function ParseID3v2Frame(&$parsedFrame) {
    
            // shortcuts
            $info = &$this->getid3->info;
            $id3v2_majorversion = $info['id3v2']['majorversion'];
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.id3v2.php - About 4 days to fix

      Method Analyze has 917 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function Analyze() {
              $info = &$this->getid3->info;
      
              // Shortcuts
              $thisfile_audio = &$info['audio'];
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio-video.asf.php - About 4 days to fix

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

        var Position = {
          // set to true if needed, warning: firefox performance problems
          // NOT neeeded for page scrolling, only if draggable contained in
          // scrollable elements
          includeScrollOffsets: false,
        Web.Admin/2014/wordpress/wp-includes/js/prototype.js on lines 4027..4110

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

        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

        var Position = {
          // set to true if needed, warning: firefox performance problems
          // NOT neeeded for page scrolling, only if draggable contained in
          // scrollable elements
          includeScrollOffsets: false,
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js and 1 other location - About 4 days to fix
        Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js on lines 4027..4110

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

        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

        (function( $, window ) {
        
        /*global jQuery, Galleria, window */
        
        Galleria.requires(1.25, 'The History Plugin requires Galleria version 1.2.5 or later.');
        Severity: Major
        Found in Web.Admin/2015/js/galleria/plugins/history/galleria.history.js and 1 other location - About 4 days to fix
        Web.Admin/Content/galleria/plugins/history/galleria.history.js on lines 10..145

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

        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

        (function( $, window ) {
        
        /*global jQuery, Galleria, window */
        
        Galleria.requires(1.25, 'The History Plugin requires Galleria version 1.2.5 or later.');
        Severity: Major
        Found in Web.Admin/Content/galleria/plugins/history/galleria.history.js and 1 other location - About 4 days to fix
        Web.Admin/2015/js/galleria/plugins/history/galleria.history.js on lines 10..145

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

        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 QuicktimeParseAtom has a Cognitive Complexity of 216 (exceeds 5 allowed). Consider refactoring.
        Open

            public function QuicktimeParseAtom($atomname, $atomsize, $atom_data, $baseoffset, &$atomHierarchy, $ParseAllPossibleAtoms) {
                // http://developer.apple.com/techpubs/quicktime/qtdevdocs/APIREF/INDEX/atomalphaindex.htm
        
                $info = &$this->getid3->info;
        
        

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

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

                public static void TeachingMen(ICommandQueries commandQueries, MessageDispatcher dispatcher)
                {
                    var division = "Teaching Men";
                    var isPoa = true;
                    var game = 0;
        Severity: Major
        Found in Aggregates/Admin/ScheduleBuilder.cs and 6 other locations - About 4 days to fix
        Aggregates/Admin/ScheduleBuilder.cs on lines 38..74
        Aggregates/Admin/ScheduleBuilder.cs on lines 76..112
        Aggregates/Admin/ScheduleBuilder.cs on lines 114..150
        Aggregates/Admin/ScheduleBuilder.cs on lines 152..188
        Aggregates/Admin/ScheduleBuilder.cs on lines 228..264
        Aggregates/Admin/ScheduleBuilder.cs on lines 266..302

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

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

                public static void TeachingLadies(ICommandQueries commandQueries, MessageDispatcher dispatcher)
                {
                    var division = "Teaching Ladies";
                    var isPoa = true;
                    var game = 0;
        Severity: Major
        Found in Aggregates/Admin/ScheduleBuilder.cs and 6 other locations - About 4 days to fix
        Aggregates/Admin/ScheduleBuilder.cs on lines 38..74
        Aggregates/Admin/ScheduleBuilder.cs on lines 76..112
        Aggregates/Admin/ScheduleBuilder.cs on lines 114..150
        Aggregates/Admin/ScheduleBuilder.cs on lines 152..188
        Aggregates/Admin/ScheduleBuilder.cs on lines 190..226
        Aggregates/Admin/ScheduleBuilder.cs on lines 266..302

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

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

                public static void TournamentLadies(ICommandQueries commandQueries, MessageDispatcher dispatcher)
                {
                    var division = "Tournament Ladies";
                    var isPoa = false;
                    var game = 0;
        Severity: Major
        Found in Aggregates/Admin/ScheduleBuilder.cs and 6 other locations - About 4 days to fix
        Aggregates/Admin/ScheduleBuilder.cs on lines 38..74
        Aggregates/Admin/ScheduleBuilder.cs on lines 76..112
        Aggregates/Admin/ScheduleBuilder.cs on lines 114..150
        Aggregates/Admin/ScheduleBuilder.cs on lines 190..226
        Aggregates/Admin/ScheduleBuilder.cs on lines 228..264
        Aggregates/Admin/ScheduleBuilder.cs on lines 266..302

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

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

                public static void TournamentMen(ICommandQueries commandQueries, MessageDispatcher dispatcher)
                {
                    var division = "Tournament Men";
                    var isPoa = false;
                    var game = 0;
        Severity: Major
        Found in Aggregates/Admin/ScheduleBuilder.cs and 6 other locations - About 4 days to fix
        Aggregates/Admin/ScheduleBuilder.cs on lines 38..74
        Aggregates/Admin/ScheduleBuilder.cs on lines 76..112
        Aggregates/Admin/ScheduleBuilder.cs on lines 152..188
        Aggregates/Admin/ScheduleBuilder.cs on lines 190..226
        Aggregates/Admin/ScheduleBuilder.cs on lines 228..264
        Aggregates/Admin/ScheduleBuilder.cs on lines 266..302

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

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

                public static void TournamentLadiesSingle(ICommandQueries commandQueries, MessageDispatcher dispatcher)
                {
                    var division = "Tournament Ladies Single";
                    var isPoa = false;
                    var game = 0;
        Severity: Major
        Found in Aggregates/Admin/ScheduleBuilder.cs and 6 other locations - About 4 days to fix
        Aggregates/Admin/ScheduleBuilder.cs on lines 38..74
        Aggregates/Admin/ScheduleBuilder.cs on lines 114..150
        Aggregates/Admin/ScheduleBuilder.cs on lines 152..188
        Aggregates/Admin/ScheduleBuilder.cs on lines 190..226
        Aggregates/Admin/ScheduleBuilder.cs on lines 228..264
        Aggregates/Admin/ScheduleBuilder.cs on lines 266..302

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

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

                public static void TournamentMenSingle(ICommandQueries commandQueries, MessageDispatcher dispatcher)
                {
                    var division = "Tournament Men Single";
                    var isPoa = false;
                    var game = 0;
        Severity: Major
        Found in Aggregates/Admin/ScheduleBuilder.cs and 6 other locations - About 4 days to fix
        Aggregates/Admin/ScheduleBuilder.cs on lines 76..112
        Aggregates/Admin/ScheduleBuilder.cs on lines 114..150
        Aggregates/Admin/ScheduleBuilder.cs on lines 152..188
        Aggregates/Admin/ScheduleBuilder.cs on lines 190..226
        Aggregates/Admin/ScheduleBuilder.cs on lines 228..264
        Aggregates/Admin/ScheduleBuilder.cs on lines 266..302

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

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

                public static void Seniors(ICommandQueries commandQueries, MessageDispatcher dispatcher)
                {
                    var division = "Seniors";
                    var isPoa = true;
                    var game = 0;
        Severity: Major
        Found in Aggregates/Admin/ScheduleBuilder.cs and 6 other locations - About 4 days to fix
        Aggregates/Admin/ScheduleBuilder.cs on lines 38..74
        Aggregates/Admin/ScheduleBuilder.cs on lines 76..112
        Aggregates/Admin/ScheduleBuilder.cs on lines 114..150
        Aggregates/Admin/ScheduleBuilder.cs on lines 152..188
        Aggregates/Admin/ScheduleBuilder.cs on lines 190..226
        Aggregates/Admin/ScheduleBuilder.cs on lines 228..264

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

        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 bootstrap.js has 1587 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*!
         * Bootstrap v3.3.6 (http://getbootstrap.com)
         * Copyright 2011-2015 Twitter, Inc.
         * Licensed under the MIT license
         */
        Severity: Major
        Found in Web.Admin/Content/bootstrap/js/bootstrap.js - About 4 days to fix

          File ajax-actions.php has 1584 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          /**
           * WordPress Core Ajax Handlers.
           *
           * @package WordPress
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 4 days to fix

            Method wp_print_media_templates has 843 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function wp_print_media_templates() {
                global $is_IE;
                $class = 'media-modal wp-core-ui';
                if ( $is_IE && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7') !== false )
                    $class .= ' ie7';
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/media-template.php - About 4 days to fix

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

                  function paged_walk( $elements, $max_depth, $page_num, $per_page ) {
              
                      /* sanity check */
                      if ( empty($elements) || $max_depth < -1 )
                          return '';
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/classes.php and 1 other location - About 4 days to fix
              Web.Admin/2014/wordpress/wp-includes/class-wp-walker.php on lines 270..376

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

              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

                  function paged_walk( $elements, $max_depth, $page_num, $per_page ) {
              
                      /* sanity check */
                      if ( empty($elements) || $max_depth < -1 )
                          return '';
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/class-wp-walker.php and 1 other location - About 4 days to fix
              Web.Admin/2014/wordpress/wp-includes/classes.php on lines 972..1078

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

              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