Semantic-Org/Semantic-UI

View on GitHub

Showing 558 of 804 total issues

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/modules/modal.js and 6 other locations - About 2 days to fix
src/definitions/behaviors/form.js on lines 1141..1193
src/definitions/modules/popup.js on lines 1251..1303
src/definitions/modules/rating.js on lines 376..428
src/definitions/modules/search.js on lines 1138..1190
src/definitions/modules/shape.js on lines 783..835
src/definitions/modules/sticky.js on lines 831..883

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/modules/sticky.js and 6 other locations - About 2 days to fix
src/definitions/behaviors/form.js on lines 1141..1193
src/definitions/modules/modal.js on lines 877..929
src/definitions/modules/popup.js on lines 1251..1303
src/definitions/modules/rating.js on lines 376..428
src/definitions/modules/search.js on lines 1138..1190
src/definitions/modules/shape.js on lines 783..835

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/modules/rating.js and 6 other locations - About 2 days to fix
src/definitions/behaviors/form.js on lines 1141..1193
src/definitions/modules/modal.js on lines 877..929
src/definitions/modules/popup.js on lines 1251..1303
src/definitions/modules/search.js on lines 1138..1190
src/definitions/modules/shape.js on lines 783..835
src/definitions/modules/sticky.js on lines 831..883

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/modules/shape.js and 6 other locations - About 2 days to fix
src/definitions/behaviors/form.js on lines 1141..1193
src/definitions/modules/modal.js on lines 877..929
src/definitions/modules/popup.js on lines 1251..1303
src/definitions/modules/rating.js on lines 376..428
src/definitions/modules/search.js on lines 1138..1190
src/definitions/modules/sticky.js on lines 831..883

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/modules/popup.js and 6 other locations - About 2 days to fix
src/definitions/behaviors/form.js on lines 1141..1193
src/definitions/modules/modal.js on lines 877..929
src/definitions/modules/rating.js on lines 376..428
src/definitions/modules/search.js on lines 1138..1190
src/definitions/modules/shape.js on lines 783..835
src/definitions/modules/sticky.js on lines 831..883

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/modules/search.js and 6 other locations - About 2 days to fix
src/definitions/behaviors/form.js on lines 1141..1193
src/definitions/modules/modal.js on lines 877..929
src/definitions/modules/popup.js on lines 1251..1303
src/definitions/modules/rating.js on lines 376..428
src/definitions/modules/shape.js on lines 783..835
src/definitions/modules/sticky.js on lines 831..883

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/nag.js and 10 other locations - About 2 days to fix
src/definitions/behaviors/visibility.js on lines 1081..1131
src/definitions/modules/accordion.js on lines 431..481
src/definitions/modules/checkbox.js on lines 647..697
src/definitions/modules/dropdown.js on lines 3570..3620
src/definitions/modules/modal.js on lines 826..876
src/definitions/modules/popup.js on lines 1200..1250
src/definitions/modules/progress.js on lines 718..768
src/definitions/modules/sidebar.js on lines 822..872
src/definitions/modules/sticky.js on lines 780..830
src/definitions/modules/tab.js on lines 751..801

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/accordion.js and 10 other locations - About 2 days to fix
src/definitions/behaviors/visibility.js on lines 1081..1131
src/definitions/modules/checkbox.js on lines 647..697
src/definitions/modules/dropdown.js on lines 3570..3620
src/definitions/modules/modal.js on lines 826..876
src/definitions/modules/nag.js on lines 314..364
src/definitions/modules/popup.js on lines 1200..1250
src/definitions/modules/progress.js on lines 718..768
src/definitions/modules/sidebar.js on lines 822..872
src/definitions/modules/sticky.js on lines 780..830
src/definitions/modules/tab.js on lines 751..801

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/sticky.js and 10 other locations - About 2 days to fix
src/definitions/behaviors/visibility.js on lines 1081..1131
src/definitions/modules/accordion.js on lines 431..481
src/definitions/modules/checkbox.js on lines 647..697
src/definitions/modules/dropdown.js on lines 3570..3620
src/definitions/modules/modal.js on lines 826..876
src/definitions/modules/nag.js on lines 314..364
src/definitions/modules/popup.js on lines 1200..1250
src/definitions/modules/progress.js on lines 718..768
src/definitions/modules/sidebar.js on lines 822..872
src/definitions/modules/tab.js on lines 751..801

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/progress.js and 10 other locations - About 2 days to fix
src/definitions/behaviors/visibility.js on lines 1081..1131
src/definitions/modules/accordion.js on lines 431..481
src/definitions/modules/checkbox.js on lines 647..697
src/definitions/modules/dropdown.js on lines 3570..3620
src/definitions/modules/modal.js on lines 826..876
src/definitions/modules/nag.js on lines 314..364
src/definitions/modules/popup.js on lines 1200..1250
src/definitions/modules/sidebar.js on lines 822..872
src/definitions/modules/sticky.js on lines 780..830
src/definitions/modules/tab.js on lines 751..801

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/checkbox.js and 10 other locations - About 2 days to fix
src/definitions/behaviors/visibility.js on lines 1081..1131
src/definitions/modules/accordion.js on lines 431..481
src/definitions/modules/dropdown.js on lines 3570..3620
src/definitions/modules/modal.js on lines 826..876
src/definitions/modules/nag.js on lines 314..364
src/definitions/modules/popup.js on lines 1200..1250
src/definitions/modules/progress.js on lines 718..768
src/definitions/modules/sidebar.js on lines 822..872
src/definitions/modules/sticky.js on lines 780..830
src/definitions/modules/tab.js on lines 751..801

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/dropdown.js and 10 other locations - About 2 days to fix
src/definitions/behaviors/visibility.js on lines 1081..1131
src/definitions/modules/accordion.js on lines 431..481
src/definitions/modules/checkbox.js on lines 647..697
src/definitions/modules/modal.js on lines 826..876
src/definitions/modules/nag.js on lines 314..364
src/definitions/modules/popup.js on lines 1200..1250
src/definitions/modules/progress.js on lines 718..768
src/definitions/modules/sidebar.js on lines 822..872
src/definitions/modules/sticky.js on lines 780..830
src/definitions/modules/tab.js on lines 751..801

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/behaviors/visibility.js and 10 other locations - About 2 days to fix
src/definitions/modules/accordion.js on lines 431..481
src/definitions/modules/checkbox.js on lines 647..697
src/definitions/modules/dropdown.js on lines 3570..3620
src/definitions/modules/modal.js on lines 826..876
src/definitions/modules/nag.js on lines 314..364
src/definitions/modules/popup.js on lines 1200..1250
src/definitions/modules/progress.js on lines 718..768
src/definitions/modules/sidebar.js on lines 822..872
src/definitions/modules/sticky.js on lines 780..830
src/definitions/modules/tab.js on lines 751..801

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/popup.js and 10 other locations - About 2 days to fix
src/definitions/behaviors/visibility.js on lines 1081..1131
src/definitions/modules/accordion.js on lines 431..481
src/definitions/modules/checkbox.js on lines 647..697
src/definitions/modules/dropdown.js on lines 3570..3620
src/definitions/modules/modal.js on lines 826..876
src/definitions/modules/nag.js on lines 314..364
src/definitions/modules/progress.js on lines 718..768
src/definitions/modules/sidebar.js on lines 822..872
src/definitions/modules/sticky.js on lines 780..830
src/definitions/modules/tab.js on lines 751..801

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/modal.js and 10 other locations - About 2 days to fix
src/definitions/behaviors/visibility.js on lines 1081..1131
src/definitions/modules/accordion.js on lines 431..481
src/definitions/modules/checkbox.js on lines 647..697
src/definitions/modules/dropdown.js on lines 3570..3620
src/definitions/modules/nag.js on lines 314..364
src/definitions/modules/popup.js on lines 1200..1250
src/definitions/modules/progress.js on lines 718..768
src/definitions/modules/sidebar.js on lines 822..872
src/definitions/modules/sticky.js on lines 780..830
src/definitions/modules/tab.js on lines 751..801

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/tab.js and 10 other locations - About 2 days to fix
src/definitions/behaviors/visibility.js on lines 1081..1131
src/definitions/modules/accordion.js on lines 431..481
src/definitions/modules/checkbox.js on lines 647..697
src/definitions/modules/dropdown.js on lines 3570..3620
src/definitions/modules/modal.js on lines 826..876
src/definitions/modules/nag.js on lines 314..364
src/definitions/modules/popup.js on lines 1200..1250
src/definitions/modules/progress.js on lines 718..768
src/definitions/modules/sidebar.js on lines 822..872
src/definitions/modules/sticky.js on lines 780..830

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/sidebar.js and 10 other locations - About 2 days to fix
src/definitions/behaviors/visibility.js on lines 1081..1131
src/definitions/modules/accordion.js on lines 431..481
src/definitions/modules/checkbox.js on lines 647..697
src/definitions/modules/dropdown.js on lines 3570..3620
src/definitions/modules/modal.js on lines 826..876
src/definitions/modules/nag.js on lines 314..364
src/definitions/modules/popup.js on lines 1200..1250
src/definitions/modules/progress.js on lines 718..768
src/definitions/modules/sticky.js on lines 780..830
src/definitions/modules/tab.js on lines 751..801

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

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

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

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

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

Refactorings

Further Reading

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

        $.each(response[fields.results], function(index, result) {
          if(result[fields.url]) {
            html  += '<a class="result" href="' + result[fields.url] + '">';
          }
          else {
Severity: Major
Found in src/definitions/modules/search.js and 1 other location - About 1 day to fix
src/definitions/modules/search.js on lines 1410..1438

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

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

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

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

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

Refactorings

Further Reading

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

            $.each(category.results, function(index, result) {
              if(result[fields.url]) {
                html  += '<a class="result" href="' + result[fields.url] + '">';
              }
              else {
Severity: Major
Found in src/definitions/modules/search.js and 1 other location - About 1 day to fix
src/definitions/modules/search.js on lines 1462..1490

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

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

          left: function() {
            var
              height = {
                active : $activeSide.outerWidth(true),
                next   : $nextSide.outerWidth(true)
Severity: Major
Found in src/definitions/modules/shape.js and 1 other location - About 1 day to fix
src/definitions/modules/shape.js on lines 610..642

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

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