bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

Function Deferred has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Deferred: function( func ) {
    var tuples = [
        // action, add listener, listener list, final state
        [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
        [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
Severity: Major
Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 2 hrs to fix

    Function CHILD has 59 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        "CHILD": function( type, what, argument, first, last ) {
          var simple = type.slice( 0, 3 ) !== "nth",
            forward = type.slice( -4 ) !== "last",
            ofType = what === "of-type";
    
    
    Severity: Major
    Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 2 hrs to fix

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

      function translate(number, withoutSuffix, string, isFuture) {
          var numberNoun = numberAsNoun(number);
          switch (string) {
              case 'mm':
                  return numberNoun + ' tup';
      Severity: Major
      Found in core/static/vendor/moment/src/locale/tlh.js and 3 other locations - About 2 hrs to fix
      core/static/vendor/moment/locale/tlh.js on lines 39..53
      core/static/vendor/moment/min/locales.js on lines 7629..7643
      core/static/vendor/moment/min/moment-with-locales.js on lines 11915..11929

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

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

      function translate(number, withoutSuffix, string, isFuture) {
          var numberNoun = numberAsNoun(number);
          switch (string) {
              case 'mm':
                  return numberNoun + ' tup';
      Severity: Major
      Found in core/static/vendor/moment/locale/tlh.js and 3 other locations - About 2 hrs to fix
      core/static/vendor/moment/min/locales.js on lines 7629..7643
      core/static/vendor/moment/min/moment-with-locales.js on lines 11915..11929
      core/static/vendor/moment/src/locale/tlh.js on lines 33..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 82.

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

      function translate$9(number, withoutSuffix, string, isFuture) {
          var numberNoun = numberAsNoun(number);
          switch (string) {
              case 'mm':
                  return numberNoun + ' tup';
      Severity: Major
      Found in core/static/vendor/moment/min/moment-with-locales.js and 3 other locations - About 2 hrs to fix
      core/static/vendor/moment/locale/tlh.js on lines 39..53
      core/static/vendor/moment/min/locales.js on lines 7629..7643
      core/static/vendor/moment/src/locale/tlh.js on lines 33..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 82.

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

      function translate$9(number, withoutSuffix, string, isFuture) {
          var numberNoun = numberAsNoun(number);
          switch (string) {
              case 'mm':
                  return numberNoun + ' tup';
      Severity: Major
      Found in core/static/vendor/moment/min/locales.js and 3 other locations - About 2 hrs to fix
      core/static/vendor/moment/locale/tlh.js on lines 39..53
      core/static/vendor/moment/min/moment-with-locales.js on lines 11915..11929
      core/static/vendor/moment/src/locale/tlh.js on lines 33..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 82.

      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

      export var prototypeMin = deprecate(
          'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
          function () {
              var other = createLocal.apply(null, arguments);
              if (this.isValid() && other.isValid()) {
      Severity: Major
      Found in core/static/vendor/moment/src/lib/moment/min-max.js and 1 other location - About 2 hrs to fix
      core/static/vendor/moment/src/lib/moment/min-max.js on lines 18..28

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

      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

      export var prototypeMax = deprecate(
          'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
          function () {
              var other = createLocal.apply(null, arguments);
              if (this.isValid() && other.isValid()) {
      Severity: Major
      Found in core/static/vendor/moment/src/lib/moment/min-max.js and 1 other location - About 2 hrs to fix
      core/static/vendor/moment/src/lib/moment/min-max.js on lines 6..16

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

      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

      Consider simplifying this complex logical expression.
      Open

          if (m._isValid == null) {
              var flags = getParsingFlags(m);
              var parsedParts = some.call(flags.parsedDateParts, function (i) {
                  return i != null;
              });
      Severity: Critical
      Found in core/static/vendor/moment/src/lib/create/valid.js - About 2 hrs to fix

        Consider simplifying this complex logical expression.
        Open

            if (m._isValid == null) {
                var flags = getParsingFlags(m);
                var parsedParts = some$1.call(flags.parsedDateParts, function (i) {
                    return i != null;
                });
        Severity: Critical
        Found in core/static/vendor/moment/min/moment-with-locales.js - About 2 hrs to fix

          Consider simplifying this complex logical expression.
          Open

              if (m._isValid == null) {
                  var flags = getParsingFlags(m);
                  var parsedParts = some$1.call(flags.parsedDateParts, function (i) {
                      return i != null;
                  });
          Severity: Critical
          Found in core/static/vendor/moment/moment.js - About 2 hrs to fix

            Consider simplifying this complex logical expression.
            Open

                        if ( forward && useCache ) {
                          // Seek `elem` from a previously-cached index
                          outerCache = parent[ expando ] || (parent[ expando ] = {});
                          cache = outerCache[ type ] || [];
                          nodeIndex = cache[0] === dirruns && cache[1];
            Severity: Critical
            Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 2 hrs to fix

              Function domManip has 58 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function domManip( collection, args, callback, ignored ) {
              
                  // Flatten any nested arrays
                  args = concat.apply( [], args );
              
              
              Severity: Major
              Found in core/static/vendor/jquery/dist/jquery.js - About 2 hrs to fix

                Function domManip has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function domManip( collection, args, callback, ignored ) {
                
                    // Flatten any nested arrays
                    args = concat.apply( [], args );
                
                
                Severity: Major
                Found in core/static/vendor/jquery/dist/jquery.slim.js - About 2 hrs to fix

                  Function domManip has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function domManip( collection, args, callback, ignored ) {
                  
                      // Flatten any nested arrays
                      args = concat.apply( [], args );
                  
                  
                  Severity: Major
                  Found in core/static/vendor/jquery/src/manipulation.js - About 2 hrs to fix

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

                    test('m: Month, no leading zero.', function(){
                        this.input
                            .val('2012-03-05')
                            .datepicker({format: 'yyyy-m-dd'})
                            .datepicker('setValue');
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 11..17
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 19..25
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 27..33
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 35..41
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 51..57
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 59..65
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 67..73
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 75..81
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 83..89
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 91..97
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 99..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 81.

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

                    test('d: Day of month, no leading zero.', function(){
                        this.input
                            .val('2012-03-05')
                            .datepicker({format: 'yyyy-mm-d'})
                            .datepicker('setValue');
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 19..25
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 27..33
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 35..41
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 43..49
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 51..57
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 59..65
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 67..73
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 75..81
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 83..89
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 91..97
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 99..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 81.

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

                    test('DD: Day of week, long.', function(){
                        this.input
                            .val('2012-03-05')
                            .datepicker({format: 'yyyy-mm-dd-DD'})
                            .datepicker('setValue');
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 11..17
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 19..25
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 27..33
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 43..49
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 51..57
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 59..65
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 67..73
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 75..81
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 83..89
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 91..97
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 99..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 81.

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

                    test('M: Month shortname case insensitive.', function(){
                        this.input
                            .val('2012-MAR-05')
                            .datepicker({format: 'yyyy-M-dd'})
                            .datepicker('setValue');
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 11..17
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 19..25
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 27..33
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 35..41
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 43..49
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 51..57
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 59..65
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 75..81
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 83..89
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 91..97
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 99..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 81.

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

                    test('M: Month fullname case insensitive.', function(){
                        this.input
                            .val('2012-MARCH-05')
                            .datepicker({format: 'yyyy-MM-dd'})
                            .datepicker('setValue');
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 11..17
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 19..25
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 27..33
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 35..41
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 43..49
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 51..57
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 59..65
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 67..73
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 75..81
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 91..97
                    core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 99..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 81.

                    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