bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

Function promise has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

jQuery.ready.promise = function( obj ) {
  if ( !readyList ) {

    readyList = jQuery.Deferred();

Severity: Minor
Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

    Function chef has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function chef( matched ) {
                var i = 0;  // iterate steps
                var j = 1;    // iterate chef's arguments
                var step;
                while( step = steps[ i++ ] ) {
    Severity: Minor
    Found in core/static/vendor/jquery-expander/demo/chili-1.8.js - About 1 hr to fix

      Function queue has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          queue: function() {
              var bad,
                  test = this;
      
              if ( !this.valid() ) {
      Severity: Minor
      Found in core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js - About 1 hr to fix

        Function makeDish has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function makeDish( el, recipePath ) {
                var recipe = book.recipes[ recipePath ];
                if( recipe ) {
                    var ingredients = el && el.childNodes && el.childNodes[0] && el.childNodes[0].data;
                    if( ! ingredients ) {
        Severity: Minor
        Found in core/static/vendor/jquery-expander/demo/chili-1.8.js - About 1 hr to fix

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

            Tab.prototype.show = function () {
              var $this    = this.element
              var $ul      = $this.closest('ul:not(.dropdown-menu)')
              var selector = $this.data('target')
          
          
          Severity: Minor
          Found in core/static/vendor/bootstrap/js/tab.js - About 1 hr to fix

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

              Tab.prototype.show = function () {
                var $this    = this.element
                var $ul      = $this.closest('ul:not(.dropdown-menu)')
                var selector = $this.data('target')
            
            
            Severity: Minor
            Found in core/static/vendor/bootstrap/dist/js/bootstrap.js - About 1 hr to fix

              Function handlers has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                handlers: function( event, handlers ) {
                  var sel, handleObj, matches, i,
                    handlerQueue = [],
                    delegateCount = handlers.delegateCount,
                    cur = event.target;
              Severity: Minor
              Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

                Function attr has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  attr: function( elem, name, value ) {
                    var hooks, ret,
                      nType = elem.nodeType;
                
                    // don't get/set attributes on text, comment and attribute nodes
                Severity: Minor
                Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

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

                  function meridiem (token, lowercase) {
                      addFormatToken(token, 0, 0, function () {
                          return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
                      });
                  }
                  Severity: Major
                  Found in core/static/vendor/moment/moment.js and 2 other locations - About 1 hr to fix
                  core/static/vendor/moment/min/moment-with-locales.js on lines 1646..1650
                  core/static/vendor/moment/src/lib/units/hour.js on lines 44..48

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

                  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

                  var isoDates = [
                      ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
                      ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
                      ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
                      ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
                  Severity: Major
                  Found in core/static/vendor/moment/moment.js and 2 other locations - About 1 hr to fix
                  core/static/vendor/moment/min/moment-with-locales.js on lines 1979..1992
                  core/static/vendor/moment/src/lib/create/from-string.js on lines 13..26

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

                  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

                  var isoDates = [
                      ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
                      ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
                      ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
                      ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
                  Severity: Major
                  Found in core/static/vendor/moment/src/lib/create/from-string.js and 2 other locations - About 1 hr to fix
                  core/static/vendor/moment/min/moment-with-locales.js on lines 1979..1992
                  core/static/vendor/moment/moment.js on lines 1985..1998

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

                  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

                  var isoDates = [
                      ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
                      ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
                      ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
                      ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
                  Severity: Major
                  Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 1 hr to fix
                  core/static/vendor/moment/moment.js on lines 1985..1998
                  core/static/vendor/moment/src/lib/create/from-string.js on lines 13..26

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

                  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

                  function meridiem (token, lowercase) {
                      addFormatToken(token, 0, 0, function () {
                          return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
                      });
                  }
                  Severity: Major
                  Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 1 hr to fix
                  core/static/vendor/moment/moment.js on lines 1652..1656
                  core/static/vendor/moment/src/lib/units/hour.js on lines 44..48

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

                  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

                  function meridiem (token, lowercase) {
                      addFormatToken(token, 0, 0, function () {
                          return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
                      });
                  }
                  Severity: Major
                  Found in core/static/vendor/moment/src/lib/units/hour.js and 2 other locations - About 1 hr to fix
                  core/static/vendor/moment/min/moment-with-locales.js on lines 1646..1650
                  core/static/vendor/moment/moment.js on lines 1652..1656

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

                  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 creationData() {
                      return {
                          input: this._i,
                          format: this._f,
                          locale: this._locale,
                  Severity: Major
                  Found in core/static/vendor/moment/moment.js and 1 other location - About 1 hr to fix
                  core/static/vendor/moment/min/moment-with-locales.js on lines 3329..3337

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

                  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 creationData() {
                      return {
                          input: this._i,
                          format: this._f,
                          locale: this._locale,
                  Severity: Major
                  Found in core/static/vendor/moment/min/moment-with-locales.js and 1 other location - About 1 hr to fix
                  core/static/vendor/moment/moment.js on lines 3335..3343

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

                  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

                              bottoms = selection.map(function(){
                                  return $(this).offset().top + $(this).outerHeight();
                              }).toArray();
                  core/static/vendor/bootstrap-datepicker/docs/_screenshots/script/screenshot.js on lines 45..47

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

                  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

                  jQuery.expr.pseudos.visible = function( elem ) {
                      return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
                  };
                  Severity: Major
                  Found in core/static/vendor/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
                  core/static/vendor/jquery/src/css/hiddenVisibleSelectors.js on lines 11..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 59.

                  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

                      _round: function () {
                          this.x = Math.round(this.x);
                          this.y = Math.round(this.y);
                          return this;
                      },
                  Severity: Major
                  Found in core/static/vendor/leaflet/dist/leaflet-src.js and 1 other location - About 1 hr to fix
                  core/static/vendor/leaflet/dist/leaflet-src.js on lines 642..646

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

                  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

                  jQuery.expr.pseudos.visible = function( elem ) {
                      return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
                  };
                  Severity: Major
                  Found in core/static/vendor/jquery/src/css/hiddenVisibleSelectors.js and 1 other location - About 1 hr to fix
                  core/static/vendor/jquery/dist/jquery.js on lines 9388..9390

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

                  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