Semantic-Org/Semantic-UI

View on GitHub

Showing 588 of 849 total issues

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/shape.js and 7 other locations - About 2 days to fix
src/definitions/behaviors/form.js on lines 1087..1140
src/definitions/behaviors/visit.js on lines 358..411
src/definitions/modules/dimmer.js on lines 505..558
src/definitions/modules/embed.js on lines 437..490
src/definitions/modules/rating.js on lines 322..375
src/definitions/modules/search.js on lines 1033..1086
src/definitions/modules/transition.js on lines 892..945

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/transition.js and 7 other locations - About 2 days to fix
src/definitions/behaviors/form.js on lines 1087..1140
src/definitions/behaviors/visit.js on lines 358..411
src/definitions/modules/dimmer.js on lines 505..558
src/definitions/modules/embed.js on lines 437..490
src/definitions/modules/rating.js on lines 322..375
src/definitions/modules/search.js on lines 1033..1086
src/definitions/modules/shape.js on lines 729..782

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/rating.js and 7 other locations - About 2 days to fix
src/definitions/behaviors/form.js on lines 1087..1140
src/definitions/behaviors/visit.js on lines 358..411
src/definitions/modules/dimmer.js on lines 505..558
src/definitions/modules/embed.js on lines 437..490
src/definitions/modules/search.js on lines 1033..1086
src/definitions/modules/shape.js on lines 729..782
src/definitions/modules/transition.js on lines 892..945

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/dimmer.js and 7 other locations - About 2 days to fix
src/definitions/behaviors/form.js on lines 1087..1140
src/definitions/behaviors/visit.js on lines 358..411
src/definitions/modules/embed.js on lines 437..490
src/definitions/modules/rating.js on lines 322..375
src/definitions/modules/search.js on lines 1033..1086
src/definitions/modules/shape.js on lines 729..782
src/definitions/modules/transition.js on lines 892..945

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/search.js and 7 other locations - About 2 days to fix
src/definitions/behaviors/form.js on lines 1087..1140
src/definitions/behaviors/visit.js on lines 358..411
src/definitions/modules/dimmer.js on lines 505..558
src/definitions/modules/embed.js on lines 437..490
src/definitions/modules/rating.js on lines 322..375
src/definitions/modules/shape.js on lines 729..782
src/definitions/modules/transition.js on lines 892..945

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/behaviors/form.js and 7 other locations - About 2 days to fix
src/definitions/behaviors/visit.js on lines 358..411
src/definitions/modules/dimmer.js on lines 505..558
src/definitions/modules/embed.js on lines 437..490
src/definitions/modules/rating.js on lines 322..375
src/definitions/modules/search.js on lines 1033..1086
src/definitions/modules/shape.js on lines 729..782
src/definitions/modules/transition.js on lines 892..945

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/modules/embed.js and 7 other locations - About 2 days to fix
src/definitions/behaviors/form.js on lines 1087..1140
src/definitions/behaviors/visit.js on lines 358..411
src/definitions/modules/dimmer.js on lines 505..558
src/definitions/modules/rating.js on lines 322..375
src/definitions/modules/search.js on lines 1033..1086
src/definitions/modules/shape.js on lines 729..782
src/definitions/modules/transition.js on lines 892..945

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in src/definitions/behaviors/visit.js and 7 other locations - About 2 days to fix
src/definitions/behaviors/form.js on lines 1087..1140
src/definitions/modules/dimmer.js on lines 505..558
src/definitions/modules/embed.js on lines 437..490
src/definitions/modules/rating.js on lines 322..375
src/definitions/modules/search.js on lines 1033..1086
src/definitions/modules/shape.js on lines 729..782
src/definitions/modules/transition.js on lines 892..945

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/modules/sidebar.js and 12 other locations - About 2 days to fix
src/definitions/behaviors/api.js on lines 950..1003
src/definitions/behaviors/state.js on lines 519..572
src/definitions/behaviors/visibility.js on lines 1132..1185
src/definitions/globals/site.js on lines 351..404
src/definitions/modules/accordion.js on lines 480..533
src/definitions/modules/checkbox.js on lines 698..751
src/definitions/modules/dimmer.js on lines 559..612
src/definitions/modules/dropdown.js on lines 3549..3602
src/definitions/modules/embed.js on lines 491..544
src/definitions/modules/nag.js on lines 365..418
src/definitions/modules/progress.js on lines 769..822
src/definitions/modules/tab.js on lines 802..855

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/modules/dimmer.js and 12 other locations - About 2 days to fix
src/definitions/behaviors/api.js on lines 950..1003
src/definitions/behaviors/state.js on lines 519..572
src/definitions/behaviors/visibility.js on lines 1132..1185
src/definitions/globals/site.js on lines 351..404
src/definitions/modules/accordion.js on lines 480..533
src/definitions/modules/checkbox.js on lines 698..751
src/definitions/modules/dropdown.js on lines 3549..3602
src/definitions/modules/embed.js on lines 491..544
src/definitions/modules/nag.js on lines 365..418
src/definitions/modules/progress.js on lines 769..822
src/definitions/modules/sidebar.js on lines 873..926
src/definitions/modules/tab.js on lines 802..855

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/modules/checkbox.js and 12 other locations - About 2 days to fix
src/definitions/behaviors/api.js on lines 950..1003
src/definitions/behaviors/state.js on lines 519..572
src/definitions/behaviors/visibility.js on lines 1132..1185
src/definitions/globals/site.js on lines 351..404
src/definitions/modules/accordion.js on lines 480..533
src/definitions/modules/dimmer.js on lines 559..612
src/definitions/modules/dropdown.js on lines 3549..3602
src/definitions/modules/embed.js on lines 491..544
src/definitions/modules/nag.js on lines 365..418
src/definitions/modules/progress.js on lines 769..822
src/definitions/modules/sidebar.js on lines 873..926
src/definitions/modules/tab.js on lines 802..855

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/behaviors/api.js and 12 other locations - About 2 days to fix
src/definitions/behaviors/state.js on lines 519..572
src/definitions/behaviors/visibility.js on lines 1132..1185
src/definitions/globals/site.js on lines 351..404
src/definitions/modules/accordion.js on lines 480..533
src/definitions/modules/checkbox.js on lines 698..751
src/definitions/modules/dimmer.js on lines 559..612
src/definitions/modules/dropdown.js on lines 3549..3602
src/definitions/modules/embed.js on lines 491..544
src/definitions/modules/nag.js on lines 365..418
src/definitions/modules/progress.js on lines 769..822
src/definitions/modules/sidebar.js on lines 873..926
src/definitions/modules/tab.js on lines 802..855

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/modules/progress.js and 12 other locations - About 2 days to fix
src/definitions/behaviors/api.js on lines 950..1003
src/definitions/behaviors/state.js on lines 519..572
src/definitions/behaviors/visibility.js on lines 1132..1185
src/definitions/globals/site.js on lines 351..404
src/definitions/modules/accordion.js on lines 480..533
src/definitions/modules/checkbox.js on lines 698..751
src/definitions/modules/dimmer.js on lines 559..612
src/definitions/modules/dropdown.js on lines 3549..3602
src/definitions/modules/embed.js on lines 491..544
src/definitions/modules/nag.js on lines 365..418
src/definitions/modules/sidebar.js on lines 873..926
src/definitions/modules/tab.js on lines 802..855

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/modules/embed.js and 12 other locations - About 2 days to fix
src/definitions/behaviors/api.js on lines 950..1003
src/definitions/behaviors/state.js on lines 519..572
src/definitions/behaviors/visibility.js on lines 1132..1185
src/definitions/globals/site.js on lines 351..404
src/definitions/modules/accordion.js on lines 480..533
src/definitions/modules/checkbox.js on lines 698..751
src/definitions/modules/dimmer.js on lines 559..612
src/definitions/modules/dropdown.js on lines 3549..3602
src/definitions/modules/nag.js on lines 365..418
src/definitions/modules/progress.js on lines 769..822
src/definitions/modules/sidebar.js on lines 873..926
src/definitions/modules/tab.js on lines 802..855

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/modules/tab.js and 12 other locations - About 2 days to fix
src/definitions/behaviors/api.js on lines 950..1003
src/definitions/behaviors/state.js on lines 519..572
src/definitions/behaviors/visibility.js on lines 1132..1185
src/definitions/globals/site.js on lines 351..404
src/definitions/modules/accordion.js on lines 480..533
src/definitions/modules/checkbox.js on lines 698..751
src/definitions/modules/dimmer.js on lines 559..612
src/definitions/modules/dropdown.js on lines 3549..3602
src/definitions/modules/embed.js on lines 491..544
src/definitions/modules/nag.js on lines 365..418
src/definitions/modules/progress.js on lines 769..822
src/definitions/modules/sidebar.js on lines 873..926

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

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

    invoke: function(query, passedArguments, context) {
      var
        object = instance,
        maxDepth,
        found,
Severity: Major
Found in src/definitions/globals/site.js and 12 other locations - About 2 days to fix
src/definitions/behaviors/api.js on lines 950..1003
src/definitions/behaviors/state.js on lines 519..572
src/definitions/behaviors/visibility.js on lines 1132..1185
src/definitions/modules/accordion.js on lines 480..533
src/definitions/modules/checkbox.js on lines 698..751
src/definitions/modules/dimmer.js on lines 559..612
src/definitions/modules/dropdown.js on lines 3549..3602
src/definitions/modules/embed.js on lines 491..544
src/definitions/modules/nag.js on lines 365..418
src/definitions/modules/progress.js on lines 769..822
src/definitions/modules/sidebar.js on lines 873..926
src/definitions/modules/tab.js on lines 802..855

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/modules/dropdown.js and 12 other locations - About 2 days to fix
src/definitions/behaviors/api.js on lines 950..1003
src/definitions/behaviors/state.js on lines 519..572
src/definitions/behaviors/visibility.js on lines 1132..1185
src/definitions/globals/site.js on lines 351..404
src/definitions/modules/accordion.js on lines 480..533
src/definitions/modules/checkbox.js on lines 698..751
src/definitions/modules/dimmer.js on lines 559..612
src/definitions/modules/embed.js on lines 491..544
src/definitions/modules/nag.js on lines 365..418
src/definitions/modules/progress.js on lines 769..822
src/definitions/modules/sidebar.js on lines 873..926
src/definitions/modules/tab.js on lines 802..855

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/behaviors/state.js and 12 other locations - About 2 days to fix
src/definitions/behaviors/api.js on lines 950..1003
src/definitions/behaviors/visibility.js on lines 1132..1185
src/definitions/globals/site.js on lines 351..404
src/definitions/modules/accordion.js on lines 480..533
src/definitions/modules/checkbox.js on lines 698..751
src/definitions/modules/dimmer.js on lines 559..612
src/definitions/modules/dropdown.js on lines 3549..3602
src/definitions/modules/embed.js on lines 491..544
src/definitions/modules/nag.js on lines 365..418
src/definitions/modules/progress.js on lines 769..822
src/definitions/modules/sidebar.js on lines 873..926
src/definitions/modules/tab.js on lines 802..855

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/behaviors/visibility.js and 12 other locations - About 2 days to fix
src/definitions/behaviors/api.js on lines 950..1003
src/definitions/behaviors/state.js on lines 519..572
src/definitions/globals/site.js on lines 351..404
src/definitions/modules/accordion.js on lines 480..533
src/definitions/modules/checkbox.js on lines 698..751
src/definitions/modules/dimmer.js on lines 559..612
src/definitions/modules/dropdown.js on lines 3549..3602
src/definitions/modules/embed.js on lines 491..544
src/definitions/modules/nag.js on lines 365..418
src/definitions/modules/progress.js on lines 769..822
src/definitions/modules/sidebar.js on lines 873..926
src/definitions/modules/tab.js on lines 802..855

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

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in src/definitions/modules/nag.js and 12 other locations - About 2 days to fix
src/definitions/behaviors/api.js on lines 950..1003
src/definitions/behaviors/state.js on lines 519..572
src/definitions/behaviors/visibility.js on lines 1132..1185
src/definitions/globals/site.js on lines 351..404
src/definitions/modules/accordion.js on lines 480..533
src/definitions/modules/checkbox.js on lines 698..751
src/definitions/modules/dimmer.js on lines 559..612
src/definitions/modules/dropdown.js on lines 3549..3602
src/definitions/modules/embed.js on lines 491..544
src/definitions/modules/progress.js on lines 769..822
src/definitions/modules/sidebar.js on lines 873..926
src/definitions/modules/tab.js on lines 802..855

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

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