talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

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

if(Ext.form.HtmlEditor){
  Ext.apply(Ext.form.HtmlEditor.prototype, {
    createLinkText : 'Please enter the URL for the link:',
    buttonTips : {
      bold : {
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-en.js and 30 other locations - About 1 day to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 177..253
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 190..266
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 171..247
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 211..287
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 183..259
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 187..263
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 193..269
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 156..232
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 195..271
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 159..235
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 184..260
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 199..275
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 160..236

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

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

if(Ext.form.HtmlEditor){
  Ext.apply(Ext.form.HtmlEditor.prototype, {
    createLinkText : 'Si us plau, tecleixi la URL per l\'enllaç:',
    buttonTips : {
      bold : {
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-ca.js and 30 other locations - About 1 day to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 177..253
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 190..266
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 171..247
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 211..287
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 183..259
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 187..263
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 193..269
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 156..232
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 195..271
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 159..235
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 184..260
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 199..275
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 160..236

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

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

if(Ext.form.HtmlEditor){
  Ext.apply(Ext.form.HtmlEditor.prototype, {
    createLinkText : 'Silakan masukkan URL untuk tautan:', 
    buttonTips : {
      bold : {
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-id.js and 30 other locations - About 1 day to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 177..253
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 190..266
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 171..247
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 211..287
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 183..259
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 187..263
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 156..232
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 195..271
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 159..235
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 184..260
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 199..275
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 160..236

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

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

if(Ext.form.HtmlEditor){
  Ext.apply(Ext.form.HtmlEditor.prototype, {
    createLinkText : 'Lütfen bu baðlantý için gerekli URL adresini giriniz:',
    buttonTips : {
      bold : {
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-tr.js and 30 other locations - About 1 day to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 177..253
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 190..266
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 171..247
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 211..287
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 183..259
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 187..263
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 193..269
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 156..232
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 195..271
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 159..235
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 184..260
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 199..275
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 160..236

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

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

if(Ext.form.HtmlEditor){
  Ext.apply(Ext.form.HtmlEditor.prototype, {
    createLinkText : 'リンクのURLを入力してください:',
    buttonTips : {
      bold : {
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-ja.js and 30 other locations - About 1 day to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 177..253
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 190..266
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 171..247
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 211..287
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 183..259
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 187..263
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 193..269
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 156..232
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 195..271
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 159..235
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 184..260
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 199..275
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 160..236

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

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

if(Ext.form.HtmlEditor){
   Ext.apply(Ext.form.HtmlEditor.prototype, {
     createLinkText : 'Por favor, entre com o URL do link:',
     buttonTips : {
            bold : {
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-pt.js and 30 other locations - About 1 day to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 177..253
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 190..266
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 171..247
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 211..287
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 183..259
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 187..263
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 193..269
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 156..232
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 195..271
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 184..260
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 199..275
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 160..236

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

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

if(Ext.form.HtmlEditor){
  Ext.apply(Ext.form.HtmlEditor.prototype, {
    createLinkText: 'Vul hier de URL voor de hyperlink in:',
    buttonTips: {
      bold: {
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-nl.js and 30 other locations - About 1 day to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 177..253
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 190..266
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 171..247
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 211..287
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 183..259
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 187..263
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 193..269
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 156..232
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 195..271
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 159..235
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 184..260
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 199..275
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 160..236

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

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

if(Ext.form.HtmlEditor){
  Ext.apply(Ext.form.HtmlEditor.prototype, {
    createLinkText : 'Anna linkin URL-osoite:',
    buttonTips : {
      bold : {
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-fi.js and 30 other locations - About 1 day to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 177..253
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 190..266
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 171..247
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 211..287
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 183..259
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 187..263
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 193..269
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 156..232
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 195..271
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 159..235
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 184..260
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 199..275
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 160..236

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

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

if(Ext.form.HtmlEditor){
   Ext.apply(Ext.form.HtmlEditor.prototype, {
   createLinkText : 'URL을 입력해주세요:',
   buttonTips : {
            bold : {
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-ko.js and 30 other locations - About 1 day to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 177..253
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 190..266
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 171..247
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 211..287
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 183..259
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 187..263
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 193..269
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 195..271
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 159..235
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 184..260
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 199..275
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 160..236

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

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

if(Ext.form.HtmlEditor){
  Ext.apply(Ext.form.HtmlEditor.prototype, {
    createLinkText : 'Vă rugăm introduceti un URL pentru această legătură web:',
    buttonTips : {
      bold : {
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-ro.js and 30 other locations - About 1 day to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 177..253
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 190..266
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 171..247
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 211..287
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 183..259
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 187..263
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 193..269
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 156..232
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 195..271
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 159..235
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 184..260
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 199..275
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 160..236

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

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

if(Ext.form.HtmlEditor){
  Ext.apply(Ext.form.HtmlEditor.prototype, {
    createLinkText : 'لطفا آدرس لینک را وارد کنید:',
    buttonTips : {
      bold : {
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-fa.js and 30 other locations - About 1 day to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 177..253
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 190..266
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 211..287
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 183..259
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 187..263
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 193..269
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 156..232
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 195..271
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 159..235
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 184..260
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 199..275
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 160..236

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

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

if(Ext.form.HtmlEditor){
  Ext.apply(Ext.form.HtmlEditor.prototype, {
    createLinkText : 'Inserire un URL per il link:',
    buttonTips : {
      bold : {
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-it.js and 30 other locations - About 1 day to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 177..253
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 190..266
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 171..247
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 211..287
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 183..259
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 186..262
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 187..263
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 193..269
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 189..265
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 156..232
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 198..274
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 194..270
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 195..271
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 159..235
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 201..277
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 184..260
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 199..275
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 185..261
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 197..273
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 160..236

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Function EventManager has 385 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Ext.EventManager = function(){
    var docReadyEvent,
        docReadyProcId,
        docReadyState = false,
        DETECT_NATIVE = Ext.isGecko || Ext.isWebKit || Ext.isSafari,
Severity: Major
Found in app/assets/javascripts/ext/src/ext-core/src/core/EventManager.js - About 1 day to fix

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

        initTab : function(item, index){
            var before = this.strip.dom.childNodes[index],
                p = this.getTemplateArgs(item),
                el = before ?
                     this.itemTpl.insertBefore(before, p) :
    Severity: Major
    Found in app/assets/javascripts/ext/src/widgets/TabPanel.js and 1 other location - About 1 day to fix
    app/assets/javascripts/ext_extensions/VerticalTabPanel/Ext.ux.tot2ivn.VrTabPanel.js on lines 351..388

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

    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

        initTab : function(item, index){
            var before = this.strip.dom.childNodes[index],
                p = this.getTemplateArgs(item),
                el = before ?
                     this.itemTpl.insertBefore(before, p) :
    app/assets/javascripts/ext/src/widgets/TabPanel.js on lines 511..548

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

    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 HtmlEditor.js has 799 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * Ext JS Library 3.3.0
     * Copyright(c) 2006-2010 Ext JS, Inc.
     * licensing@extjs.com
     * http://www.extjs.com/license
    Severity: Major
    Found in app/assets/javascripts/ext/src/widgets/form/HtmlEditor.js - About 1 day to fix

      File ext-yui-adapter-debug.js has 783 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * Ext JS Library 3.3.0
       * Copyright(c) 2006-2010 Ext JS, Inc.
       * licensing@extjs.com
       * http://www.extjs.com/license
      Severity: Major
      Found in app/assets/javascripts/ext/adapter/yui/ext-yui-adapter-debug.js - About 1 day to fix

        File Panel.js has 782 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*!
         * Ext JS Library 3.3.0
         * Copyright(c) 2006-2010 Ext JS, Inc.
         * licensing@extjs.com
         * http://www.extjs.com/license
        Severity: Major
        Found in app/assets/javascripts/ext/src/widgets/Panel.js - About 1 day to fix

          Function MessageBox has a Cognitive Complexity of 92 (exceeds 5 allowed). Consider refactoring.
          Open

          Ext.MessageBox = function(){
              var dlg, opt, mask, waitTimer,
                  bodyEl, msgEl, textboxEl, textareaEl, progressBar, pp, iconEl, spacerEl,
                  buttons, activeTextEl, bwidth, bufferIcon = '', iconCls = '',
                  buttonNames = ['ok', 'yes', 'no', 'cancel'];
          Severity: Minor
          Found in app/assets/javascripts/ext/src/widgets/MessageBox.js - About 1 day to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Method update has a Cognitive Complexity of 92 (exceeds 5 allowed). Consider refactoring.
          Open

            def update
              set_toolbar
              find_user_and_profile
              success = true
              errors = Array.new
          Severity: Minor
          Found in app/controllers/user_profiles_controller.rb - About 1 day to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Severity
          Category
          Status
          Source
          Language