CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

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

(function($) {

/*global jQuery, Galleria, window */

Galleria.requires(1.25, 'The Facebook Plugin requires Galleria version 1.2.5 or later.');
Web.Admin/2015/js/galleria/plugins/facebook/galleria.facebook.js on lines 10..265

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

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($) {

/*global jQuery, Galleria, window */

Galleria.requires(1.25, 'The Facebook Plugin requires Galleria version 1.2.5 or later.');
Web.Admin/Content/galleria/plugins/facebook/galleria.facebook.js on lines 10..265

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

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

Method get_enclosures has 1673 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function get_enclosures()
    {
        if (!isset($this->data['enclosures']))
        {
            $this->data['enclosures'] = array();
Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php - About 1 wk to fix

    File class-pclzip.php has 2948 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    // --------------------------------------------------------------------------------
    // PhpConcept Library - Zip Module 2.8.2
    // --------------------------------------------------------------------------------
    // License GNU/LGPL - Vincent Blavet - August 2009
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 wk to fix

      Method get_enclosures has 1663 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function get_enclosures()
          {
              if (!isset($this->data['enclosures']))
              {
                  $this->data['enclosures'] = array();
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 wk to fix

        Function get_posts has a Cognitive Complexity of 396 (exceeds 5 allowed). Consider refactoring.
        Open

            function &get_posts() {
                global $wpdb, $user_ID;
        
                do_action_ref_array('pre_get_posts', array(&$this));
        
        
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/query.php - About 1 wk to fix

        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

        File template.php has 2652 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * Template WordPress Administration API.
         *
         * A Big Mess. Also some neat functions that are nicely written.
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 wk to fix

          File ai.0.15.0-build46802.js has 2530 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          var Microsoft;
          (function (Microsoft) {
              var ApplicationInsights;
              (function (ApplicationInsights) {
                  (function (LoggingSeverity) {
          Severity: Major
          Found in Web.Admin/z-scripts/ai.0.15.0-build46802.js - About 1 wk to fix

            Function Analyze has a Cognitive Complexity of 341 (exceeds 5 allowed). Consider refactoring.
            Open

                public function Analyze() {
                    $info = &$this->getid3->info;
            
                    // initialize these values to an empty array, otherwise they default to NULL
                    // and you can't append array values to a NULL value

            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

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

            var Selector = Class.create({
              initialize: function(expression) {
                this.expression = expression.strip();
                this.compileMatcher();
              },
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js and 1 other location - About 6 days to fix
            Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js on lines 2716..2830

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

            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 Selector = Class.create({
              initialize: function(expression) {
                this.expression = expression.strip();
                this.compileMatcher();
              },
            Web.Admin/2014/wordpress/wp-includes/js/prototype.js on lines 2716..2830

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

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

            <?php
            /**
             * SimplePie
             *
             * A PHP-Based RSS and Atom Feed Framework.
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php - About 6 days to fix

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

              Object.extend(Event, (function() {
                var cache = Event.cache;
              
                function getEventID(element) {
                  if (element._eventID) return element._eventID;
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js and 1 other location - About 6 days to fix
              Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js on lines 3808..3944

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

              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(Event, (function() {
                var cache = Event.cache;
              
                function getEventID(element) {
                  if (element._eventID) return element._eventID;
              Web.Admin/2014/wordpress/wp-includes/js/prototype.js on lines 3808..3944

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

              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

                  var $timezone = array(
                      'ACDT' => 37800,
                      'ACIT' => 28800,
                      'ACST' => 34200,
                      'ACT' => -18000,
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 1 other location - About 6 days to fix
              Web.Admin/2014/wordpress/wp-includes/SimplePie/Parse/Date.php on lines 302..502

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

              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

                  var $timezone = array(
                      'ACDT' => 37800,
                      'ACIT' => 28800,
                      'ACST' => 34200,
                      'ACT' => -18000,
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Parse/Date.php and 1 other location - About 6 days to fix
              Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 12776..12976

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

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

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

              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

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

              Element.addMethods = function(methods) {
                var F = Prototype.BrowserFeatures, T = Element.Methods.ByTag;
              
                if (!methods) {
                  Object.extend(Form, Form.Methods);
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js and 1 other location - About 5 days to fix
              Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js on lines 2600..2685

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

              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

              Element.addMethods = function(methods) {
                var F = Prototype.BrowserFeatures, T = Element.Methods.ByTag;
              
                if (!methods) {
                  Object.extend(Form, Form.Methods);
              Web.Admin/2014/wordpress/wp-includes/js/prototype.js on lines 2600..2685

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

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

              <?php
              /**
               * XML-RPC protocol support for WordPress
               *
               * @license GPL v2 <./license.txt>
              Severity: Major
              Found in Web.Admin/2014/wordpress/xmlrpc.php - About 5 days to fix
                Severity
                Category
                Status
                Source
                Language