bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

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

    var input = $('<input />')
                .appendTo('#qunit-fixture')
                .val('2012-03-05')
                .datepicker({
                    format: 'yyyy-mm-dd',
core/static/vendor/bootstrap-datepicker/tests/suites/options.js on lines 498..507
core/static/vendor/bootstrap-datepicker/tests/suites/options.js on lines 524..533

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

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

function addGetHookIf( conditionFn, hookFn ) {

    // Define the hook, we'll check on the first run if it's really needed.
    return {
        get: function() {
Severity: Major
Found in core/static/vendor/jquery/dist/jquery.js and 2 other locations - About 1 hr to fix
core/static/vendor/jquery/dist/jquery.slim.js on lines 6207..6224
core/static/vendor/jquery/src/css/addGetHookIf.js on lines 5..22

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

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

function addGetHookIf( conditionFn, hookFn ) {

    // Define the hook, we'll check on the first run if it's really needed.
    return {
        get: function() {
Severity: Major
Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 hr to fix
core/static/vendor/jquery/dist/jquery.js on lines 6207..6224
core/static/vendor/jquery/src/css/addGetHookIf.js on lines 5..22

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

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

    var input = $('<input />')
                .appendTo('#qunit-fixture')
                .val('2012-03-05')
                .datepicker({
                    format: 'yyyy-mm-dd',
core/static/vendor/bootstrap-datepicker/tests/suites/options.js on lines 498..507
core/static/vendor/bootstrap-datepicker/tests/suites/options.js on lines 557..566

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

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

function setPositiveNumber( elem, value, subtract ) {

    // Any relative (+/-) values have already been
    // normalized at this point
    var matches = rcssNum.exec( value );
Severity: Major
Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 hr to fix
core/static/vendor/jquery/dist/jquery.js on lines 6262..6272
core/static/vendor/jquery/src/css.js on lines 60..70

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

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

function setPositiveNumber( elem, value, subtract ) {

    // Any relative (+/-) values have already been
    // normalized at this point
    var matches = rcssNum.exec( value );
Severity: Major
Found in core/static/vendor/jquery/src/css.js and 2 other locations - About 1 hr to fix
core/static/vendor/jquery/dist/jquery.js on lines 6262..6272
core/static/vendor/jquery/dist/jquery.slim.js on lines 6262..6272

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

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

function internalData( elem, name, data, pvt /* Internal Use Only */ ) {
  if ( !jQuery.acceptData( elem ) ) {
    return;
  }

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

    Function select has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    select = Sizzle.select = function( selector, context, results, seed ) {
      var i, tokens, token, type, find,
        compiled = typeof selector === "function" && selector,
        match = !seed && tokenize( (selector = compiled.selector || selector) );
    
    
    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

      var wrapMap = {
      
          // Support: IE <=9 only
          option: [ 1, "<select multiple='multiple'>", "</select>" ],
      
      
      Severity: Major
      Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 hr to fix
      core/static/vendor/jquery/dist/jquery.js on lines 4697..4711
      core/static/vendor/jquery/src/manipulation/wrapMap.js on lines 6..20

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

      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 wrapMap = {
      
          // Support: IE <=9 only
          option: [ 1, "<select multiple='multiple'>", "</select>" ],
      
      
      Severity: Major
      Found in core/static/vendor/jquery/dist/jquery.js and 2 other locations - About 1 hr to fix
      core/static/vendor/jquery/dist/jquery.slim.js on lines 4697..4711
      core/static/vendor/jquery/src/manipulation/wrapMap.js on lines 6..20

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

      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 wrapMap = {
      
          // Support: IE <=9 only
          option: [ 1, "<select multiple='multiple'>", "</select>" ],
      
      
      Severity: Major
      Found in core/static/vendor/jquery/src/manipulation/wrapMap.js and 2 other locations - About 1 hr to fix
      core/static/vendor/jquery/dist/jquery.js on lines 4697..4711
      core/static/vendor/jquery/dist/jquery.slim.js on lines 4697..4711

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

      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 (this.options.zoomAnimation && L.TileLayer && (layer instanceof L.TileLayer)) {
                  this._tileLayersNum++;
                  this._tileLayersToLoad++;
                  layer.on('load', this._onTileLayerLoad, 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 1710..1714

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

      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 (this.options.zoomAnimation && L.TileLayer && (layer instanceof L.TileLayer)) {
                  this._tileLayersNum--;
                  this._tileLayersToLoad--;
                  layer.off('load', this._onTileLayerLoad, 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 1676..1680

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

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

      export function configFromISO(config) {
          var i, l,
              string = config._i,
              match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
              allowTime, dateFormat, timeFormat, tzFormat;
      Severity: Minor
      Found in core/static/vendor/moment/src/lib/create/from-string.js - About 1 hr to fix

        Function configFromISO has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function configFromISO(config) {
            var i, l,
                string = config._i,
                match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
                allowTime, dateFormat, timeFormat, tzFormat;
        Severity: Minor
        Found in core/static/vendor/moment/min/moment-with-locales.js - About 1 hr to fix

          Function configFromISO has 46 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function configFromISO(config) {
              var i, l,
                  string = config._i,
                  match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
                  allowTime, dateFormat, timeFormat, tzFormat;
          Severity: Minor
          Found in core/static/vendor/moment/moment.js - About 1 hr to fix

            Function select has 46 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            select = Sizzle.select = function( selector, context, results, seed ) {
                var i, tokens, token, type, find,
                    compiled = typeof selector === "function" && selector,
                    match = !seed && tokenize( (selector = compiled.selector || selector) );
            
            
            Severity: Minor
            Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

              Function tokenize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
                  var matched, match, tokens, type,
                      soFar, groups, preFilters,
                      cached = tokenCache[ selector + " " ];
              
              
              Severity: Minor
              Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

                Function matcherFromTokens has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function matcherFromTokens( tokens ) {
                    var checkContext, matcher, j,
                        len = tokens.length,
                        leadingRelative = Expr.relative[ tokens[0].type ],
                        implicitRelative = leadingRelative || Expr.relative[" "],
                Severity: Minor
                Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

                  Function addCombinator has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function addCombinator( matcher, combinator, base ) {
                      var dir = combinator.dir,
                          skip = combinator.next,
                          key = skip || dir,
                          checkNonElements = base && key === "parentNode",
                  Severity: Minor
                  Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix
                    Severity
                    Category
                    Status
                    Source
                    Language