bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

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

;(function($){
  $.fn.datepicker.dates['nl-BE'] = {
    days: ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"],
    daysShort: ["zo", "ma", "di", "wo", "do", "vr", "za"],
    daysMin: ["zo", "ma", "di", "wo", "do", "vr", "za"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ca.js on lines 5..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js on lines 5..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-AU.js on lines 5..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-GB.js on lines 5..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js on lines 5..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr-CH.js on lines 8..21
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js on lines 5..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js on lines 5..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.lt.js on lines 6..19
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl.js on lines 5..18

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

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

;(function($){
    $.fn.datepicker.dates['nl'] = {
        days: ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"],
        daysShort: ["zo", "ma", "di", "wo", "do", "vr", "za"],
        daysMin: ["zo", "ma", "di", "wo", "do", "vr", "za"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ca.js on lines 5..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js on lines 5..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-AU.js on lines 5..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-GB.js on lines 5..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js on lines 5..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr-CH.js on lines 8..21
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js on lines 5..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js on lines 5..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.lt.js on lines 6..19
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl-BE.js on lines 5..18

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

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

var swap = function( elem, options, callback, args ) {
    var ret, name,
        old = {};

    // Remember the old values, and insert the new ones
Severity: Major
Found in core/static/vendor/jquery/dist/jquery.js and 1 other location - About 5 hrs to fix
core/static/vendor/jquery/dist/jquery.slim.js on lines 4508..4526

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

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

var swap = function( elem, options, callback, args ) {
    var ret, name,
        old = {};

    // Remember the old values, and insert the new ones
Severity: Major
Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 5 hrs to fix
core/static/vendor/jquery/dist/jquery.js on lines 4508..4526

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

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

;(function($){
    $.fn.datepicker.dates['zh-CN'] = {
        days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
        daysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
        daysMin:  ["日", "一", "二", "三", "四", "五", "六"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ko.js on lines 5..18

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

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

test('Today Button: data-api', function(){
    var input = $('<input data-date-today-btn="true" />')
                .appendTo('#qunit-fixture')
                .val('2012-03-05')
                .datepicker({
core/static/vendor/bootstrap-datepicker/tests/suites/options.js on lines 243..257

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

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

test('Today Button: today button not default', function(){
    var input = $('<input />')
                .appendTo('#qunit-fixture')
                .val('2012-03-05')
                .datepicker({
core/static/vendor/bootstrap-datepicker/tests/suites/options.js on lines 284..298

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

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

;(function($){
    $.fn.datepicker.dates['ko'] = {
        days: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"],
        daysShort: ["일", "월", "화", "수", "목", "금", "토"],
        daysMin: ["일", "월", "화", "수", "목", "금", "토"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-CN.js on lines 5..18

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

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, key) {
    var result = number + ' ';
    switch (key) {
        case 'm':
            return withoutSuffix ? 'minuta' : 'minutę';
Severity: Major
Found in core/static/vendor/moment/locale/pl.js and 3 other locations - About 5 hrs to fix
core/static/vendor/moment/min/locales.js on lines 5972..5988
core/static/vendor/moment/min/moment-with-locales.js on lines 10258..10274
core/static/vendor/moment/src/locale/pl.js on lines 12..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 136.

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, key) {
    var result = number + ' ';
    switch (key) {
        case 'm':
            return withoutSuffix ? 'minuta' : 'minutę';
Severity: Major
Found in core/static/vendor/moment/src/locale/pl.js and 3 other locations - About 5 hrs to fix
core/static/vendor/moment/locale/pl.js on lines 18..34
core/static/vendor/moment/min/locales.js on lines 5972..5988
core/static/vendor/moment/min/moment-with-locales.js on lines 10258..10274

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

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$7(number, withoutSuffix, key) {
    var result = number + ' ';
    switch (key) {
        case 'm':
            return withoutSuffix ? 'minuta' : 'minutę';
Severity: Major
Found in core/static/vendor/moment/min/locales.js and 3 other locations - About 5 hrs to fix
core/static/vendor/moment/locale/pl.js on lines 18..34
core/static/vendor/moment/min/moment-with-locales.js on lines 10258..10274
core/static/vendor/moment/src/locale/pl.js on lines 12..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 136.

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$7(number, withoutSuffix, key) {
    var result = number + ' ';
    switch (key) {
        case 'm':
            return withoutSuffix ? 'minuta' : 'minutę';
Severity: Major
Found in core/static/vendor/moment/min/moment-with-locales.js and 3 other locations - About 5 hrs to fix
core/static/vendor/moment/locale/pl.js on lines 18..34
core/static/vendor/moment/min/locales.js on lines 5972..5988
core/static/vendor/moment/src/locale/pl.js on lines 12..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 136.

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

        parseFormat: function (vChar, vDate) {
            var self = this, vSettings = self.dateSettings, fmt, backslash = /\\?(.?)/gi, doFormat = function (t, s) {
                return fmt[t] ? fmt[t]() : s;
            };
            fmt = {
Severity: Major
Found in core/static/vendor/php-date-formatter/js/php-date-formatter.js - About 5 hrs to fix

    Function parseFormat has 126 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            parseFormat: function (vChar, vDate) {
                var self = this, vSettings = self.dateSettings, fmt, backspace = /\\?(.?)/gi, doFormat = function (t, s) {
                    return fmt[t] ? fmt[t]() : s;
                };
                fmt = {
    Severity: Major
    Found in core/static/vendor/datetimepicker/build/jquery.datetimepicker.full.js - About 5 hrs to fix

      Function equiv has 126 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      QUnit.equiv = (function() {
      
          var innerEquiv; // the real equiv function
          var callers = []; // stack to decide between skip/abort functions
          var parents = []; // stack to avoiding loops from circular referencing
      Severity: Major
      Found in core/static/vendor/bootstrap-datepicker/tests/assets/qunit.js - About 5 hrs to fix

        Consider simplifying this complex logical expression.
        Open

              if ( event.pageX == null && original.clientX != null ) {
                eventDoc = event.target.ownerDocument || document;
                doc = eventDoc.documentElement;
                body = eventDoc.body;
        
        
        Severity: Critical
        Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 5 hrs to fix

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

          function translatePast(output) {
              var time = output;
              time = (output.indexOf('jaj') !== -1) ?
              time.slice(0, -3) + 'Hu’' :
              (output.indexOf('jar') !== -1) ?
          Severity: Major
          Found in core/static/vendor/moment/src/locale/tlh.js and 7 other locations - About 5 hrs to fix
          core/static/vendor/moment/locale/tlh.js on lines 15..25
          core/static/vendor/moment/locale/tlh.js on lines 27..37
          core/static/vendor/moment/min/locales.js on lines 7605..7615
          core/static/vendor/moment/min/locales.js on lines 7617..7627
          core/static/vendor/moment/min/moment-with-locales.js on lines 11891..11901
          core/static/vendor/moment/min/moment-with-locales.js on lines 11903..11913
          core/static/vendor/moment/src/locale/tlh.js on lines 9..19

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

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

          function translatePast(output) {
              var time = output;
              time = (output.indexOf('jaj') !== -1) ?
              time.slice(0, -3) + 'Hu’' :
              (output.indexOf('jar') !== -1) ?
          Severity: Major
          Found in core/static/vendor/moment/min/locales.js and 7 other locations - About 5 hrs to fix
          core/static/vendor/moment/locale/tlh.js on lines 15..25
          core/static/vendor/moment/locale/tlh.js on lines 27..37
          core/static/vendor/moment/min/locales.js on lines 7605..7615
          core/static/vendor/moment/min/moment-with-locales.js on lines 11891..11901
          core/static/vendor/moment/min/moment-with-locales.js on lines 11903..11913
          core/static/vendor/moment/src/locale/tlh.js on lines 9..19
          core/static/vendor/moment/src/locale/tlh.js on lines 21..31

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

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

          function translatePast(output) {
              var time = output;
              time = (output.indexOf('jaj') !== -1) ?
              time.slice(0, -3) + 'Hu’' :
              (output.indexOf('jar') !== -1) ?
          Severity: Major
          Found in core/static/vendor/moment/min/moment-with-locales.js and 7 other locations - About 5 hrs to fix
          core/static/vendor/moment/locale/tlh.js on lines 15..25
          core/static/vendor/moment/locale/tlh.js on lines 27..37
          core/static/vendor/moment/min/locales.js on lines 7605..7615
          core/static/vendor/moment/min/locales.js on lines 7617..7627
          core/static/vendor/moment/min/moment-with-locales.js on lines 11891..11901
          core/static/vendor/moment/src/locale/tlh.js on lines 9..19
          core/static/vendor/moment/src/locale/tlh.js on lines 21..31

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

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

          function translateFuture(output) {
              var time = output;
              time = (output.indexOf('jaj') !== -1) ?
              time.slice(0, -3) + 'leS' :
              (output.indexOf('jar') !== -1) ?
          Severity: Major
          Found in core/static/vendor/moment/src/locale/tlh.js and 7 other locations - About 5 hrs to fix
          core/static/vendor/moment/locale/tlh.js on lines 15..25
          core/static/vendor/moment/locale/tlh.js on lines 27..37
          core/static/vendor/moment/min/locales.js on lines 7605..7615
          core/static/vendor/moment/min/locales.js on lines 7617..7627
          core/static/vendor/moment/min/moment-with-locales.js on lines 11891..11901
          core/static/vendor/moment/min/moment-with-locales.js on lines 11903..11913
          core/static/vendor/moment/src/locale/tlh.js on lines 21..31

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

          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