nemesiscodex/openfonacide

View on GitHub

Showing 970 of 970 total issues

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

      if(methodInvoked) {
        if(instance === undefined) {
          module.initialize();
        }
        module.invoke(query);
Severity: Major
Found in static/components/search.js and 18 other locations - About 2 hrs to fix
static/components/accordion.js on lines 511..522
static/components/api.js on lines 760..771
static/components/checkbox.js on lines 451..462
static/components/dimmer.js on lines 579..590
static/components/dropdown.js on lines 1662..1673
static/components/form.js on lines 866..877
static/components/modal.js on lines 782..793
static/components/nag.js on lines 400..411
static/components/popup.js on lines 1066..1077
static/components/progress.js on lines 688..699
static/components/rating.js on lines 376..387
static/components/shape.js on lines 759..770
static/components/sidebar.js on lines 978..989
static/components/state.js on lines 562..573
static/components/sticky.js on lines 748..759
static/components/tab.js on lines 715..726
static/components/video.js on lines 443..454
static/components/visibility.js on lines 1000..1011

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

      if(methodInvoked) {
        if(instance === undefined) {
          module.initialize();
        }
        module.invoke(query);
Severity: Major
Found in static/components/checkbox.js and 18 other locations - About 2 hrs to fix
static/components/accordion.js on lines 511..522
static/components/api.js on lines 760..771
static/components/dimmer.js on lines 579..590
static/components/dropdown.js on lines 1662..1673
static/components/form.js on lines 866..877
static/components/modal.js on lines 782..793
static/components/nag.js on lines 400..411
static/components/popup.js on lines 1066..1077
static/components/progress.js on lines 688..699
static/components/rating.js on lines 376..387
static/components/search.js on lines 842..853
static/components/shape.js on lines 759..770
static/components/sidebar.js on lines 978..989
static/components/state.js on lines 562..573
static/components/sticky.js on lines 748..759
static/components/tab.js on lines 715..726
static/components/video.js on lines 443..454
static/components/visibility.js on lines 1000..1011

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

      if(methodInvoked) {
        if(instance === undefined) {
          module.initialize();
        }
        module.invoke(query);
Severity: Major
Found in static/components/shape.js and 18 other locations - About 2 hrs to fix
static/components/accordion.js on lines 511..522
static/components/api.js on lines 760..771
static/components/checkbox.js on lines 451..462
static/components/dimmer.js on lines 579..590
static/components/dropdown.js on lines 1662..1673
static/components/form.js on lines 866..877
static/components/modal.js on lines 782..793
static/components/nag.js on lines 400..411
static/components/popup.js on lines 1066..1077
static/components/progress.js on lines 688..699
static/components/rating.js on lines 376..387
static/components/search.js on lines 842..853
static/components/sidebar.js on lines 978..989
static/components/state.js on lines 562..573
static/components/sticky.js on lines 748..759
static/components/tab.js on lines 715..726
static/components/video.js on lines 443..454
static/components/visibility.js on lines 1000..1011

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

      if(methodInvoked) {
        if(instance === undefined) {
          module.initialize();
        }
        module.invoke(query);
Severity: Major
Found in static/components/nag.js and 18 other locations - About 2 hrs to fix
static/components/accordion.js on lines 511..522
static/components/api.js on lines 760..771
static/components/checkbox.js on lines 451..462
static/components/dimmer.js on lines 579..590
static/components/dropdown.js on lines 1662..1673
static/components/form.js on lines 866..877
static/components/modal.js on lines 782..793
static/components/popup.js on lines 1066..1077
static/components/progress.js on lines 688..699
static/components/rating.js on lines 376..387
static/components/search.js on lines 842..853
static/components/shape.js on lines 759..770
static/components/sidebar.js on lines 978..989
static/components/state.js on lines 562..573
static/components/sticky.js on lines 748..759
static/components/tab.js on lines 715..726
static/components/video.js on lines 443..454
static/components/visibility.js on lines 1000..1011

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

      if(methodInvoked) {
        if(instance === undefined) {
          module.initialize();
        }
        module.invoke(query);
Severity: Major
Found in static/components/modal.js and 18 other locations - About 2 hrs to fix
static/components/accordion.js on lines 511..522
static/components/api.js on lines 760..771
static/components/checkbox.js on lines 451..462
static/components/dimmer.js on lines 579..590
static/components/dropdown.js on lines 1662..1673
static/components/form.js on lines 866..877
static/components/nag.js on lines 400..411
static/components/popup.js on lines 1066..1077
static/components/progress.js on lines 688..699
static/components/rating.js on lines 376..387
static/components/search.js on lines 842..853
static/components/shape.js on lines 759..770
static/components/sidebar.js on lines 978..989
static/components/state.js on lines 562..573
static/components/sticky.js on lines 748..759
static/components/tab.js on lines 715..726
static/components/video.js on lines 443..454
static/components/visibility.js on lines 1000..1011

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

      if(methodInvoked) {
        if(instance === undefined) {
          module.initialize();
        }
        module.invoke(query);
Severity: Major
Found in static/components/tab.js and 18 other locations - About 2 hrs to fix
static/components/accordion.js on lines 511..522
static/components/api.js on lines 760..771
static/components/checkbox.js on lines 451..462
static/components/dimmer.js on lines 579..590
static/components/dropdown.js on lines 1662..1673
static/components/form.js on lines 866..877
static/components/modal.js on lines 782..793
static/components/nag.js on lines 400..411
static/components/popup.js on lines 1066..1077
static/components/progress.js on lines 688..699
static/components/rating.js on lines 376..387
static/components/search.js on lines 842..853
static/components/shape.js on lines 759..770
static/components/sidebar.js on lines 978..989
static/components/state.js on lines 562..573
static/components/sticky.js on lines 748..759
static/components/video.js on lines 443..454
static/components/visibility.js on lines 1000..1011

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

      if(methodInvoked) {
        if(instance === undefined) {
          module.initialize();
        }
        module.invoke(query);
Severity: Major
Found in static/components/progress.js and 18 other locations - About 2 hrs to fix
static/components/accordion.js on lines 511..522
static/components/api.js on lines 760..771
static/components/checkbox.js on lines 451..462
static/components/dimmer.js on lines 579..590
static/components/dropdown.js on lines 1662..1673
static/components/form.js on lines 866..877
static/components/modal.js on lines 782..793
static/components/nag.js on lines 400..411
static/components/popup.js on lines 1066..1077
static/components/rating.js on lines 376..387
static/components/search.js on lines 842..853
static/components/shape.js on lines 759..770
static/components/sidebar.js on lines 978..989
static/components/state.js on lines 562..573
static/components/sticky.js on lines 748..759
static/components/tab.js on lines 715..726
static/components/video.js on lines 443..454
static/components/visibility.js on lines 1000..1011

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

      if(methodInvoked) {
        if(instance === undefined) {
          module.initialize();
        }
        module.invoke(query);
Severity: Major
Found in static/components/form.js and 18 other locations - About 2 hrs to fix
static/components/accordion.js on lines 511..522
static/components/api.js on lines 760..771
static/components/checkbox.js on lines 451..462
static/components/dimmer.js on lines 579..590
static/components/dropdown.js on lines 1662..1673
static/components/modal.js on lines 782..793
static/components/nag.js on lines 400..411
static/components/popup.js on lines 1066..1077
static/components/progress.js on lines 688..699
static/components/rating.js on lines 376..387
static/components/search.js on lines 842..853
static/components/shape.js on lines 759..770
static/components/sidebar.js on lines 978..989
static/components/state.js on lines 562..573
static/components/sticky.js on lines 748..759
static/components/tab.js on lines 715..726
static/components/video.js on lines 443..454
static/components/visibility.js on lines 1000..1011

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

      if(methodInvoked) {
        if(instance === undefined) {
          module.initialize();
        }
        module.invoke(query);
Severity: Major
Found in static/components/sticky.js and 18 other locations - About 2 hrs to fix
static/components/accordion.js on lines 511..522
static/components/api.js on lines 760..771
static/components/checkbox.js on lines 451..462
static/components/dimmer.js on lines 579..590
static/components/dropdown.js on lines 1662..1673
static/components/form.js on lines 866..877
static/components/modal.js on lines 782..793
static/components/nag.js on lines 400..411
static/components/popup.js on lines 1066..1077
static/components/progress.js on lines 688..699
static/components/rating.js on lines 376..387
static/components/search.js on lines 842..853
static/components/shape.js on lines 759..770
static/components/sidebar.js on lines 978..989
static/components/state.js on lines 562..573
static/components/tab.js on lines 715..726
static/components/video.js on lines 443..454
static/components/visibility.js on lines 1000..1011

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

Function actualizar has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                $scope.actualizar = function (filterFunction) {
                    var point;
                    var marker;
                    var data = {};
                    if (typeof(filterFunction) === 'function') {
Severity: Minor
Found in static/js/frontend.MapController.js - About 1 hr to fix

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

            internal: function(name, value) {
              if( $.isPlainObject(name) ) {
                $.extend(true, module, name);
              }
              else if(value !== undefined) {
    Severity: Major
    Found in static/components/transition.js and 25 other locations - About 1 hr to fix
    static/components/api.js on lines 616..626
    static/components/checkbox.js on lines 307..317
    static/components/dimmer.js on lines 430..440
    static/components/dropdown.js on lines 1518..1528
    static/components/form.js on lines 710..720
    static/components/form.js on lines 721..731
    static/components/modal.js on lines 639..649
    static/components/nag.js on lines 256..266
    static/components/popup.js on lines 912..922
    static/components/popup.js on lines 923..933
    static/components/progress.js on lines 544..554
    static/components/rating.js on lines 231..241
    static/components/search.js on lines 686..696
    static/components/search.js on lines 697..707
    static/components/shape.js on lines 613..623
    static/components/sidebar.js on lines 833..843
    static/components/site.js on lines 255..265
    static/components/site.js on lines 266..276
    static/components/state.js on lines 418..428
    static/components/sticky.js on lines 594..604
    static/components/sticky.js on lines 605..615
    static/components/tab.js on lines 572..582
    static/components/video.js on lines 296..306
    static/components/visibility.js on lines 845..855
    static/components/visibility.js on lines 856..866

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

    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

            internal: function(name, value) {
              if( $.isPlainObject(name) ) {
                $.extend(true, module, name);
              }
              else if(value !== undefined) {
    Severity: Major
    Found in static/components/modal.js and 25 other locations - About 1 hr to fix
    static/components/api.js on lines 616..626
    static/components/checkbox.js on lines 307..317
    static/components/dimmer.js on lines 430..440
    static/components/dropdown.js on lines 1518..1528
    static/components/form.js on lines 710..720
    static/components/form.js on lines 721..731
    static/components/nag.js on lines 256..266
    static/components/popup.js on lines 912..922
    static/components/popup.js on lines 923..933
    static/components/progress.js on lines 544..554
    static/components/rating.js on lines 231..241
    static/components/search.js on lines 686..696
    static/components/search.js on lines 697..707
    static/components/shape.js on lines 613..623
    static/components/sidebar.js on lines 833..843
    static/components/site.js on lines 255..265
    static/components/site.js on lines 266..276
    static/components/state.js on lines 418..428
    static/components/sticky.js on lines 594..604
    static/components/sticky.js on lines 605..615
    static/components/tab.js on lines 572..582
    static/components/transition.js on lines 801..811
    static/components/video.js on lines 296..306
    static/components/visibility.js on lines 845..855
    static/components/visibility.js on lines 856..866

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

    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

            internal: function(name, value) {
              if( $.isPlainObject(name) ) {
                $.extend(true, module, name);
              }
              else if(value !== undefined) {
    Severity: Major
    Found in static/components/checkbox.js and 25 other locations - About 1 hr to fix
    static/components/api.js on lines 616..626
    static/components/dimmer.js on lines 430..440
    static/components/dropdown.js on lines 1518..1528
    static/components/form.js on lines 710..720
    static/components/form.js on lines 721..731
    static/components/modal.js on lines 639..649
    static/components/nag.js on lines 256..266
    static/components/popup.js on lines 912..922
    static/components/popup.js on lines 923..933
    static/components/progress.js on lines 544..554
    static/components/rating.js on lines 231..241
    static/components/search.js on lines 686..696
    static/components/search.js on lines 697..707
    static/components/shape.js on lines 613..623
    static/components/sidebar.js on lines 833..843
    static/components/site.js on lines 255..265
    static/components/site.js on lines 266..276
    static/components/state.js on lines 418..428
    static/components/sticky.js on lines 594..604
    static/components/sticky.js on lines 605..615
    static/components/tab.js on lines 572..582
    static/components/transition.js on lines 801..811
    static/components/video.js on lines 296..306
    static/components/visibility.js on lines 845..855
    static/components/visibility.js on lines 856..866

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

    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

            internal: function(name, value) {
              if( $.isPlainObject(name) ) {
                $.extend(true, module, name);
              }
              else if(value !== undefined) {
    Severity: Major
    Found in static/components/dimmer.js and 25 other locations - About 1 hr to fix
    static/components/api.js on lines 616..626
    static/components/checkbox.js on lines 307..317
    static/components/dropdown.js on lines 1518..1528
    static/components/form.js on lines 710..720
    static/components/form.js on lines 721..731
    static/components/modal.js on lines 639..649
    static/components/nag.js on lines 256..266
    static/components/popup.js on lines 912..922
    static/components/popup.js on lines 923..933
    static/components/progress.js on lines 544..554
    static/components/rating.js on lines 231..241
    static/components/search.js on lines 686..696
    static/components/search.js on lines 697..707
    static/components/shape.js on lines 613..623
    static/components/sidebar.js on lines 833..843
    static/components/site.js on lines 255..265
    static/components/site.js on lines 266..276
    static/components/state.js on lines 418..428
    static/components/sticky.js on lines 594..604
    static/components/sticky.js on lines 605..615
    static/components/tab.js on lines 572..582
    static/components/transition.js on lines 801..811
    static/components/video.js on lines 296..306
    static/components/visibility.js on lines 845..855
    static/components/visibility.js on lines 856..866

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

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

              combo: function(text, value) {
                value = (value !== undefined)
                  ? value
                  : text
                ;
    Severity: Major
    Found in static/components/dropdown.js and 2 other locations - About 1 hr to fix
    static/components/dropdown.js on lines 806..815
    static/components/dropdown.js on lines 817..826

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

    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

            setting: function(name, value) {
              if( $.isPlainObject(name) ) {
                $.extend(true, settings, name);
              }
              else if(value !== undefined) {
    Severity: Major
    Found in static/components/search.js and 25 other locations - About 1 hr to fix
    static/components/api.js on lines 616..626
    static/components/checkbox.js on lines 307..317
    static/components/dimmer.js on lines 430..440
    static/components/dropdown.js on lines 1518..1528
    static/components/form.js on lines 710..720
    static/components/form.js on lines 721..731
    static/components/modal.js on lines 639..649
    static/components/nag.js on lines 256..266
    static/components/popup.js on lines 912..922
    static/components/popup.js on lines 923..933
    static/components/progress.js on lines 544..554
    static/components/rating.js on lines 231..241
    static/components/search.js on lines 697..707
    static/components/shape.js on lines 613..623
    static/components/sidebar.js on lines 833..843
    static/components/site.js on lines 255..265
    static/components/site.js on lines 266..276
    static/components/state.js on lines 418..428
    static/components/sticky.js on lines 594..604
    static/components/sticky.js on lines 605..615
    static/components/tab.js on lines 572..582
    static/components/transition.js on lines 801..811
    static/components/video.js on lines 296..306
    static/components/visibility.js on lines 845..855
    static/components/visibility.js on lines 856..866

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

    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

        setting: function(name, value) {
          if( $.isPlainObject(name) ) {
            $.extend(true, settings, name);
          }
          else if(value !== undefined) {
    Severity: Major
    Found in static/components/site.js and 25 other locations - About 1 hr to fix
    static/components/api.js on lines 616..626
    static/components/checkbox.js on lines 307..317
    static/components/dimmer.js on lines 430..440
    static/components/dropdown.js on lines 1518..1528
    static/components/form.js on lines 710..720
    static/components/form.js on lines 721..731
    static/components/modal.js on lines 639..649
    static/components/nag.js on lines 256..266
    static/components/popup.js on lines 912..922
    static/components/popup.js on lines 923..933
    static/components/progress.js on lines 544..554
    static/components/rating.js on lines 231..241
    static/components/search.js on lines 686..696
    static/components/search.js on lines 697..707
    static/components/shape.js on lines 613..623
    static/components/sidebar.js on lines 833..843
    static/components/site.js on lines 266..276
    static/components/state.js on lines 418..428
    static/components/sticky.js on lines 594..604
    static/components/sticky.js on lines 605..615
    static/components/tab.js on lines 572..582
    static/components/transition.js on lines 801..811
    static/components/video.js on lines 296..306
    static/components/visibility.js on lines 845..855
    static/components/visibility.js on lines 856..866

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

    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

            setting: function(name, value) {
              if( $.isPlainObject(name) ) {
                $.extend(true, settings, name);
              }
              else if(value !== undefined) {
    Severity: Major
    Found in static/components/popup.js and 25 other locations - About 1 hr to fix
    static/components/api.js on lines 616..626
    static/components/checkbox.js on lines 307..317
    static/components/dimmer.js on lines 430..440
    static/components/dropdown.js on lines 1518..1528
    static/components/form.js on lines 710..720
    static/components/form.js on lines 721..731
    static/components/modal.js on lines 639..649
    static/components/nag.js on lines 256..266
    static/components/popup.js on lines 923..933
    static/components/progress.js on lines 544..554
    static/components/rating.js on lines 231..241
    static/components/search.js on lines 686..696
    static/components/search.js on lines 697..707
    static/components/shape.js on lines 613..623
    static/components/sidebar.js on lines 833..843
    static/components/site.js on lines 255..265
    static/components/site.js on lines 266..276
    static/components/state.js on lines 418..428
    static/components/sticky.js on lines 594..604
    static/components/sticky.js on lines 605..615
    static/components/tab.js on lines 572..582
    static/components/transition.js on lines 801..811
    static/components/video.js on lines 296..306
    static/components/visibility.js on lines 845..855
    static/components/visibility.js on lines 856..866

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

    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

            internal: function(name, value) {
              if( $.isPlainObject(name) ) {
                $.extend(true, module, name);
              }
              else if(value !== undefined) {
    Severity: Major
    Found in static/components/api.js and 25 other locations - About 1 hr to fix
    static/components/checkbox.js on lines 307..317
    static/components/dimmer.js on lines 430..440
    static/components/dropdown.js on lines 1518..1528
    static/components/form.js on lines 710..720
    static/components/form.js on lines 721..731
    static/components/modal.js on lines 639..649
    static/components/nag.js on lines 256..266
    static/components/popup.js on lines 912..922
    static/components/popup.js on lines 923..933
    static/components/progress.js on lines 544..554
    static/components/rating.js on lines 231..241
    static/components/search.js on lines 686..696
    static/components/search.js on lines 697..707
    static/components/shape.js on lines 613..623
    static/components/sidebar.js on lines 833..843
    static/components/site.js on lines 255..265
    static/components/site.js on lines 266..276
    static/components/state.js on lines 418..428
    static/components/sticky.js on lines 594..604
    static/components/sticky.js on lines 605..615
    static/components/tab.js on lines 572..582
    static/components/transition.js on lines 801..811
    static/components/video.js on lines 296..306
    static/components/visibility.js on lines 845..855
    static/components/visibility.js on lines 856..866

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

    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

            internal: function(name, value) {
              if( $.isPlainObject(name) ) {
                $.extend(true, module, name);
              }
              else if(value !== undefined) {
    Severity: Major
    Found in static/components/nag.js and 25 other locations - About 1 hr to fix
    static/components/api.js on lines 616..626
    static/components/checkbox.js on lines 307..317
    static/components/dimmer.js on lines 430..440
    static/components/dropdown.js on lines 1518..1528
    static/components/form.js on lines 710..720
    static/components/form.js on lines 721..731
    static/components/modal.js on lines 639..649
    static/components/popup.js on lines 912..922
    static/components/popup.js on lines 923..933
    static/components/progress.js on lines 544..554
    static/components/rating.js on lines 231..241
    static/components/search.js on lines 686..696
    static/components/search.js on lines 697..707
    static/components/shape.js on lines 613..623
    static/components/sidebar.js on lines 833..843
    static/components/site.js on lines 255..265
    static/components/site.js on lines 266..276
    static/components/state.js on lines 418..428
    static/components/sticky.js on lines 594..604
    static/components/sticky.js on lines 605..615
    static/components/tab.js on lines 572..582
    static/components/transition.js on lines 801..811
    static/components/video.js on lines 296..306
    static/components/visibility.js on lines 845..855
    static/components/visibility.js on lines 856..866

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

    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