talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

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

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

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

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

Refactorings

Further Reading

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

    height: function() {
        if ( this[0] == window )
            return self.innerHeight ||
                $.boxModel && document.documentElement.clientHeight || 
                document.body.clientHeight;
app/assets/javascripts/jquery-tooltip/lib/jquery.dimensions.js on lines 66..76

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

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

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

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

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

Refactorings

Further Reading

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

  reload: function () {    
    if (this.activated)
    {         
      for (i=0; i < this.items.getCount(); i++)
      {
Severity: Major
Found in app/assets/javascripts/forums/view/forums/Index.js and 2 other locations - About 4 hrs to fix
app/assets/javascripts/forums/view/topics/Index.js on lines 265..275
app/assets/javascripts/forums/view/topics/Show.js on lines 140..150

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

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

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

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

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

Refactorings

Further Reading

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

    width: function() {
        if ( this[0] == window )
            return self.innerWidth ||
                $.boxModel && document.documentElement.clientWidth ||
                document.body.clientWidth;
app/assets/javascripts/jquery-tooltip/lib/jquery.dimensions.js on lines 36..46

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

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

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

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

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

Refactorings

Further Reading

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

  reload : function() {
    if (this.activated)
    {         
      for (i=0; i < this.items.getCount(); i++)
      {
Severity: Major
Found in app/assets/javascripts/forums/view/topics/Index.js and 2 other locations - About 4 hrs to fix
app/assets/javascripts/forums/view/forums/Index.js on lines 129..139
app/assets/javascripts/forums/view/topics/Show.js on lines 140..150

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

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

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

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

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

Refactorings

Further Reading

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

  reload: function() {
    if (this.activated)
    {         
      for (i=0; i < this.items.getCount(); i++)
      {
Severity: Major
Found in app/assets/javascripts/forums/view/topics/Show.js and 2 other locations - About 4 hrs to fix
app/assets/javascripts/forums/view/forums/Index.js on lines 129..139
app/assets/javascripts/forums/view/topics/Index.js on lines 265..275

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 115.

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

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

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

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

Refactorings

Further Reading

Function createSelectionBreakdownPanel has 99 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    createSelectionBreakdownPanel: function(){
        this.selectedItemsStore = new Ext.data.GroupingStore({
            reader: new Ext.data.JsonReader({
                fields: this._transferableRecord,
                idProperty: 'this_is_a_really_long_id_that_we_wont_use'
Severity: Major
Found in app/assets/javascripts/audience/AudiencePanel.js - About 3 hrs to fix

    Function CSS has 99 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Ext.util.CSS = function(){
        var rules = null;
           var doc = document;
    
        var camelRe = /(-[a-z])/gi;
    Severity: Major
    Found in app/assets/javascripts/ext/src/util/CSS.js - About 3 hrs to fix

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

               setHeight : function(height, animate){
                  var me = this;
                  height = me.adjustHeight(height);
                  !animate || !me.anim ?
                      me.dom.style.height = me.addUnits(height) :
      app/assets/javascripts/ext/src/ext-core/src/core/Element.style.js on lines 378..385

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

      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

          onCollapse : function(doAnim, animArg){
              if(doAnim){
                  this[this.collapseEl].slideOut(this.slideAnchor,
                          Ext.apply(this.createEffect(animArg||true, this.afterCollapse, this),
                              this.collapseDefaults));
      Severity: Major
      Found in app/assets/javascripts/ext/src/widgets/Panel.js and 1 other location - About 3 hrs to fix
      app/assets/javascripts/ext/src/widgets/Panel.js on lines 1415..1424

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

      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

      Ext.grid.DateColumn = Ext.extend(Ext.grid.Column, {
          /**
           * @cfg {String} format
           * A formatting string as used by {@link Date#format} to format a Date for this Column
           * (defaults to <tt>'m/d/Y'</tt>).
      Severity: Major
      Found in app/assets/javascripts/ext/src/widgets/grid/Column.js and 1 other location - About 3 hrs to fix
      app/assets/javascripts/ext/src/widgets/grid/Column.js on lines 413..424

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

      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

      Ext.grid.NumberColumn = Ext.extend(Ext.grid.Column, {
          /**
           * @cfg {String} format
           * A formatting string as used by {@link Ext.util.Format#number} to format a numeric value for this Column
           * (defaults to <tt>'0,000.00'</tt>).
      Severity: Major
      Found in app/assets/javascripts/ext/src/widgets/grid/Column.js and 1 other location - About 3 hrs to fix
      app/assets/javascripts/ext/src/widgets/grid/Column.js on lines 433..444

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

      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

              setWidth : function(width, animate){
                  var me = this;
                  width = me.adjustWidth(width);
                  !animate || !me.anim ?
                      me.dom.style.width = me.addUnits(width) :
      app/assets/javascripts/ext/src/ext-core/src/core/Element.style.js on lines 407..414

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

      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

          onExpand : function(doAnim, animArg){
              if(doAnim){
                  this[this.collapseEl].slideIn(this.slideAnchor,
                          Ext.apply(this.createEffect(animArg||true, this.afterExpand, this),
                              this.expandDefaults));
      Severity: Major
      Found in app/assets/javascripts/ext/src/widgets/Panel.js and 1 other location - About 3 hrs to fix
      app/assets/javascripts/ext/src/widgets/Panel.js on lines 1367..1376

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

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

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

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

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

      Refactorings

      Further Reading

      Function HtmlNode has 98 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      Ext.debug.HtmlNode = function(){
          var html = Ext.util.Format.htmlEncode;
          var ellipsis = Ext.util.Format.ellipsis;
          var nonSpace = /^\s*$/;
      
      
      Severity: Major
      Found in app/assets/javascripts/ext/src/debug.js - About 3 hrs to fix
        Severity
        Category
        Status
        Source
        Language