bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

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

function relativeTimeWithPlural(number, withoutSuffix, key) {
    var format = {
        'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
        'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
        'dd': 'дзень_дні_дзён',
Severity: Major
Found in core/static/vendor/moment/min/locales.js and 7 other locations - About 4 hrs to fix
core/static/vendor/moment/locale/be.js on lines 19..36
core/static/vendor/moment/locale/uk.js on lines 18..35
core/static/vendor/moment/min/locales.js on lines 7970..7987
core/static/vendor/moment/min/moment-with-locales.js on lines 4949..4966
core/static/vendor/moment/min/moment-with-locales.js on lines 12256..12273
core/static/vendor/moment/src/locale/be.js on lines 13..30
core/static/vendor/moment/src/locale/uk.js on lines 12..29

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

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 relativeTimeWithPlural$4(number, withoutSuffix, key) {
    var format = {
        'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
        'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
        'dd': 'день_дні_днів',
Severity: Major
Found in core/static/vendor/moment/min/moment-with-locales.js and 7 other locations - About 4 hrs to fix
core/static/vendor/moment/locale/be.js on lines 19..36
core/static/vendor/moment/locale/uk.js on lines 18..35
core/static/vendor/moment/min/locales.js on lines 659..676
core/static/vendor/moment/min/locales.js on lines 7970..7987
core/static/vendor/moment/min/moment-with-locales.js on lines 4949..4966
core/static/vendor/moment/src/locale/be.js on lines 13..30
core/static/vendor/moment/src/locale/uk.js on lines 12..29

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

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 ajaxExtend( target, src ) {
    var key, deep,
        flatOptions = jQuery.ajaxSettings.flatOptions || {};

    for ( key in src ) {
Severity: Major
Found in core/static/vendor/jquery/src/ajax.js and 2 other locations - About 4 hrs to fix
core/static/vendor/jquery-expander/test/jquery.1.11.3.js on lines 8693..8707
core/static/vendor/jquery/dist/jquery.js on lines 8566..8580

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

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 ajaxExtend( target, src ) {
  var deep, key,
    flatOptions = jQuery.ajaxSettings.flatOptions || {};

  for ( key in src ) {
Severity: Major
Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js and 2 other locations - About 4 hrs to fix
core/static/vendor/jquery/dist/jquery.js on lines 8566..8580
core/static/vendor/jquery/src/ajax.js on lines 118..132

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

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 ajaxExtend( target, src ) {
    var key, deep,
        flatOptions = jQuery.ajaxSettings.flatOptions || {};

    for ( key in src ) {
Severity: Major
Found in core/static/vendor/jquery/dist/jquery.js and 2 other locations - About 4 hrs to fix
core/static/vendor/jquery-expander/test/jquery.1.11.3.js on lines 8693..8707
core/static/vendor/jquery/src/ajax.js on lines 118..132

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

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 join( pre, arr, post ) {
        var s = dump.separator(),
            base = dump.indent(),
            inner = dump.indent( 1 );
        if ( arr.join ) {
core/static/vendor/bootstrap-datepicker/tests/assets/qunit.js on lines 1294..1305

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

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 join( pre, arr, post ) {
        var s = jsDump.separator(),
            base = jsDump.indent(),
            inner = jsDump.indent(1);
        if ( arr.join ) {
core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js on lines 1707..1718

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

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

File manipulation.js has 349 lines of code (exceeds 250 allowed). Consider refactoring.
Open

define( [
    "./core",
    "./var/concat",
    "./var/push",
    "./core/access",
Severity: Minor
Found in core/static/vendor/jquery/src/manipulation.js - About 4 hrs to fix

    Function exports has 109 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = function(grunt) {
      var versionedFiles = [
        'package.json',
        'jquery.<%= pluginName %>.js'
      ];
    Severity: Major
    Found in core/static/vendor/jquery-expander/Gruntfile.js - About 4 hrs to fix

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

      export function addParseToken (token, callback) {
          var i, func = callback;
          if (typeof token === 'string') {
              token = [token];
          }
      Severity: Major
      Found in core/static/vendor/moment/src/lib/parse/token.js and 2 other locations - About 4 hrs to fix
      core/static/vendor/moment/min/moment-with-locales.js on lines 730..743
      core/static/vendor/moment/moment.js on lines 736..749

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

      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 addParseToken (token, callback) {
          var i, func = callback;
          if (typeof token === 'string') {
              token = [token];
          }
      Severity: Major
      Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 4 hrs to fix
      core/static/vendor/moment/moment.js on lines 736..749
      core/static/vendor/moment/src/lib/parse/token.js on lines 7..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 122.

      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 addParseToken (token, callback) {
          var i, func = callback;
          if (typeof token === 'string') {
              token = [token];
          }
      Severity: Major
      Found in core/static/vendor/moment/moment.js and 2 other locations - About 4 hrs to fix
      core/static/vendor/moment/min/moment-with-locales.js on lines 730..743
      core/static/vendor/moment/src/lib/parse/token.js on lines 7..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 122.

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

      ;(function($){
          $.fn.datepicker.dates['fo'] = {
              days: ["Sunnudagur", "Mánadagur", "Týsdagur", "Mikudagur", "Hósdagur", "Fríggjadagur", "Leygardagur"],
              daysShort: ["Sun", "Mán", "Týs", "Mik", "Hós", "Frí", "Ley"],
              daysMin: ["Su", "Má", "Tý", "Mi", "Hó", "Fr", "Le"],
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.da.js on lines 6..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.id.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.mk.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ms.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nb.js on lines 5..15

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

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

      ;(function($){
          $.fn.datepicker.dates['da'] = {
              days: ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"],
              daysShort: ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
              daysMin: ["sø", "ma", "ti", "on", "to", "fr", "lø"],
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fo.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.id.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.mk.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ms.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nb.js on lines 5..15

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

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

      ;(function($){
          $.fn.datepicker.dates['mk'] = {
              days: ["Недела", "Понеделник", "Вторник", "Среда", "Четврток", "Петок", "Сабота"],
              daysShort: ["Нед", "Пон", "Вто", "Сре", "Чет", "Пет", "Саб"],
              daysMin: ["Не", "По", "Вт", "Ср", "Че", "Пе", "Са"],
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.da.js on lines 6..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fo.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.id.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ms.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nb.js on lines 5..15

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

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

      ;(function($){
          $.fn.datepicker.dates['id'] = {
              days: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"],
              daysShort: ["Mgu", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"],
              daysMin: ["Mg", "Sn", "Sl", "Ra", "Ka", "Ju", "Sa"],
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.da.js on lines 6..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fo.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.mk.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ms.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nb.js on lines 5..15

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

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

      ;(function($){
          $.fn.datepicker.dates['nb'] = {
              days: ["Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag"],
              daysShort: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"],
              daysMin: ["Sø", "Ma", "Ti", "On", "To", "Fr", "Lø"],
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.da.js on lines 6..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fo.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.id.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.mk.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ms.js on lines 5..15

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

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

      ;(function($){
          $.fn.datepicker.dates['ms'] = {
              days: ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu"],
              daysShort: ["Aha", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"],
              daysMin: ["Ah", "Is", "Se", "Ra", "Kh", "Ju", "Sa"],
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.da.js on lines 6..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fo.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.id.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.mk.js on lines 5..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nb.js on lines 5..15

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

      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 plural$4(word, num) {
          var forms = word.split('_');
          return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
      }
      Severity: Major
      Found in core/static/vendor/moment/min/locales.js and 3 other locations - About 4 hrs to fix
      core/static/vendor/moment/min/locales.js on lines 655..658
      core/static/vendor/moment/min/moment-with-locales.js on lines 4945..4948
      core/static/vendor/moment/min/moment-with-locales.js on lines 10517..10520

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

      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 getLocale (key) {
          var locale;
      
          if (key && key._locale && key._locale._abbr) {
              key = key._locale._abbr;
      Severity: Major
      Found in core/static/vendor/moment/moment.js and 1 other location - About 4 hrs to fix
      core/static/vendor/moment/min/moment-with-locales.js on lines 1915..1936

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

      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