CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Function show has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        show: function(index) {

            lightbox.active = index = typeof index === 'number' ? index : self.getIndex() || 0;

            if ( !lightbox.initialized ) {
Severity: Major
Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 3 hrs to fix

    Function resultsController has 83 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var resultsController = function ($scope, $location, dataService, $stateParams, $state, $timeout) {
            var url = $location.absUrl();
            var host = $location.host();
            var firstSlash = url.indexOf('/', url.indexOf(host)) + 1;
            var currentYear = url.slice(firstSlash, firstSlash + 4);
    Severity: Major
    Found in Web.Admin/ClientApp/Controllers/controller.results.js - About 3 hrs to fix

      Function success has 83 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  success: function() {
      
                      // calculate some cropping
                      var newWidth = ( width - options.margin * 2 ) / self.original.width,
                          newHeight = ( height - options.margin * 2 ) / self.original.height,
      Severity: Major
      Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 3 hrs to fix

        Function show has 83 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                show: function(index) {
        
                    lightbox.active = index = typeof index === 'number' ? index : self.getIndex() || 0;
        
                    if ( !lightbox.initialized ) {
        Severity: Major
        Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 3 hrs to fix

          File custom-header.php has 305 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          /**
           * The custom header image script.
           *
           * @package WordPress
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/custom-header.php - About 3 hrs to fix

            Method mw_getRecentPosts has 83 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function mw_getRecentPosts($args) {
            
                    $this->escape($args);
            
                    $blog_ID     = (int) $args[0];
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 3 hrs to fix

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

                  public function Analyze() {
                      $info = &$this->getid3->info;
                      $info['fileformat'] = 'dts';
              
                      $this->fseek($info['avdataoffset']);
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.dts.php - About 3 hrs to fix

                Method absolutize has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static function absolutize($base, $relative)
                    {
                        if (!($relative instanceof SimplePie_IRI))
                        {
                            $relative = new SimplePie_IRI($relative);
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/IRI.php - About 3 hrs to fix

                  Method request has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function request($url, $args = array()) {
                          $defaults = array(
                              'method' => 'GET', 'timeout' => 5,
                              'redirection' => 5, 'httpversion' => '1.0',
                              'blocking' => true,
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/http.php - About 3 hrs to fix

                    Method save has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function save($data)
                        {
                            if ($this->mysql)
                            {
                                $feed_id = "'" . mysql_real_escape_string($this->id) . "'";
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 3 hrs to fix

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

                                  if ($ratings = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'rating'))
                                  {
                                      foreach ($ratings as $rating)
                                      {
                                          $rating_scheme = null;
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php and 1 other location - About 3 hrs to fix
                      Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 1540..1560

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

                      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

                                  elseif ($ratings = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'rating'))
                                  {
                                      foreach ($ratings as $rating)
                                      {
                                          $rating_scheme = null;
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php and 1 other location - About 3 hrs to fix
                      Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 1506..1573

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

                      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(mid-2000<0) {ini=0;end=4000;}
                                  else if(mid+2000>code.length) {ini=code.length-4000;end=code.length;}
                                  else {ini=mid-2000;end=mid+2000;}
                      Web.Admin/2014/wordpress/wp-includes/js/codepress/engines/msie.js on lines 103..105
                      Web.Admin/2014/wordpress/wp-includes/js/codepress/engines/opera.js on lines 86..88

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

                      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(mid-2000<0) {ini=0;end=4000;}
                                  else if(mid+2000>code.length) {ini=code.length-4000;end=code.length;}
                                  else {ini=mid-2000;end=mid+2000;}
                      Web.Admin/2014/wordpress/wp-includes/js/codepress/engines/gecko.js on lines 87..89
                      Web.Admin/2014/wordpress/wp-includes/js/codepress/engines/msie.js on lines 103..105

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

                      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(mid-2000<0) {ini=0;end=4000;}
                                  else if(mid+2000>code.length) {ini=code.length-4000;end=code.length;}
                                  else {ini=mid-2000;end=mid+2000;}
                      Web.Admin/2014/wordpress/wp-includes/js/codepress/engines/gecko.js on lines 87..89
                      Web.Admin/2014/wordpress/wp-includes/js/codepress/engines/opera.js on lines 86..88

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

                      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

                              {
                                  e.preventDefault();
                                  e.stopPropagation();
                      
                                  if (btndown)
                      Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js on lines 96..98

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

                      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 (ty == 'vspace') {
                                      dom.setStyle(img, 'marginTop', '');
                                      dom.setStyle(img, 'marginBottom', '');
                      
                                      v = f.vspace.value;
                      Web.Admin/2014/wordpress/wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js on lines 538..547

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

                      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

                      {e.preventDefault();e.stopPropagation();if(btndown)
                      {btndown=false;onDone(mouseAbs(e));options.onSelect(unscale(Coords.getFixed()));toBack();onMove=function(){};onDone=function(){};}
                      return false;};function activateHandlers(move,done)
                      Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.dev.js on lines 683..699

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

                      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

                      Language.syntax = [ 
                          { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote
                          { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote
                          { input : /\b(break|continue|do|for|new|this|void|case|default|else|function|return|typeof|while|if|label|switch|var|with|catch|boolean|int|try|false|throws|null|true|goto)\b/g, output : '<b>$1</b>' }, // reserved words
                          { input : /\b(alert|isNaN|parent|Array|parseFloat|parseInt|blur|clearTimeout|prompt|prototype|close|confirm|length|Date|location|Math|document|element|name|self|elements|setTimeout|navigator|status|String|escape|Number|submit|eval|Object|event|onblur|focus|onerror|onfocus|onclick|top|onload|toString|onunload|unescape|open|valueOf|window|onmouseover)\b/g, output : '<u>$1</u>' }, // special words
                      Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/generic.js on lines 6..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 101.

                      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

                      Language.syntax = [
                          { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote
                          { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote
                          { input : /\b(abstract|continue|for|new|switch|default|goto|boolean|do|if|private|this|break|double|protected|throw|byte|else|import|public|throws|case|return|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|const|float|while|function|label)\b/g, output : '<b>$1</b>' }, // reserved words
                          { input : /([\(\){}])/g, output : '<em>$1</em>' }, // special chars;
                      Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/javascript.js on lines 6..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 101.

                      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