talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

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

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText         : "Hoy",
    minText           : "Esta fecha es anterior a la fecha m\u00EDnima",
    maxText           : "Esta fecha es posterior a la fecha m\u00E1xima",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-es.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText         : "Today",
    minText           : "This date is before the minimum date",
    maxText           : "This date is after the maximum date",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-en.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
   Ext.apply(Ext.DatePicker.prototype, {
      todayText         : "I dag",
      minText           : "Denne dato er før den tidligst tilladte",
      maxText           : "Denne dato er senere end den senest tilladte",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-da.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
   Ext.apply(Ext.DatePicker.prototype, {
      todayText         : "Heute",
      minText           : "Dieses Datum liegt von dem erstmöglichen Datum",
      maxText           : "Dieses Datum liegt nach dem letztmöglichen Datum",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-de.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
   Ext.apply(Ext.DatePicker.prototype, {
      todayText         : "Oggi",
      minText           : "Data precedente alla data minima",
      maxText           : "Data successiva alla data massima",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-it.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText         : "Çѹ¹Õé",
    minText           : "This date is before the minimum date",
    maxText           : "This date is after the maximum date",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-th.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
   Ext.apply(Ext.DatePicker.prototype, {
      todayText         : "Dnes",
      minText           : "Datum nesmí být starší než je minimální",
      maxText           : "Datum nesmí být dřívější než je maximální",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-cs.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText         : "امروز",
    minText           : "این تاریخ قبل از محدوده مجاز است",
    maxText           : "این تاریخ پس از محدوده مجاز است",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-fa.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText         : "I dag",
    minText           : "Denne datoen er før tidligste tillatte dato",
    maxText           : "Denne datoen er etter seneste tillatte dato",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText         : "今日",
    minText           : "選択した日付は最小値以下です。",
    maxText           : "選択した日付は最大値以上です。",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-ja.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText         : "Šiandien",
    minText           : "Ši data yra mažesnė už leistiną",
    maxText           : "Ši data yra didesnė už leistiną",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-lt.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText         : "Mai nap",
    minText           : "A dátum korábbi a megengedettnél",
    maxText           : "A dátum későbbi a megengedettnél",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-hu.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText         : "Днес",
    minText           : "Тази дата е преди минималната",
    maxText           : "Тази дата е след максималната",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-bg.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
   Ext.apply(Ext.DatePicker.prototype, {
      todayText         : "Сьогодні",
      minText           : "Ця дата меньша за мінімальну допустиму дату",
      maxText           : "Ця дата більша за максимальну допустиму дату",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-ukr.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137

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

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

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText         : "����",
    minText           : ".����� �� �� ���� ������ ������� �����",
    maxText           : ".����� �� �� ���� ������ ����� �����",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-he.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
   Ext.apply(Ext.DatePicker.prototype, {
      todayText         : "Hoje",
      minText           : "Esta data é anterior a menor data",
      maxText           : "Esta data é posterior a maior data",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText: 'Vandaag',
    minText: 'Deze datum is eerder dan de minimale datum',
    maxText: 'Deze datum is later dan de maximale datum',
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-nl.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText         : "Bugün",
    minText           : "Bu tarih izin verilen en küçük tarihten daha önce",
    maxText           : "Bu tarih izin verilen en büyük tarihten daha sonra",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-tr.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText         : "Avui",
    minText           : "Aquesta data és anterior a la data mínima",
    maxText           : "Aquesta data és posterior a la data màxima",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-ca.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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

if(Ext.DatePicker){
  Ext.apply(Ext.DatePicker.prototype, {
    todayText         : "I dag",
    minText           : "Denne datoen er før tidlegaste tillatne dato",
    maxText           : "Denne datoen er etter seinaste tillatne dato",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js and 28 other locations - About 4 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 97..115
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 115..133
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 104..122
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 92..110
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 121..139
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 107..125
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 112..130
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 103..121
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 77..95
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 118..136
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 108..126
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 80..98
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 122..140
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 100..118
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 105..123
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 119..137
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 81..99

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

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