sibprogrammer/owp

View on GitHub

Showing 803 of 803 total issues

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

if(Ext.PagingToolbar){
   Ext.apply(Ext.PagingToolbar.prototype, {
      beforePageText : "Stranica",
      afterPageText  : "od {0}",
      firstText      : "Prva stranica",
Severity: Major
Found in public/ext/locale/ext-lang-hr.js and 43 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 101..113
public/ext/locale/ext-lang-bg.js on lines 117..129
public/ext/locale/ext-lang-ca.js on lines 120..132
public/ext/locale/ext-lang-cs.js on lines 124..136
public/ext/locale/ext-lang-da.js on lines 127..139
public/ext/locale/ext-lang-de.js on lines 135..147
public/ext/locale/ext-lang-el_GR.js on lines 139..151
public/ext/locale/ext-lang-en.js on lines 124..136
public/ext/locale/ext-lang-en_GB.js on lines 120..132
public/ext/locale/ext-lang-es.js on lines 123..135
public/ext/locale/ext-lang-fa.js on lines 112..124
public/ext/locale/ext-lang-fi.js on lines 125..137
public/ext/locale/ext-lang-fr.js on lines 141..153
public/ext/locale/ext-lang-fr_CA.js on lines 136..148
public/ext/locale/ext-lang-gr.js on lines 93..105
public/ext/locale/ext-lang-he.js on lines 123..135
public/ext/locale/ext-lang-hu.js on lines 127..139
public/ext/locale/ext-lang-id.js on lines 132..144
public/ext/locale/ext-lang-it.js on lines 125..137
public/ext/locale/ext-lang-ja.js on lines 123..135
public/ext/locale/ext-lang-ko.js on lines 97..109
public/ext/locale/ext-lang-lt.js on lines 138..150
public/ext/locale/ext-lang-lv.js on lines 94..106
public/ext/locale/ext-lang-mk.js on lines 94..106
public/ext/locale/ext-lang-nl.js on lines 128..140
public/ext/locale/ext-lang-no_NB.js on lines 125..137
public/ext/locale/ext-lang-no_NN.js on lines 125..137
public/ext/locale/ext-lang-pl.js on lines 135..147
public/ext/locale/ext-lang-pt.js on lines 100..112
public/ext/locale/ext-lang-pt_BR.js on lines 142..154
public/ext/locale/ext-lang-pt_PT.js on lines 120..132
public/ext/locale/ext-lang-ro.js on lines 125..137
public/ext/locale/ext-lang-ru.js on lines 139..151
public/ext/locale/ext-lang-sk.js on lines 99..111
public/ext/locale/ext-lang-sl.js on lines 94..106
public/ext/locale/ext-lang-sr.js on lines 96..108
public/ext/locale/ext-lang-sr_RS.js on lines 96..108
public/ext/locale/ext-lang-sv_SE.js on lines 96..108
public/ext/locale/ext-lang-th.js on lines 125..137
public/ext/locale/ext-lang-tr.js on lines 139..151
public/ext/locale/ext-lang-ukr.js on lines 101..113
public/ext/locale/ext-lang-vn.js on lines 99..111
public/ext/locale/ext-lang-zh_TW.js on lines 96..108

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

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

if(Ext.PagingToolbar){
   Ext.apply(Ext.PagingToolbar.prototype, {
      beforePageText : "Page",
      afterPageText  : "de {0}",
      firstText      : "Première page",
Severity: Major
Found in public/ext/locale/ext-lang-fr_CA.js and 43 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 101..113
public/ext/locale/ext-lang-bg.js on lines 117..129
public/ext/locale/ext-lang-ca.js on lines 120..132
public/ext/locale/ext-lang-cs.js on lines 124..136
public/ext/locale/ext-lang-da.js on lines 127..139
public/ext/locale/ext-lang-de.js on lines 135..147
public/ext/locale/ext-lang-el_GR.js on lines 139..151
public/ext/locale/ext-lang-en.js on lines 124..136
public/ext/locale/ext-lang-en_GB.js on lines 120..132
public/ext/locale/ext-lang-es.js on lines 123..135
public/ext/locale/ext-lang-fa.js on lines 112..124
public/ext/locale/ext-lang-fi.js on lines 125..137
public/ext/locale/ext-lang-fr.js on lines 141..153
public/ext/locale/ext-lang-gr.js on lines 93..105
public/ext/locale/ext-lang-he.js on lines 123..135
public/ext/locale/ext-lang-hr.js on lines 127..139
public/ext/locale/ext-lang-hu.js on lines 127..139
public/ext/locale/ext-lang-id.js on lines 132..144
public/ext/locale/ext-lang-it.js on lines 125..137
public/ext/locale/ext-lang-ja.js on lines 123..135
public/ext/locale/ext-lang-ko.js on lines 97..109
public/ext/locale/ext-lang-lt.js on lines 138..150
public/ext/locale/ext-lang-lv.js on lines 94..106
public/ext/locale/ext-lang-mk.js on lines 94..106
public/ext/locale/ext-lang-nl.js on lines 128..140
public/ext/locale/ext-lang-no_NB.js on lines 125..137
public/ext/locale/ext-lang-no_NN.js on lines 125..137
public/ext/locale/ext-lang-pl.js on lines 135..147
public/ext/locale/ext-lang-pt.js on lines 100..112
public/ext/locale/ext-lang-pt_BR.js on lines 142..154
public/ext/locale/ext-lang-pt_PT.js on lines 120..132
public/ext/locale/ext-lang-ro.js on lines 125..137
public/ext/locale/ext-lang-ru.js on lines 139..151
public/ext/locale/ext-lang-sk.js on lines 99..111
public/ext/locale/ext-lang-sl.js on lines 94..106
public/ext/locale/ext-lang-sr.js on lines 96..108
public/ext/locale/ext-lang-sr_RS.js on lines 96..108
public/ext/locale/ext-lang-sv_SE.js on lines 96..108
public/ext/locale/ext-lang-th.js on lines 125..137
public/ext/locale/ext-lang-tr.js on lines 139..151
public/ext/locale/ext-lang-ukr.js on lines 101..113
public/ext/locale/ext-lang-vn.js on lines 99..111
public/ext/locale/ext-lang-zh_TW.js on lines 96..108

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

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

if(Ext.PagingToolbar){
   Ext.apply(Ext.PagingToolbar.prototype, {
      beforePageText : "Página",
      afterPageText  : "de {0}",
      firstText      : "Primeira Página",
Severity: Major
Found in public/ext/locale/ext-lang-pt.js and 43 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 101..113
public/ext/locale/ext-lang-bg.js on lines 117..129
public/ext/locale/ext-lang-ca.js on lines 120..132
public/ext/locale/ext-lang-cs.js on lines 124..136
public/ext/locale/ext-lang-da.js on lines 127..139
public/ext/locale/ext-lang-de.js on lines 135..147
public/ext/locale/ext-lang-el_GR.js on lines 139..151
public/ext/locale/ext-lang-en.js on lines 124..136
public/ext/locale/ext-lang-en_GB.js on lines 120..132
public/ext/locale/ext-lang-es.js on lines 123..135
public/ext/locale/ext-lang-fa.js on lines 112..124
public/ext/locale/ext-lang-fi.js on lines 125..137
public/ext/locale/ext-lang-fr.js on lines 141..153
public/ext/locale/ext-lang-fr_CA.js on lines 136..148
public/ext/locale/ext-lang-gr.js on lines 93..105
public/ext/locale/ext-lang-he.js on lines 123..135
public/ext/locale/ext-lang-hr.js on lines 127..139
public/ext/locale/ext-lang-hu.js on lines 127..139
public/ext/locale/ext-lang-id.js on lines 132..144
public/ext/locale/ext-lang-it.js on lines 125..137
public/ext/locale/ext-lang-ja.js on lines 123..135
public/ext/locale/ext-lang-ko.js on lines 97..109
public/ext/locale/ext-lang-lt.js on lines 138..150
public/ext/locale/ext-lang-lv.js on lines 94..106
public/ext/locale/ext-lang-mk.js on lines 94..106
public/ext/locale/ext-lang-nl.js on lines 128..140
public/ext/locale/ext-lang-no_NB.js on lines 125..137
public/ext/locale/ext-lang-no_NN.js on lines 125..137
public/ext/locale/ext-lang-pl.js on lines 135..147
public/ext/locale/ext-lang-pt_BR.js on lines 142..154
public/ext/locale/ext-lang-pt_PT.js on lines 120..132
public/ext/locale/ext-lang-ro.js on lines 125..137
public/ext/locale/ext-lang-ru.js on lines 139..151
public/ext/locale/ext-lang-sk.js on lines 99..111
public/ext/locale/ext-lang-sl.js on lines 94..106
public/ext/locale/ext-lang-sr.js on lines 96..108
public/ext/locale/ext-lang-sr_RS.js on lines 96..108
public/ext/locale/ext-lang-sv_SE.js on lines 96..108
public/ext/locale/ext-lang-th.js on lines 125..137
public/ext/locale/ext-lang-tr.js on lines 139..151
public/ext/locale/ext-lang-ukr.js on lines 101..113
public/ext/locale/ext-lang-vn.js on lines 99..111
public/ext/locale/ext-lang-zh_TW.js on lines 96..108

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

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

if(Ext.PagingToolbar){
   Ext.apply(Ext.PagingToolbar.prototype, {
      beforePageText : "Сторінка",
      afterPageText  : "з {0}",
      firstText      : "Перша сторінка",
Severity: Major
Found in public/ext/locale/ext-lang-ukr.js and 43 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 101..113
public/ext/locale/ext-lang-bg.js on lines 117..129
public/ext/locale/ext-lang-ca.js on lines 120..132
public/ext/locale/ext-lang-cs.js on lines 124..136
public/ext/locale/ext-lang-da.js on lines 127..139
public/ext/locale/ext-lang-de.js on lines 135..147
public/ext/locale/ext-lang-el_GR.js on lines 139..151
public/ext/locale/ext-lang-en.js on lines 124..136
public/ext/locale/ext-lang-en_GB.js on lines 120..132
public/ext/locale/ext-lang-es.js on lines 123..135
public/ext/locale/ext-lang-fa.js on lines 112..124
public/ext/locale/ext-lang-fi.js on lines 125..137
public/ext/locale/ext-lang-fr.js on lines 141..153
public/ext/locale/ext-lang-fr_CA.js on lines 136..148
public/ext/locale/ext-lang-gr.js on lines 93..105
public/ext/locale/ext-lang-he.js on lines 123..135
public/ext/locale/ext-lang-hr.js on lines 127..139
public/ext/locale/ext-lang-hu.js on lines 127..139
public/ext/locale/ext-lang-id.js on lines 132..144
public/ext/locale/ext-lang-it.js on lines 125..137
public/ext/locale/ext-lang-ja.js on lines 123..135
public/ext/locale/ext-lang-ko.js on lines 97..109
public/ext/locale/ext-lang-lt.js on lines 138..150
public/ext/locale/ext-lang-lv.js on lines 94..106
public/ext/locale/ext-lang-mk.js on lines 94..106
public/ext/locale/ext-lang-nl.js on lines 128..140
public/ext/locale/ext-lang-no_NB.js on lines 125..137
public/ext/locale/ext-lang-no_NN.js on lines 125..137
public/ext/locale/ext-lang-pl.js on lines 135..147
public/ext/locale/ext-lang-pt.js on lines 100..112
public/ext/locale/ext-lang-pt_BR.js on lines 142..154
public/ext/locale/ext-lang-pt_PT.js on lines 120..132
public/ext/locale/ext-lang-ro.js on lines 125..137
public/ext/locale/ext-lang-ru.js on lines 139..151
public/ext/locale/ext-lang-sk.js on lines 99..111
public/ext/locale/ext-lang-sl.js on lines 94..106
public/ext/locale/ext-lang-sr.js on lines 96..108
public/ext/locale/ext-lang-sr_RS.js on lines 96..108
public/ext/locale/ext-lang-sv_SE.js on lines 96..108
public/ext/locale/ext-lang-th.js on lines 125..137
public/ext/locale/ext-lang-tr.js on lines 139..151
public/ext/locale/ext-lang-vn.js on lines 99..111
public/ext/locale/ext-lang-zh_TW.js on lines 96..108

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

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

Method sync_virtual_servers has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
Open

  def sync_virtual_servers
    ves_on_server = rpc_client.exec('vzlist', '-a -H -o veid,hostname,ip,status')['output'].split("\n")
    # skip error lines
    ves_on_server = ves_on_server.find_all{ |item| item =~ /^\s*\d+/ }

Severity: Minor
Found in app/models/hardware_server.rb - About 2 hrs 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 get_usage_stats has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def get_usage_stats(virtual_server)
      is_running = 'running' == virtual_server.real_state

      stats = []

Severity: Major
Found in app/controllers/admin/virtual_servers_controller.rb - About 2 hrs to fix

    Method new has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def new
        @available_locales = I18n.available_locales.map {
          |locale| [locale.to_s, I18n.t('language.title', :locale => locale) + " (#{locale})"]
        }.sort
    
    
    Severity: Major
    Found in app/controllers/sessions_controller.rb - About 2 hrs to fix

      Method get_usage_stats has 52 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        def get_usage_stats(virtual_server)
          is_running = 'running' == virtual_server.real_state
      
          stats = []
      
      
      Severity: Major
      Found in app/controllers/api/virtual_servers_controller.rb - About 2 hrs to fix

        File ext-lang-ro.js has 253 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*!
         * Ext JS Library 3.2.1
         * Copyright(c) 2006-2010 Ext JS, Inc.
         * licensing@extjs.com
         * http://www.extjs.com/license
        Severity: Minor
        Found in public/ext/locale/ext-lang-ro.js - About 2 hrs to fix

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

              if counter and is_running and (counter.limit.to_i > 0)
                stats << {
                    :parameter => 'memory',
                    :value => {
                        'text' => t(
          Severity: Major
          Found in app/controllers/api/virtual_servers_controller.rb and 1 other location - About 2 hrs to fix
          app/controllers/api/virtual_servers_controller.rb on lines 128..144

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

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

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

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

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

          Refactorings

          Further Reading

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

              if counter and is_running and (counter.limit.to_i > 0)
                stats << {
                    :parameter => 'disk_space',
                    :value => {
                        'text' => t(
          Severity: Major
          Found in app/controllers/api/virtual_servers_controller.rb and 1 other location - About 2 hrs to fix
          app/controllers/api/virtual_servers_controller.rb on lines 148..164

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

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

          if(Ext.form.DateField){
            Ext.apply(Ext.form.DateField.prototype, {
              disabledDaysText  : "無効",
              disabledDatesText : "無効",
              minText           : "このフィールドの日付は、 {0} 以降の日付に設定してください。",
          Severity: Major
          Found in public/ext/locale/ext-lang-ja.js and 25 other locations - About 2 hrs to fix
          public/ext/locale/ext-lang-af.js on lines 133..143
          public/ext/locale/ext-lang-bg.js on lines 149..159
          public/ext/locale/ext-lang-ca.js on lines 158..168
          public/ext/locale/ext-lang-cs.js on lines 156..166
          public/ext/locale/ext-lang-da.js on lines 159..169
          public/ext/locale/ext-lang-de.js on lines 168..178
          public/ext/locale/ext-lang-en.js on lines 166..176
          public/ext/locale/ext-lang-en_GB.js on lines 162..172
          public/ext/locale/ext-lang-es.js on lines 161..171
          public/ext/locale/ext-lang-fi.js on lines 161..171
          public/ext/locale/ext-lang-fr.js on lines 183..193
          public/ext/locale/ext-lang-he.js on lines 155..165
          public/ext/locale/ext-lang-hu.js on lines 159..169
          public/ext/locale/ext-lang-it.js on lines 157..167
          public/ext/locale/ext-lang-lt.js on lines 170..180
          public/ext/locale/ext-lang-nl.js on lines 166..176
          public/ext/locale/ext-lang-no_NB.js on lines 157..167
          public/ext/locale/ext-lang-no_NN.js on lines 157..167
          public/ext/locale/ext-lang-pl.js on lines 167..177
          public/ext/locale/ext-lang-pt_PT.js on lines 156..166
          public/ext/locale/ext-lang-ro.js on lines 157..167
          public/ext/locale/ext-lang-ru.js on lines 171..181
          public/ext/locale/ext-lang-sr.js on lines 128..138
          public/ext/locale/ext-lang-th.js on lines 157..167
          public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

          if(Ext.form.DateField){
            Ext.apply(Ext.form.DateField.prototype, {
              disabledDaysText  : "Deshabilitado",
              disabledDatesText : "Deshabilitado",
              minText           : "La fecha para este campo debe ser posterior a {0}",
          Severity: Major
          Found in public/ext/locale/ext-lang-es.js and 25 other locations - About 2 hrs to fix
          public/ext/locale/ext-lang-af.js on lines 133..143
          public/ext/locale/ext-lang-bg.js on lines 149..159
          public/ext/locale/ext-lang-ca.js on lines 158..168
          public/ext/locale/ext-lang-cs.js on lines 156..166
          public/ext/locale/ext-lang-da.js on lines 159..169
          public/ext/locale/ext-lang-de.js on lines 168..178
          public/ext/locale/ext-lang-en.js on lines 166..176
          public/ext/locale/ext-lang-en_GB.js on lines 162..172
          public/ext/locale/ext-lang-fi.js on lines 161..171
          public/ext/locale/ext-lang-fr.js on lines 183..193
          public/ext/locale/ext-lang-he.js on lines 155..165
          public/ext/locale/ext-lang-hu.js on lines 159..169
          public/ext/locale/ext-lang-it.js on lines 157..167
          public/ext/locale/ext-lang-ja.js on lines 161..171
          public/ext/locale/ext-lang-lt.js on lines 170..180
          public/ext/locale/ext-lang-nl.js on lines 166..176
          public/ext/locale/ext-lang-no_NB.js on lines 157..167
          public/ext/locale/ext-lang-no_NN.js on lines 157..167
          public/ext/locale/ext-lang-pl.js on lines 167..177
          public/ext/locale/ext-lang-pt_PT.js on lines 156..166
          public/ext/locale/ext-lang-ro.js on lines 157..167
          public/ext/locale/ext-lang-ru.js on lines 171..181
          public/ext/locale/ext-lang-sr.js on lines 128..138
          public/ext/locale/ext-lang-th.js on lines 157..167
          public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

          if(Ext.form.DateField){
             Ext.apply(Ext.form.DateField.prototype, {
                disabledDaysText  : "Inaktiveret",
                disabledDatesText : "Inaktiveret",
                minText           : "Datoen i dette felt skal være efter {0}",
          Severity: Major
          Found in public/ext/locale/ext-lang-da.js and 25 other locations - About 2 hrs to fix
          public/ext/locale/ext-lang-af.js on lines 133..143
          public/ext/locale/ext-lang-bg.js on lines 149..159
          public/ext/locale/ext-lang-ca.js on lines 158..168
          public/ext/locale/ext-lang-cs.js on lines 156..166
          public/ext/locale/ext-lang-de.js on lines 168..178
          public/ext/locale/ext-lang-en.js on lines 166..176
          public/ext/locale/ext-lang-en_GB.js on lines 162..172
          public/ext/locale/ext-lang-es.js on lines 161..171
          public/ext/locale/ext-lang-fi.js on lines 161..171
          public/ext/locale/ext-lang-fr.js on lines 183..193
          public/ext/locale/ext-lang-he.js on lines 155..165
          public/ext/locale/ext-lang-hu.js on lines 159..169
          public/ext/locale/ext-lang-it.js on lines 157..167
          public/ext/locale/ext-lang-ja.js on lines 161..171
          public/ext/locale/ext-lang-lt.js on lines 170..180
          public/ext/locale/ext-lang-nl.js on lines 166..176
          public/ext/locale/ext-lang-no_NB.js on lines 157..167
          public/ext/locale/ext-lang-no_NN.js on lines 157..167
          public/ext/locale/ext-lang-pl.js on lines 167..177
          public/ext/locale/ext-lang-pt_PT.js on lines 156..166
          public/ext/locale/ext-lang-ro.js on lines 157..167
          public/ext/locale/ext-lang-ru.js on lines 171..181
          public/ext/locale/ext-lang-sr.js on lines 128..138
          public/ext/locale/ext-lang-th.js on lines 157..167
          public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

          if(Ext.form.DateField){
            Ext.apply(Ext.form.DateField.prototype, {
              disabledDaysText  : "Deshabilitat",
              disabledDatesText : "Deshabilitat",
              minText           : "La data en aquest camp ha de ser posterior a {0}",
          Severity: Major
          Found in public/ext/locale/ext-lang-ca.js and 25 other locations - About 2 hrs to fix
          public/ext/locale/ext-lang-af.js on lines 133..143
          public/ext/locale/ext-lang-bg.js on lines 149..159
          public/ext/locale/ext-lang-cs.js on lines 156..166
          public/ext/locale/ext-lang-da.js on lines 159..169
          public/ext/locale/ext-lang-de.js on lines 168..178
          public/ext/locale/ext-lang-en.js on lines 166..176
          public/ext/locale/ext-lang-en_GB.js on lines 162..172
          public/ext/locale/ext-lang-es.js on lines 161..171
          public/ext/locale/ext-lang-fi.js on lines 161..171
          public/ext/locale/ext-lang-fr.js on lines 183..193
          public/ext/locale/ext-lang-he.js on lines 155..165
          public/ext/locale/ext-lang-hu.js on lines 159..169
          public/ext/locale/ext-lang-it.js on lines 157..167
          public/ext/locale/ext-lang-ja.js on lines 161..171
          public/ext/locale/ext-lang-lt.js on lines 170..180
          public/ext/locale/ext-lang-nl.js on lines 166..176
          public/ext/locale/ext-lang-no_NB.js on lines 157..167
          public/ext/locale/ext-lang-no_NN.js on lines 157..167
          public/ext/locale/ext-lang-pl.js on lines 167..177
          public/ext/locale/ext-lang-pt_PT.js on lines 156..166
          public/ext/locale/ext-lang-ro.js on lines 157..167
          public/ext/locale/ext-lang-ru.js on lines 171..181
          public/ext/locale/ext-lang-sr.js on lines 128..138
          public/ext/locale/ext-lang-th.js on lines 157..167
          public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

          if(Ext.form.DateField){
             Ext.apply(Ext.form.DateField.prototype, {
                disabledDaysText  : "Désactivé",
                disabledDatesText : "Désactivé",
                minText           : "La date de ce champ ne peut être antérieure au {0}",
          Severity: Major
          Found in public/ext/locale/ext-lang-fr.js and 25 other locations - About 2 hrs to fix
          public/ext/locale/ext-lang-af.js on lines 133..143
          public/ext/locale/ext-lang-bg.js on lines 149..159
          public/ext/locale/ext-lang-ca.js on lines 158..168
          public/ext/locale/ext-lang-cs.js on lines 156..166
          public/ext/locale/ext-lang-da.js on lines 159..169
          public/ext/locale/ext-lang-de.js on lines 168..178
          public/ext/locale/ext-lang-en.js on lines 166..176
          public/ext/locale/ext-lang-en_GB.js on lines 162..172
          public/ext/locale/ext-lang-es.js on lines 161..171
          public/ext/locale/ext-lang-fi.js on lines 161..171
          public/ext/locale/ext-lang-he.js on lines 155..165
          public/ext/locale/ext-lang-hu.js on lines 159..169
          public/ext/locale/ext-lang-it.js on lines 157..167
          public/ext/locale/ext-lang-ja.js on lines 161..171
          public/ext/locale/ext-lang-lt.js on lines 170..180
          public/ext/locale/ext-lang-nl.js on lines 166..176
          public/ext/locale/ext-lang-no_NB.js on lines 157..167
          public/ext/locale/ext-lang-no_NN.js on lines 157..167
          public/ext/locale/ext-lang-pl.js on lines 167..177
          public/ext/locale/ext-lang-pt_PT.js on lines 156..166
          public/ext/locale/ext-lang-ro.js on lines 157..167
          public/ext/locale/ext-lang-ru.js on lines 171..181
          public/ext/locale/ext-lang-sr.js on lines 128..138
          public/ext/locale/ext-lang-th.js on lines 157..167
          public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

          if(Ext.form.DateField){
            Ext.apply(Ext.form.DateField.prototype, {
              disabledDaysText  : "Neprieinama",
              disabledDatesText : "Neprieinama",
              minText           : "Šiame lauke data turi būti didesnė už {0}",
          Severity: Major
          Found in public/ext/locale/ext-lang-lt.js and 25 other locations - About 2 hrs to fix
          public/ext/locale/ext-lang-af.js on lines 133..143
          public/ext/locale/ext-lang-bg.js on lines 149..159
          public/ext/locale/ext-lang-ca.js on lines 158..168
          public/ext/locale/ext-lang-cs.js on lines 156..166
          public/ext/locale/ext-lang-da.js on lines 159..169
          public/ext/locale/ext-lang-de.js on lines 168..178
          public/ext/locale/ext-lang-en.js on lines 166..176
          public/ext/locale/ext-lang-en_GB.js on lines 162..172
          public/ext/locale/ext-lang-es.js on lines 161..171
          public/ext/locale/ext-lang-fi.js on lines 161..171
          public/ext/locale/ext-lang-fr.js on lines 183..193
          public/ext/locale/ext-lang-he.js on lines 155..165
          public/ext/locale/ext-lang-hu.js on lines 159..169
          public/ext/locale/ext-lang-it.js on lines 157..167
          public/ext/locale/ext-lang-ja.js on lines 161..171
          public/ext/locale/ext-lang-nl.js on lines 166..176
          public/ext/locale/ext-lang-no_NB.js on lines 157..167
          public/ext/locale/ext-lang-no_NN.js on lines 157..167
          public/ext/locale/ext-lang-pl.js on lines 167..177
          public/ext/locale/ext-lang-pt_PT.js on lines 156..166
          public/ext/locale/ext-lang-ro.js on lines 157..167
          public/ext/locale/ext-lang-ru.js on lines 171..181
          public/ext/locale/ext-lang-sr.js on lines 128..138
          public/ext/locale/ext-lang-th.js on lines 157..167
          public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

          if(Ext.form.DateField){
            Ext.apply(Ext.form.DateField.prototype, {
              disabledDaysText  : "Не доступно",
              disabledDatesText : "Не доступно",
              minText           : "Дата в этом поле должна быть позде {0}",
          Severity: Major
          Found in public/ext/locale/ext-lang-ru.js and 25 other locations - About 2 hrs to fix
          public/ext/locale/ext-lang-af.js on lines 133..143
          public/ext/locale/ext-lang-bg.js on lines 149..159
          public/ext/locale/ext-lang-ca.js on lines 158..168
          public/ext/locale/ext-lang-cs.js on lines 156..166
          public/ext/locale/ext-lang-da.js on lines 159..169
          public/ext/locale/ext-lang-de.js on lines 168..178
          public/ext/locale/ext-lang-en.js on lines 166..176
          public/ext/locale/ext-lang-en_GB.js on lines 162..172
          public/ext/locale/ext-lang-es.js on lines 161..171
          public/ext/locale/ext-lang-fi.js on lines 161..171
          public/ext/locale/ext-lang-fr.js on lines 183..193
          public/ext/locale/ext-lang-he.js on lines 155..165
          public/ext/locale/ext-lang-hu.js on lines 159..169
          public/ext/locale/ext-lang-it.js on lines 157..167
          public/ext/locale/ext-lang-ja.js on lines 161..171
          public/ext/locale/ext-lang-lt.js on lines 170..180
          public/ext/locale/ext-lang-nl.js on lines 166..176
          public/ext/locale/ext-lang-no_NB.js on lines 157..167
          public/ext/locale/ext-lang-no_NN.js on lines 157..167
          public/ext/locale/ext-lang-pl.js on lines 167..177
          public/ext/locale/ext-lang-pt_PT.js on lines 156..166
          public/ext/locale/ext-lang-ro.js on lines 157..167
          public/ext/locale/ext-lang-sr.js on lines 128..138
          public/ext/locale/ext-lang-th.js on lines 157..167
          public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

          if(Ext.form.DateField){
             Ext.apply(Ext.form.DateField.prototype, {
                disabledDaysText  : "nicht erlaubt",
                disabledDatesText : "nicht erlaubt",
                minText           : "Das Datum in diesem Feld muss nach dem {0} liegen",
          Severity: Major
          Found in public/ext/locale/ext-lang-de.js and 25 other locations - About 2 hrs to fix
          public/ext/locale/ext-lang-af.js on lines 133..143
          public/ext/locale/ext-lang-bg.js on lines 149..159
          public/ext/locale/ext-lang-ca.js on lines 158..168
          public/ext/locale/ext-lang-cs.js on lines 156..166
          public/ext/locale/ext-lang-da.js on lines 159..169
          public/ext/locale/ext-lang-en.js on lines 166..176
          public/ext/locale/ext-lang-en_GB.js on lines 162..172
          public/ext/locale/ext-lang-es.js on lines 161..171
          public/ext/locale/ext-lang-fi.js on lines 161..171
          public/ext/locale/ext-lang-fr.js on lines 183..193
          public/ext/locale/ext-lang-he.js on lines 155..165
          public/ext/locale/ext-lang-hu.js on lines 159..169
          public/ext/locale/ext-lang-it.js on lines 157..167
          public/ext/locale/ext-lang-ja.js on lines 161..171
          public/ext/locale/ext-lang-lt.js on lines 170..180
          public/ext/locale/ext-lang-nl.js on lines 166..176
          public/ext/locale/ext-lang-no_NB.js on lines 157..167
          public/ext/locale/ext-lang-no_NN.js on lines 157..167
          public/ext/locale/ext-lang-pl.js on lines 167..177
          public/ext/locale/ext-lang-pt_PT.js on lines 156..166
          public/ext/locale/ext-lang-ro.js on lines 157..167
          public/ext/locale/ext-lang-ru.js on lines 171..181
          public/ext/locale/ext-lang-sr.js on lines 128..138
          public/ext/locale/ext-lang-th.js on lines 157..167
          public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

          if(Ext.form.DateField){
            Ext.apply(Ext.form.DateField.prototype, {
              disabledDaysText  : "Deaktivert",
              disabledDatesText : "Deaktivert",
              minText           : "Datoen i dette feltet må være etter {0}",
          Severity: Major
          Found in public/ext/locale/ext-lang-no_NB.js and 25 other locations - About 2 hrs to fix
          public/ext/locale/ext-lang-af.js on lines 133..143
          public/ext/locale/ext-lang-bg.js on lines 149..159
          public/ext/locale/ext-lang-ca.js on lines 158..168
          public/ext/locale/ext-lang-cs.js on lines 156..166
          public/ext/locale/ext-lang-da.js on lines 159..169
          public/ext/locale/ext-lang-de.js on lines 168..178
          public/ext/locale/ext-lang-en.js on lines 166..176
          public/ext/locale/ext-lang-en_GB.js on lines 162..172
          public/ext/locale/ext-lang-es.js on lines 161..171
          public/ext/locale/ext-lang-fi.js on lines 161..171
          public/ext/locale/ext-lang-fr.js on lines 183..193
          public/ext/locale/ext-lang-he.js on lines 155..165
          public/ext/locale/ext-lang-hu.js on lines 159..169
          public/ext/locale/ext-lang-it.js on lines 157..167
          public/ext/locale/ext-lang-ja.js on lines 161..171
          public/ext/locale/ext-lang-lt.js on lines 170..180
          public/ext/locale/ext-lang-nl.js on lines 166..176
          public/ext/locale/ext-lang-no_NN.js on lines 157..167
          public/ext/locale/ext-lang-pl.js on lines 167..177
          public/ext/locale/ext-lang-pt_PT.js on lines 156..166
          public/ext/locale/ext-lang-ro.js on lines 157..167
          public/ext/locale/ext-lang-ru.js on lines 171..181
          public/ext/locale/ext-lang-sr.js on lines 128..138
          public/ext/locale/ext-lang-th.js on lines 157..167
          public/ext/locale/ext-lang-tr.js on lines 171..181

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

          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