CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

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

        initialize: function( options ) {
            options.DetailsView = media.view.AudioDetails;
            options.cancelText = l10n.audioDetailsCancel;
            options.addText = l10n.audioAddSourceTitle;

Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/js/media-audiovideo.js and 1 other location - About 2 hrs to fix
Web.Admin/2014/wordpress/wp-includes/js/media-audiovideo.js on lines 606..612

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

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

        initialize: function( options ) {
            options.DetailsView = media.view.VideoDetails;
            options.cancelText = l10n.videoDetailsCancel;
            options.addText = l10n.videoAddSourceTitle;

Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/js/media-audiovideo.js and 1 other location - About 2 hrs to fix
Web.Admin/2014/wordpress/wp-includes/js/media-audiovideo.js on lines 539..545

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

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

    getRangeAndCaret : function() {    
        var range = window.getSelection().getRangeAt(0);
        var range2 = range.cloneRange();
        var node = range.endContainer;            
        var caret = range.endOffset;
Web.Admin/2014/wordpress/wp-includes/js/codepress/engines/opera.js on lines 182..189

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

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 $IntervalProvider has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

angular.mock.$IntervalProvider = function() {
  this.$get = ['$browser', '$rootScope', '$q', '$$q',
       function($browser,   $rootScope,   $q,   $$q) {
    var repeatFns = [],
        nextRepeatId = 0,
Severity: Major
Found in Web.Admin/z-scripts/angular-mocks.js - About 2 hrs to fix

    Function load has 71 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        load : function( source, selector, config ) {
    
            var self = this,
                o = this._options;
    
    
    Severity: Major
    Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 2 hrs to fix

      Function add_postbox_toggles has 71 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              add_postbox_toggles : function(page,args) {
                  this.init(page,args);
                  $('.postbox h3, .postbox .handlediv').click( function() {
                      var p = $(this).parent('.postbox'), id = p.attr('id');
                      p.toggleClass('closed');
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-admin/js/postbox.dev.js - About 2 hrs to fix

        Function onSubmitForm has 71 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function onSubmitForm() {
                    function waitLoad(imgElm) {
                        function selectImage() {
                            imgElm.onload = imgElm.onerror = null;
                            editor.selection.select(imgElm);

          Function load has 71 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              load : function( source, selector, config ) {
          
                  var self = this,
                      o = this._options;
          
          Severity: Major
          Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 2 hrs to fix

            Method entity has 71 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function entity()
                {
                    switch ($this->consume())
                    {
                        case "\x09":
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

              Method get_type has 71 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function get_type()
                  {
                      if (!isset($this->data['type']))
                      {
                          $this->data['type'] = SIMPLEPIE_TYPE_ALL;
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

                prototype has 25 functions (exceeds 20 allowed). Consider refactoring.
                Open

                Cropper.Img.prototype={initialize:function(_7,_8){
                this.options=Object.extend({ratioDim:{x:0,y:0},minWidth:0,minHeight:0,displayOnInit:false,onEndCrop:Prototype.emptyFunction,captureKeys:true},_8||{});
                if(this.options.minWidth>0&&this.options.minHeight>0){
                this.options.ratioDim.x=this.options.minWidth;
                this.options.ratioDim.y=this.options.minHeight;
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/js/crop/cropper.js - About 2 hrs to fix

                  getid3_id3v2 has 25 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class getid3_id3v2 extends getid3_handler
                  {
                      public $StartingOffset = 0;
                  
                      public function Analyze() {
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.id3v2.php - About 2 hrs to fix

                    getid3_mp3 has 25 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class getid3_mp3 extends getid3_handler
                    {
                    
                        public $allow_bruteforce = false; // forces getID3() to scan the file byte-by-byte and log all the valid audio frame headers - extremely slow, unrecommended, but may provide data from otherwise-unusuable files
                    
                    
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.mp3.php - About 2 hrs to fix

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

                              if ($this->current_xhtml_construct >= 0)
                              {
                                  $this->current_xhtml_construct++;
                                  if (end($this->namespace) === SIMPLEPIE_NAMESPACE_XHTML)
                                  {
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Parser.php and 1 other location - About 2 hrs to fix
                      Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 14547..14573

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

                      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

                              if ( $cats = get_categories('get=all') ) {
                                  foreach ( $cats as $cat ) {
                                      $struct['categoryId'] = $cat->term_id;
                                      $struct['parentId'] = $cat->parent;
                                      $struct['description'] = $cat->name;
                      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 5225..5237

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

                      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

                      <?php
                      /**
                       * SimplePie
                       *
                       * A PHP-Based RSS and Atom Feed Framework.
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Rating.php and 1 other location - About 2 hrs to fix
                      Web.Admin/2014/wordpress/wp-includes/SimplePie/Copyright.php on lines 1..130

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

                      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

                      <?php
                      /**
                       * SimplePie
                       *
                       * A PHP-Based RSS and Atom Feed Framework.
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Copyright.php and 1 other location - About 2 hrs to fix
                      Web.Admin/2014/wordpress/wp-includes/SimplePie/Rating.php on lines 1..129

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

                      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($_GET['trashed']) && (int) $_GET['trashed'] ) {
                          printf( _n( 'Page moved to the trash.', '%s pages moved to the trash.', $_GET['trashed'] ), number_format_i18n( $_GET['trashed'] ) );
                          $ids = isset($_GET['ids']) ? $_GET['ids'] : 0;
                          echo ' <a href="' . esc_url( wp_nonce_url( "edit-pages.php?doaction=undo&action=untrash&ids=$ids", "bulk-pages" ) ) . '">' . __('Undo') . '</a><br />';
                          unset($_GET['trashed']);
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-admin/edit-pages.php and 1 other location - About 2 hrs to fix
                      Web.Admin/2014/wordpress/wp-admin/edit.php on lines 168..173

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

                      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

                              if ($this->current_xhtml_construct >= 0)
                              {
                                  $this->current_xhtml_construct++;
                                  if (end($this->namespace) === SIMPLEPIE_NAMESPACE_XHTML)
                                  {
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 1 other location - About 2 hrs to fix
                      Web.Admin/2014/wordpress/wp-includes/SimplePie/Parser.php on lines 303..332

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

                      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

                              if ( $cats = get_categories(array('get' => 'all')) ) {
                                  foreach ( $cats as $cat ) {
                                      $struct['categoryId'] = $cat->term_id;
                                      $struct['parentId'] = $cat->parent;
                                      $struct['description'] = $cat->name;
                      Web.Admin/2014/wordpress/xmlrpc.php on lines 2809..2821

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

                      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