nemesiscodex/openfonacide

View on GitHub

Showing 970 of 970 total issues

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 static/components/tab.js and 12 other locations - About 2 days to fix
static/components/accordion.js on lines 456..509
static/components/api.js on lines 704..757
static/components/checkbox.js on lines 395..448
static/components/dimmer.js on lines 521..574
static/components/dropdown.js on lines 1606..1659
static/components/nag.js on lines 344..397
static/components/progress.js on lines 632..685
static/components/sidebar.js on lines 921..974
static/components/site.js on lines 351..404
static/components/state.js on lines 506..559
static/components/video.js on lines 387..440
static/components/visibility.js on lines 944..997

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 static/components/sidebar.js and 12 other locations - About 2 days to fix
static/components/accordion.js on lines 456..509
static/components/api.js on lines 704..757
static/components/checkbox.js on lines 395..448
static/components/dimmer.js on lines 521..574
static/components/dropdown.js on lines 1606..1659
static/components/nag.js on lines 344..397
static/components/progress.js on lines 632..685
static/components/site.js on lines 351..404
static/components/state.js on lines 506..559
static/components/tab.js on lines 660..713
static/components/video.js on lines 387..440
static/components/visibility.js on lines 944..997

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

        invoke: function(query, passedArguments, context) {
          var
            object = instance,
            maxDepth,
            found,
Severity: Major
Found in static/components/form.js and 6 other locations - About 2 days to fix
static/components/modal.js on lines 727..779
static/components/popup.js on lines 1011..1063
static/components/rating.js on lines 322..374
static/components/search.js on lines 788..840
static/components/shape.js on lines 704..756
static/components/sticky.js on lines 693..745

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 static/components/shape.js and 6 other locations - About 2 days to fix
static/components/form.js on lines 812..864
static/components/modal.js on lines 727..779
static/components/popup.js on lines 1011..1063
static/components/rating.js on lines 322..374
static/components/search.js on lines 788..840
static/components/sticky.js on lines 693..745

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 static/components/modal.js and 6 other locations - About 2 days to fix
static/components/form.js on lines 812..864
static/components/popup.js on lines 1011..1063
static/components/rating.js on lines 322..374
static/components/search.js on lines 788..840
static/components/shape.js on lines 704..756
static/components/sticky.js on lines 693..745

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 static/components/rating.js and 6 other locations - About 2 days to fix
static/components/form.js on lines 812..864
static/components/modal.js on lines 727..779
static/components/popup.js on lines 1011..1063
static/components/search.js on lines 788..840
static/components/shape.js on lines 704..756
static/components/sticky.js on lines 693..745

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 static/components/sticky.js and 6 other locations - About 2 days to fix
static/components/form.js on lines 812..864
static/components/modal.js on lines 727..779
static/components/popup.js on lines 1011..1063
static/components/rating.js on lines 322..374
static/components/search.js on lines 788..840
static/components/shape.js on lines 704..756

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 static/components/search.js and 6 other locations - About 2 days to fix
static/components/form.js on lines 812..864
static/components/modal.js on lines 727..779
static/components/popup.js on lines 1011..1063
static/components/rating.js on lines 322..374
static/components/shape.js on lines 704..756
static/components/sticky.js on lines 693..745

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 static/components/popup.js and 6 other locations - About 2 days to fix
static/components/form.js on lines 812..864
static/components/modal.js on lines 727..779
static/components/rating.js on lines 322..374
static/components/search.js on lines 788..840
static/components/shape.js on lines 704..756
static/components/sticky.js on lines 693..745

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

Function state has 516 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.fn.state = function(parameters) {
  var
    $allModules     = $(this),

    moduleSelector  = $allModules.selector || '',
Severity: Major
Found in static/components/state.js - About 2 days to fix

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

            performance: {
              log: function(message) {
                var
                  currentTime,
                  executionTime,
    Severity: Major
    Found in static/components/sticky.js and 11 other locations - About 2 days to fix
    static/components/accordion.js on lines 405..455
    static/components/checkbox.js on lines 344..394
    static/components/dropdown.js on lines 1555..1605
    static/components/modal.js on lines 676..726
    static/components/nag.js on lines 293..343
    static/components/popup.js on lines 960..1010
    static/components/progress.js on lines 581..631
    static/components/sidebar.js on lines 870..920
    static/components/state.js on lines 455..505
    static/components/tab.js on lines 609..659
    static/components/visibility.js on lines 893..943

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

            performance: {
              log: function(message) {
                var
                  currentTime,
                  executionTime,
    Severity: Major
    Found in static/components/progress.js and 11 other locations - About 2 days to fix
    static/components/accordion.js on lines 405..455
    static/components/checkbox.js on lines 344..394
    static/components/dropdown.js on lines 1555..1605
    static/components/modal.js on lines 676..726
    static/components/nag.js on lines 293..343
    static/components/popup.js on lines 960..1010
    static/components/sidebar.js on lines 870..920
    static/components/state.js on lines 455..505
    static/components/sticky.js on lines 642..692
    static/components/tab.js on lines 609..659
    static/components/visibility.js on lines 893..943

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

            performance: {
              log: function(message) {
                var
                  currentTime,
                  executionTime,
    Severity: Major
    Found in static/components/tab.js and 11 other locations - About 2 days to fix
    static/components/accordion.js on lines 405..455
    static/components/checkbox.js on lines 344..394
    static/components/dropdown.js on lines 1555..1605
    static/components/modal.js on lines 676..726
    static/components/nag.js on lines 293..343
    static/components/popup.js on lines 960..1010
    static/components/progress.js on lines 581..631
    static/components/sidebar.js on lines 870..920
    static/components/state.js on lines 455..505
    static/components/sticky.js on lines 642..692
    static/components/visibility.js on lines 893..943

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

            performance: {
              log: function(message) {
                var
                  currentTime,
                  executionTime,
    Severity: Major
    Found in static/components/nag.js and 11 other locations - About 2 days to fix
    static/components/accordion.js on lines 405..455
    static/components/checkbox.js on lines 344..394
    static/components/dropdown.js on lines 1555..1605
    static/components/modal.js on lines 676..726
    static/components/popup.js on lines 960..1010
    static/components/progress.js on lines 581..631
    static/components/sidebar.js on lines 870..920
    static/components/state.js on lines 455..505
    static/components/sticky.js on lines 642..692
    static/components/tab.js on lines 609..659
    static/components/visibility.js on lines 893..943

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

            performance: {
              log: function(message) {
                var
                  currentTime,
                  executionTime,
    Severity: Major
    Found in static/components/state.js and 11 other locations - About 2 days to fix
    static/components/accordion.js on lines 405..455
    static/components/checkbox.js on lines 344..394
    static/components/dropdown.js on lines 1555..1605
    static/components/modal.js on lines 676..726
    static/components/nag.js on lines 293..343
    static/components/popup.js on lines 960..1010
    static/components/progress.js on lines 581..631
    static/components/sidebar.js on lines 870..920
    static/components/sticky.js on lines 642..692
    static/components/tab.js on lines 609..659
    static/components/visibility.js on lines 893..943

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

            performance: {
              log: function(message) {
                var
                  currentTime,
                  executionTime,
    Severity: Major
    Found in static/components/dropdown.js and 11 other locations - About 2 days to fix
    static/components/accordion.js on lines 405..455
    static/components/checkbox.js on lines 344..394
    static/components/modal.js on lines 676..726
    static/components/nag.js on lines 293..343
    static/components/popup.js on lines 960..1010
    static/components/progress.js on lines 581..631
    static/components/sidebar.js on lines 870..920
    static/components/state.js on lines 455..505
    static/components/sticky.js on lines 642..692
    static/components/tab.js on lines 609..659
    static/components/visibility.js on lines 893..943

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

            performance: {
              log: function(message) {
                var
                  currentTime,
                  executionTime,
    Severity: Major
    Found in static/components/modal.js and 11 other locations - About 2 days to fix
    static/components/accordion.js on lines 405..455
    static/components/checkbox.js on lines 344..394
    static/components/dropdown.js on lines 1555..1605
    static/components/nag.js on lines 293..343
    static/components/popup.js on lines 960..1010
    static/components/progress.js on lines 581..631
    static/components/sidebar.js on lines 870..920
    static/components/state.js on lines 455..505
    static/components/sticky.js on lines 642..692
    static/components/tab.js on lines 609..659
    static/components/visibility.js on lines 893..943

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

            performance: {
              log: function(message) {
                var
                  currentTime,
                  executionTime,
    Severity: Major
    Found in static/components/checkbox.js and 11 other locations - About 2 days to fix
    static/components/accordion.js on lines 405..455
    static/components/dropdown.js on lines 1555..1605
    static/components/modal.js on lines 676..726
    static/components/nag.js on lines 293..343
    static/components/popup.js on lines 960..1010
    static/components/progress.js on lines 581..631
    static/components/sidebar.js on lines 870..920
    static/components/state.js on lines 455..505
    static/components/sticky.js on lines 642..692
    static/components/tab.js on lines 609..659
    static/components/visibility.js on lines 893..943

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

            performance: {
              log: function(message) {
                var
                  currentTime,
                  executionTime,
    Severity: Major
    Found in static/components/popup.js and 11 other locations - About 2 days to fix
    static/components/accordion.js on lines 405..455
    static/components/checkbox.js on lines 344..394
    static/components/dropdown.js on lines 1555..1605
    static/components/modal.js on lines 676..726
    static/components/nag.js on lines 293..343
    static/components/progress.js on lines 581..631
    static/components/sidebar.js on lines 870..920
    static/components/state.js on lines 455..505
    static/components/sticky.js on lines 642..692
    static/components/tab.js on lines 609..659
    static/components/visibility.js on lines 893..943

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

            performance: {
              log: function(message) {
                var
                  currentTime,
                  executionTime,
    Severity: Major
    Found in static/components/visibility.js and 11 other locations - About 2 days to fix
    static/components/accordion.js on lines 405..455
    static/components/checkbox.js on lines 344..394
    static/components/dropdown.js on lines 1555..1605
    static/components/modal.js on lines 676..726
    static/components/nag.js on lines 293..343
    static/components/popup.js on lines 960..1010
    static/components/progress.js on lines 581..631
    static/components/sidebar.js on lines 870..920
    static/components/state.js on lines 455..505
    static/components/sticky.js on lines 642..692
    static/components/tab.js on lines 609..659

    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

    Severity
    Category
    Status
    Source
    Language