Semantic-Org/Semantic-UI

View on GitHub

Showing 558 of 804 total issues

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/behaviors/form.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/rating.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/shape.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/dimmer.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/search.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/transition.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/embed.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/nag.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/checkbox.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/sticky.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/progress.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/sidebar.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/popup.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/tab.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/modal.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/behaviors/visibility.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/dropdown.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/accordion.js on lines 425..430
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

        error: function() {
          if(!settings.silent) {
            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
            module.error.apply(console, arguments);
          }
Severity: Major
Found in src/definitions/modules/accordion.js and 18 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 893..898
src/definitions/behaviors/form.js on lines 1081..1086
src/definitions/behaviors/visibility.js on lines 1075..1080
src/definitions/modules/checkbox.js on lines 641..646
src/definitions/modules/dimmer.js on lines 520..525
src/definitions/modules/dropdown.js on lines 3564..3569
src/definitions/modules/embed.js on lines 441..446
src/definitions/modules/modal.js on lines 820..825
src/definitions/modules/nag.js on lines 308..313
src/definitions/modules/popup.js on lines 1194..1199
src/definitions/modules/progress.js on lines 712..717
src/definitions/modules/rating.js on lines 316..321
src/definitions/modules/search.js on lines 1078..1083
src/definitions/modules/shape.js on lines 723..728
src/definitions/modules/sidebar.js on lines 816..821
src/definitions/modules/sticky.js on lines 774..779
src/definitions/modules/tab.js on lines 745..750
src/definitions/modules/transition.js on lines 886..891

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

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

let
  gulp               = require('gulp'),
  {series, parallel} = gulp,

  mergeStream     = require('merge-stream'),
Severity: Major
Found in tasks/admin/distributions/create.js and 1 other location - About 2 hrs to fix
tasks/admin/components/create.js on lines 17..47

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

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

let
  gulp               = require('gulp'),
  {series, parallel} = gulp,

  // node dependencies
Severity: Major
Found in tasks/admin/components/create.js and 1 other location - About 2 hrs to fix
tasks/admin/distributions/create.js on lines 12..44

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

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