sibprogrammer/owp

View on GitHub

Showing 803 of 803 total issues

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

Date.monthNumbers = {
  Jan : 0,
  Feb : 1,
  Mar : 2,
  Apr : 3,
Severity: Major
Found in public/ext/locale/ext-lang-el_GR.js and 22 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 55..68
public/ext/locale/ext-lang-ca.js on lines 48..61
public/ext/locale/ext-lang-cs.js on lines 54..67
public/ext/locale/ext-lang-da.js on lines 57..70
public/ext/locale/ext-lang-en.js on lines 52..65
public/ext/locale/ext-lang-en_GB.js on lines 48..61
public/ext/locale/ext-lang-es.js on lines 49..62
public/ext/locale/ext-lang-fa.js on lines 50..63
public/ext/locale/ext-lang-fi.js on lines 51..64
public/ext/locale/ext-lang-he.js on lines 53..66
public/ext/locale/ext-lang-hr.js on lines 57..70
public/ext/locale/ext-lang-id.js on lines 62..75
public/ext/locale/ext-lang-it.js on lines 55..68
public/ext/locale/ext-lang-lt.js on lines 61..74
public/ext/locale/ext-lang-nl.js on lines 52..65
public/ext/locale/ext-lang-no_NB.js on lines 55..68
public/ext/locale/ext-lang-no_NN.js on lines 55..68
public/ext/locale/ext-lang-pl.js on lines 55..68
public/ext/locale/ext-lang-pt_BR.js on lines 59..72
public/ext/locale/ext-lang-pt_PT.js on lines 50..63
public/ext/locale/ext-lang-ro.js on lines 55..68
public/ext/locale/ext-lang-tr.js on lines 59..72

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

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

Date.monthNumbers = {
  Jan : 0,
  Feb : 1,
  Mar : 2,
  Apr : 3,
Severity: Major
Found in public/ext/locale/ext-lang-bg.js and 22 other locations - About 1 hr to fix
public/ext/locale/ext-lang-ca.js on lines 48..61
public/ext/locale/ext-lang-cs.js on lines 54..67
public/ext/locale/ext-lang-da.js on lines 57..70
public/ext/locale/ext-lang-el_GR.js on lines 75..88
public/ext/locale/ext-lang-en.js on lines 52..65
public/ext/locale/ext-lang-en_GB.js on lines 48..61
public/ext/locale/ext-lang-es.js on lines 49..62
public/ext/locale/ext-lang-fa.js on lines 50..63
public/ext/locale/ext-lang-fi.js on lines 51..64
public/ext/locale/ext-lang-he.js on lines 53..66
public/ext/locale/ext-lang-hr.js on lines 57..70
public/ext/locale/ext-lang-id.js on lines 62..75
public/ext/locale/ext-lang-it.js on lines 55..68
public/ext/locale/ext-lang-lt.js on lines 61..74
public/ext/locale/ext-lang-nl.js on lines 52..65
public/ext/locale/ext-lang-no_NB.js on lines 55..68
public/ext/locale/ext-lang-no_NN.js on lines 55..68
public/ext/locale/ext-lang-pl.js on lines 55..68
public/ext/locale/ext-lang-pt_BR.js on lines 59..72
public/ext/locale/ext-lang-pt_PT.js on lines 50..63
public/ext/locale/ext-lang-ro.js on lines 55..68
public/ext/locale/ext-lang-tr.js on lines 59..72

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

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

Date.monthNumbers = {
  jan: 0,
  feb: 1,
  mrt: 2,
  apr: 3,
Severity: Major
Found in public/ext/locale/ext-lang-nl.js and 22 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 55..68
public/ext/locale/ext-lang-ca.js on lines 48..61
public/ext/locale/ext-lang-cs.js on lines 54..67
public/ext/locale/ext-lang-da.js on lines 57..70
public/ext/locale/ext-lang-el_GR.js on lines 75..88
public/ext/locale/ext-lang-en.js on lines 52..65
public/ext/locale/ext-lang-en_GB.js on lines 48..61
public/ext/locale/ext-lang-es.js on lines 49..62
public/ext/locale/ext-lang-fa.js on lines 50..63
public/ext/locale/ext-lang-fi.js on lines 51..64
public/ext/locale/ext-lang-he.js on lines 53..66
public/ext/locale/ext-lang-hr.js on lines 57..70
public/ext/locale/ext-lang-id.js on lines 62..75
public/ext/locale/ext-lang-it.js on lines 55..68
public/ext/locale/ext-lang-lt.js on lines 61..74
public/ext/locale/ext-lang-no_NB.js on lines 55..68
public/ext/locale/ext-lang-no_NN.js on lines 55..68
public/ext/locale/ext-lang-pl.js on lines 55..68
public/ext/locale/ext-lang-pt_BR.js on lines 59..72
public/ext/locale/ext-lang-pt_PT.js on lines 50..63
public/ext/locale/ext-lang-ro.js on lines 55..68
public/ext/locale/ext-lang-tr.js on lines 59..72

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

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

Date.monthNumbers = {
  Gen : 0,
  Feb : 1,
  Mar : 2,
  Apr : 3,
Severity: Major
Found in public/ext/locale/ext-lang-it.js and 22 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 55..68
public/ext/locale/ext-lang-ca.js on lines 48..61
public/ext/locale/ext-lang-cs.js on lines 54..67
public/ext/locale/ext-lang-da.js on lines 57..70
public/ext/locale/ext-lang-el_GR.js on lines 75..88
public/ext/locale/ext-lang-en.js on lines 52..65
public/ext/locale/ext-lang-en_GB.js on lines 48..61
public/ext/locale/ext-lang-es.js on lines 49..62
public/ext/locale/ext-lang-fa.js on lines 50..63
public/ext/locale/ext-lang-fi.js on lines 51..64
public/ext/locale/ext-lang-he.js on lines 53..66
public/ext/locale/ext-lang-hr.js on lines 57..70
public/ext/locale/ext-lang-id.js on lines 62..75
public/ext/locale/ext-lang-lt.js on lines 61..74
public/ext/locale/ext-lang-nl.js on lines 52..65
public/ext/locale/ext-lang-no_NB.js on lines 55..68
public/ext/locale/ext-lang-no_NN.js on lines 55..68
public/ext/locale/ext-lang-pl.js on lines 55..68
public/ext/locale/ext-lang-pt_BR.js on lines 59..72
public/ext/locale/ext-lang-pt_PT.js on lines 50..63
public/ext/locale/ext-lang-ro.js on lines 55..68
public/ext/locale/ext-lang-tr.js on lines 59..72

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

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

Date.monthNumbers = {
  Jan : 0,
  Feb : 1,
  Mar : 2,
  Apr : 3,
Severity: Major
Found in public/ext/locale/ext-lang-da.js and 22 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 55..68
public/ext/locale/ext-lang-ca.js on lines 48..61
public/ext/locale/ext-lang-cs.js on lines 54..67
public/ext/locale/ext-lang-el_GR.js on lines 75..88
public/ext/locale/ext-lang-en.js on lines 52..65
public/ext/locale/ext-lang-en_GB.js on lines 48..61
public/ext/locale/ext-lang-es.js on lines 49..62
public/ext/locale/ext-lang-fa.js on lines 50..63
public/ext/locale/ext-lang-fi.js on lines 51..64
public/ext/locale/ext-lang-he.js on lines 53..66
public/ext/locale/ext-lang-hr.js on lines 57..70
public/ext/locale/ext-lang-id.js on lines 62..75
public/ext/locale/ext-lang-it.js on lines 55..68
public/ext/locale/ext-lang-lt.js on lines 61..74
public/ext/locale/ext-lang-nl.js on lines 52..65
public/ext/locale/ext-lang-no_NB.js on lines 55..68
public/ext/locale/ext-lang-no_NN.js on lines 55..68
public/ext/locale/ext-lang-pl.js on lines 55..68
public/ext/locale/ext-lang-pt_BR.js on lines 59..72
public/ext/locale/ext-lang-pt_PT.js on lines 50..63
public/ext/locale/ext-lang-ro.js on lines 55..68
public/ext/locale/ext-lang-tr.js on lines 59..72

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

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

Date.monthNumbers = {
  Jan : 0,
  Feb : 1,
  Mar : 2,
  Apr : 3,
Severity: Major
Found in public/ext/locale/ext-lang-hr.js and 22 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 55..68
public/ext/locale/ext-lang-ca.js on lines 48..61
public/ext/locale/ext-lang-cs.js on lines 54..67
public/ext/locale/ext-lang-da.js on lines 57..70
public/ext/locale/ext-lang-el_GR.js on lines 75..88
public/ext/locale/ext-lang-en.js on lines 52..65
public/ext/locale/ext-lang-en_GB.js on lines 48..61
public/ext/locale/ext-lang-es.js on lines 49..62
public/ext/locale/ext-lang-fa.js on lines 50..63
public/ext/locale/ext-lang-fi.js on lines 51..64
public/ext/locale/ext-lang-he.js on lines 53..66
public/ext/locale/ext-lang-id.js on lines 62..75
public/ext/locale/ext-lang-it.js on lines 55..68
public/ext/locale/ext-lang-lt.js on lines 61..74
public/ext/locale/ext-lang-nl.js on lines 52..65
public/ext/locale/ext-lang-no_NB.js on lines 55..68
public/ext/locale/ext-lang-no_NN.js on lines 55..68
public/ext/locale/ext-lang-pl.js on lines 55..68
public/ext/locale/ext-lang-pt_BR.js on lines 59..72
public/ext/locale/ext-lang-pt_PT.js on lines 50..63
public/ext/locale/ext-lang-ro.js on lines 55..68
public/ext/locale/ext-lang-tr.js on lines 59..72

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

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

Date.monthNumbers = {
  Sau : 0,
  Vas : 1,
  Kov : 2,
  Bal : 3,
Severity: Major
Found in public/ext/locale/ext-lang-lt.js and 22 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 55..68
public/ext/locale/ext-lang-ca.js on lines 48..61
public/ext/locale/ext-lang-cs.js on lines 54..67
public/ext/locale/ext-lang-da.js on lines 57..70
public/ext/locale/ext-lang-el_GR.js on lines 75..88
public/ext/locale/ext-lang-en.js on lines 52..65
public/ext/locale/ext-lang-en_GB.js on lines 48..61
public/ext/locale/ext-lang-es.js on lines 49..62
public/ext/locale/ext-lang-fa.js on lines 50..63
public/ext/locale/ext-lang-fi.js on lines 51..64
public/ext/locale/ext-lang-he.js on lines 53..66
public/ext/locale/ext-lang-hr.js on lines 57..70
public/ext/locale/ext-lang-id.js on lines 62..75
public/ext/locale/ext-lang-it.js on lines 55..68
public/ext/locale/ext-lang-nl.js on lines 52..65
public/ext/locale/ext-lang-no_NB.js on lines 55..68
public/ext/locale/ext-lang-no_NN.js on lines 55..68
public/ext/locale/ext-lang-pl.js on lines 55..68
public/ext/locale/ext-lang-pt_BR.js on lines 59..72
public/ext/locale/ext-lang-pt_PT.js on lines 50..63
public/ext/locale/ext-lang-ro.js on lines 55..68
public/ext/locale/ext-lang-tr.js on lines 59..72

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

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

Date.monthNumbers = {
  Ene : 0,
  Feb : 1,
  Mar : 2,
  Abr : 3,
Severity: Major
Found in public/ext/locale/ext-lang-es.js and 22 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 55..68
public/ext/locale/ext-lang-ca.js on lines 48..61
public/ext/locale/ext-lang-cs.js on lines 54..67
public/ext/locale/ext-lang-da.js on lines 57..70
public/ext/locale/ext-lang-el_GR.js on lines 75..88
public/ext/locale/ext-lang-en.js on lines 52..65
public/ext/locale/ext-lang-en_GB.js on lines 48..61
public/ext/locale/ext-lang-fa.js on lines 50..63
public/ext/locale/ext-lang-fi.js on lines 51..64
public/ext/locale/ext-lang-he.js on lines 53..66
public/ext/locale/ext-lang-hr.js on lines 57..70
public/ext/locale/ext-lang-id.js on lines 62..75
public/ext/locale/ext-lang-it.js on lines 55..68
public/ext/locale/ext-lang-lt.js on lines 61..74
public/ext/locale/ext-lang-nl.js on lines 52..65
public/ext/locale/ext-lang-no_NB.js on lines 55..68
public/ext/locale/ext-lang-no_NN.js on lines 55..68
public/ext/locale/ext-lang-pl.js on lines 55..68
public/ext/locale/ext-lang-pt_BR.js on lines 59..72
public/ext/locale/ext-lang-pt_PT.js on lines 50..63
public/ext/locale/ext-lang-ro.js on lines 55..68
public/ext/locale/ext-lang-tr.js on lines 59..72

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

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

      if (!result.success) {
        Ext.MessageBox.show({
          title: config.failure.title,
          msg: config.failure.msg,
          buttons: Ext.Msg.OK,
Severity: Major
Found in public/javascripts/application.js and 1 other location - About 1 hr to fix
public/javascripts/application.js on lines 235..250

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

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

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

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

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

Refactorings

Further Reading

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

Date.monthNumbers = {
  "1" : 0,
  "2" : 1,
  "3" : 2,
  "4" : 3,
Severity: Major
Found in public/ext/locale/ext-lang-ja.js and 5 other locations - About 1 hr to fix
public/ext/locale/ext-lang-fr.js on lines 63..76
public/ext/locale/ext-lang-fr_CA.js on lines 69..82
public/ext/locale/ext-lang-hu.js on lines 57..70
public/ext/locale/ext-lang-ru.js on lines 69..82
public/ext/locale/ext-lang-th.js on lines 55..68

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

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

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

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

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

Refactorings

Further Reading

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

Date.monthNumbers = {
  'Янв': 0,
  'Фев': 1,
  'Мар': 2,
  'Апр': 3,
Severity: Major
Found in public/ext/locale/ext-lang-ru.js and 5 other locations - About 1 hr to fix
public/ext/locale/ext-lang-fr.js on lines 63..76
public/ext/locale/ext-lang-fr_CA.js on lines 69..82
public/ext/locale/ext-lang-hu.js on lines 57..70
public/ext/locale/ext-lang-ja.js on lines 49..62
public/ext/locale/ext-lang-th.js on lines 55..68

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

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

      if (!result.success) {
        Ext.MessageBox.show({
          title: config.failure.title,
          msg: config.failure.msg,
          buttons: Ext.Msg.OK,
Severity: Major
Found in public/javascripts/application.js and 1 other location - About 1 hr to fix
public/javascripts/application.js on lines 170..183

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

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

Date.monthNumbers = {
  Jan : 0,
  Feb : 1,
  Mar : 2,
  Apr : 3,
Severity: Major
Found in public/ext/locale/ext-lang-no_NN.js and 22 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 55..68
public/ext/locale/ext-lang-ca.js on lines 48..61
public/ext/locale/ext-lang-cs.js on lines 54..67
public/ext/locale/ext-lang-da.js on lines 57..70
public/ext/locale/ext-lang-el_GR.js on lines 75..88
public/ext/locale/ext-lang-en.js on lines 52..65
public/ext/locale/ext-lang-en_GB.js on lines 48..61
public/ext/locale/ext-lang-es.js on lines 49..62
public/ext/locale/ext-lang-fa.js on lines 50..63
public/ext/locale/ext-lang-fi.js on lines 51..64
public/ext/locale/ext-lang-he.js on lines 53..66
public/ext/locale/ext-lang-hr.js on lines 57..70
public/ext/locale/ext-lang-id.js on lines 62..75
public/ext/locale/ext-lang-it.js on lines 55..68
public/ext/locale/ext-lang-lt.js on lines 61..74
public/ext/locale/ext-lang-nl.js on lines 52..65
public/ext/locale/ext-lang-no_NB.js on lines 55..68
public/ext/locale/ext-lang-pl.js on lines 55..68
public/ext/locale/ext-lang-pt_BR.js on lines 59..72
public/ext/locale/ext-lang-pt_PT.js on lines 50..63
public/ext/locale/ext-lang-ro.js on lines 55..68
public/ext/locale/ext-lang-tr.js on lines 59..72

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

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

Date.monthNumbers = {
  Jan : 0,
  Feb : 1,
  Mar : 2,
  Apr : 3,
Severity: Major
Found in public/ext/locale/ext-lang-no_NB.js and 22 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 55..68
public/ext/locale/ext-lang-ca.js on lines 48..61
public/ext/locale/ext-lang-cs.js on lines 54..67
public/ext/locale/ext-lang-da.js on lines 57..70
public/ext/locale/ext-lang-el_GR.js on lines 75..88
public/ext/locale/ext-lang-en.js on lines 52..65
public/ext/locale/ext-lang-en_GB.js on lines 48..61
public/ext/locale/ext-lang-es.js on lines 49..62
public/ext/locale/ext-lang-fa.js on lines 50..63
public/ext/locale/ext-lang-fi.js on lines 51..64
public/ext/locale/ext-lang-he.js on lines 53..66
public/ext/locale/ext-lang-hr.js on lines 57..70
public/ext/locale/ext-lang-id.js on lines 62..75
public/ext/locale/ext-lang-it.js on lines 55..68
public/ext/locale/ext-lang-lt.js on lines 61..74
public/ext/locale/ext-lang-nl.js on lines 52..65
public/ext/locale/ext-lang-no_NN.js on lines 55..68
public/ext/locale/ext-lang-pl.js on lines 55..68
public/ext/locale/ext-lang-pt_BR.js on lines 59..72
public/ext/locale/ext-lang-pt_PT.js on lines 50..63
public/ext/locale/ext-lang-ro.js on lines 55..68
public/ext/locale/ext-lang-tr.js on lines 59..72

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

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

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

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

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

Refactorings

Further Reading

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

Date.monthNumbers = {
  "Janvier" : 0,
  "Février" : 1,
  "Mars" : 2,
  "Avril" : 3,
Severity: Major
Found in public/ext/locale/ext-lang-fr_CA.js and 5 other locations - About 1 hr to fix
public/ext/locale/ext-lang-fr.js on lines 63..76
public/ext/locale/ext-lang-hu.js on lines 57..70
public/ext/locale/ext-lang-ja.js on lines 49..62
public/ext/locale/ext-lang-ru.js on lines 69..82
public/ext/locale/ext-lang-th.js on lines 55..68

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

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

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

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

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

Refactorings

Further Reading

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

Date.monthNumbers = {
  'Jan' : 0,
  'Feb' : 1,
  'Már' : 2,
  'Ápr' : 3,
Severity: Major
Found in public/ext/locale/ext-lang-hu.js and 5 other locations - About 1 hr to fix
public/ext/locale/ext-lang-fr.js on lines 63..76
public/ext/locale/ext-lang-fr_CA.js on lines 69..82
public/ext/locale/ext-lang-ja.js on lines 49..62
public/ext/locale/ext-lang-ru.js on lines 69..82
public/ext/locale/ext-lang-th.js on lines 55..68

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

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

Date.monthNumbers = {
  Ian : 0,
  Feb : 1,
  Mar : 2,
  Apr : 3,
Severity: Major
Found in public/ext/locale/ext-lang-ro.js and 22 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 55..68
public/ext/locale/ext-lang-ca.js on lines 48..61
public/ext/locale/ext-lang-cs.js on lines 54..67
public/ext/locale/ext-lang-da.js on lines 57..70
public/ext/locale/ext-lang-el_GR.js on lines 75..88
public/ext/locale/ext-lang-en.js on lines 52..65
public/ext/locale/ext-lang-en_GB.js on lines 48..61
public/ext/locale/ext-lang-es.js on lines 49..62
public/ext/locale/ext-lang-fa.js on lines 50..63
public/ext/locale/ext-lang-fi.js on lines 51..64
public/ext/locale/ext-lang-he.js on lines 53..66
public/ext/locale/ext-lang-hr.js on lines 57..70
public/ext/locale/ext-lang-id.js on lines 62..75
public/ext/locale/ext-lang-it.js on lines 55..68
public/ext/locale/ext-lang-lt.js on lines 61..74
public/ext/locale/ext-lang-nl.js on lines 52..65
public/ext/locale/ext-lang-no_NB.js on lines 55..68
public/ext/locale/ext-lang-no_NN.js on lines 55..68
public/ext/locale/ext-lang-pl.js on lines 55..68
public/ext/locale/ext-lang-pt_BR.js on lines 59..72
public/ext/locale/ext-lang-pt_PT.js on lines 50..63
public/ext/locale/ext-lang-tr.js on lines 59..72

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

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

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

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

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

Refactorings

Further Reading

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

Date.monthNumbers = {
  "Á€" : 0,
  "¡Ÿ" : 1,
  "ÁÕ€" : 2,
  "àÁÂ" : 3,
Severity: Major
Found in public/ext/locale/ext-lang-th.js and 5 other locations - About 1 hr to fix
public/ext/locale/ext-lang-fr.js on lines 63..76
public/ext/locale/ext-lang-fr_CA.js on lines 69..82
public/ext/locale/ext-lang-hu.js on lines 57..70
public/ext/locale/ext-lang-ja.js on lines 49..62
public/ext/locale/ext-lang-ru.js on lines 69..82

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

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

Date.monthNumbers = {
  Jan : 0,
  Feb : 1,
  Mar : 2,
  Apr : 3,
Severity: Major
Found in public/ext/locale/ext-lang-id.js and 22 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 55..68
public/ext/locale/ext-lang-ca.js on lines 48..61
public/ext/locale/ext-lang-cs.js on lines 54..67
public/ext/locale/ext-lang-da.js on lines 57..70
public/ext/locale/ext-lang-el_GR.js on lines 75..88
public/ext/locale/ext-lang-en.js on lines 52..65
public/ext/locale/ext-lang-en_GB.js on lines 48..61
public/ext/locale/ext-lang-es.js on lines 49..62
public/ext/locale/ext-lang-fa.js on lines 50..63
public/ext/locale/ext-lang-fi.js on lines 51..64
public/ext/locale/ext-lang-he.js on lines 53..66
public/ext/locale/ext-lang-hr.js on lines 57..70
public/ext/locale/ext-lang-it.js on lines 55..68
public/ext/locale/ext-lang-lt.js on lines 61..74
public/ext/locale/ext-lang-nl.js on lines 52..65
public/ext/locale/ext-lang-no_NB.js on lines 55..68
public/ext/locale/ext-lang-no_NN.js on lines 55..68
public/ext/locale/ext-lang-pl.js on lines 55..68
public/ext/locale/ext-lang-pt_BR.js on lines 59..72
public/ext/locale/ext-lang-pt_PT.js on lines 50..63
public/ext/locale/ext-lang-ro.js on lines 55..68
public/ext/locale/ext-lang-tr.js on lines 59..72

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

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

Date.monthNumbers = {
  Jan : 0,
  Feb : 1,
  Mar : 2,
  Apr : 3,
Severity: Major
Found in public/ext/locale/ext-lang-he.js and 22 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 55..68
public/ext/locale/ext-lang-ca.js on lines 48..61
public/ext/locale/ext-lang-cs.js on lines 54..67
public/ext/locale/ext-lang-da.js on lines 57..70
public/ext/locale/ext-lang-el_GR.js on lines 75..88
public/ext/locale/ext-lang-en.js on lines 52..65
public/ext/locale/ext-lang-en_GB.js on lines 48..61
public/ext/locale/ext-lang-es.js on lines 49..62
public/ext/locale/ext-lang-fa.js on lines 50..63
public/ext/locale/ext-lang-fi.js on lines 51..64
public/ext/locale/ext-lang-hr.js on lines 57..70
public/ext/locale/ext-lang-id.js on lines 62..75
public/ext/locale/ext-lang-it.js on lines 55..68
public/ext/locale/ext-lang-lt.js on lines 61..74
public/ext/locale/ext-lang-nl.js on lines 52..65
public/ext/locale/ext-lang-no_NB.js on lines 55..68
public/ext/locale/ext-lang-no_NN.js on lines 55..68
public/ext/locale/ext-lang-pl.js on lines 55..68
public/ext/locale/ext-lang-pt_BR.js on lines 59..72
public/ext/locale/ext-lang-pt_PT.js on lines 50..63
public/ext/locale/ext-lang-ro.js on lines 55..68
public/ext/locale/ext-lang-tr.js on lines 59..72

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

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