nemesiscodex/openfonacide

View on GitHub

Showing 970 of 970 total issues

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

        error: function() {
          module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
          module.error.apply(console, arguments);
        },
Severity: Major
Found in static/components/dimmer.js and 20 other locations - About 1 hr to fix
static/components/accordion.js on lines 401..404
static/components/api.js on lines 649..652
static/components/checkbox.js on lines 340..343
static/components/dropdown.js on lines 1551..1554
static/components/form.js on lines 754..757
static/components/modal.js on lines 672..675
static/components/nag.js on lines 289..292
static/components/popup.js on lines 956..959
static/components/progress.js on lines 577..580
static/components/rating.js on lines 264..267
static/components/search.js on lines 730..733
static/components/shape.js on lines 646..649
static/components/sidebar.js on lines 866..869
static/components/site.js on lines 299..302
static/components/state.js on lines 451..454
static/components/sticky.js on lines 638..641
static/components/tab.js on lines 605..608
static/components/transition.js on lines 834..837
static/components/video.js on lines 329..332
static/components/visibility.js on lines 889..892

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

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

        error: function() {
          module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
          module.error.apply(console, arguments);
        },
Severity: Major
Found in static/components/progress.js and 20 other locations - About 1 hr to fix
static/components/accordion.js on lines 401..404
static/components/api.js on lines 649..652
static/components/checkbox.js on lines 340..343
static/components/dimmer.js on lines 463..466
static/components/dropdown.js on lines 1551..1554
static/components/form.js on lines 754..757
static/components/modal.js on lines 672..675
static/components/nag.js on lines 289..292
static/components/popup.js on lines 956..959
static/components/rating.js on lines 264..267
static/components/search.js on lines 730..733
static/components/shape.js on lines 646..649
static/components/sidebar.js on lines 866..869
static/components/site.js on lines 299..302
static/components/state.js on lines 451..454
static/components/sticky.js on lines 638..641
static/components/tab.js on lines 605..608
static/components/transition.js on lines 834..837
static/components/video.js on lines 329..332
static/components/visibility.js on lines 889..892

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

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

        error: function() {
          module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
          module.error.apply(console, arguments);
        },
Severity: Major
Found in static/components/tab.js and 20 other locations - About 1 hr to fix
static/components/accordion.js on lines 401..404
static/components/api.js on lines 649..652
static/components/checkbox.js on lines 340..343
static/components/dimmer.js on lines 463..466
static/components/dropdown.js on lines 1551..1554
static/components/form.js on lines 754..757
static/components/modal.js on lines 672..675
static/components/nag.js on lines 289..292
static/components/popup.js on lines 956..959
static/components/progress.js on lines 577..580
static/components/rating.js on lines 264..267
static/components/search.js on lines 730..733
static/components/shape.js on lines 646..649
static/components/sidebar.js on lines 866..869
static/components/site.js on lines 299..302
static/components/state.js on lines 451..454
static/components/sticky.js on lines 638..641
static/components/transition.js on lines 834..837
static/components/video.js on lines 329..332
static/components/visibility.js on lines 889..892

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

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

    error: function() {
      module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
      module.error.apply(console, arguments);
    },
Severity: Major
Found in static/components/site.js and 20 other locations - About 1 hr to fix
static/components/accordion.js on lines 401..404
static/components/api.js on lines 649..652
static/components/checkbox.js on lines 340..343
static/components/dimmer.js on lines 463..466
static/components/dropdown.js on lines 1551..1554
static/components/form.js on lines 754..757
static/components/modal.js on lines 672..675
static/components/nag.js on lines 289..292
static/components/popup.js on lines 956..959
static/components/progress.js on lines 577..580
static/components/rating.js on lines 264..267
static/components/search.js on lines 730..733
static/components/shape.js on lines 646..649
static/components/sidebar.js on lines 866..869
static/components/state.js on lines 451..454
static/components/sticky.js on lines 638..641
static/components/tab.js on lines 605..608
static/components/transition.js on lines 834..837
static/components/video.js on lines 329..332
static/components/visibility.js on lines 889..892

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

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

        error: function() {
          module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
          module.error.apply(console, arguments);
        },
Severity: Major
Found in static/components/api.js and 20 other locations - About 1 hr to fix
static/components/accordion.js on lines 401..404
static/components/checkbox.js on lines 340..343
static/components/dimmer.js on lines 463..466
static/components/dropdown.js on lines 1551..1554
static/components/form.js on lines 754..757
static/components/modal.js on lines 672..675
static/components/nag.js on lines 289..292
static/components/popup.js on lines 956..959
static/components/progress.js on lines 577..580
static/components/rating.js on lines 264..267
static/components/search.js on lines 730..733
static/components/shape.js on lines 646..649
static/components/sidebar.js on lines 866..869
static/components/site.js on lines 299..302
static/components/state.js on lines 451..454
static/components/sticky.js on lines 638..641
static/components/tab.js on lines 605..608
static/components/transition.js on lines 834..837
static/components/video.js on lines 329..332
static/components/visibility.js on lines 889..892

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

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

        error: function() {
          module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
          module.error.apply(console, arguments);
        },
Severity: Major
Found in static/components/visibility.js and 20 other locations - About 1 hr to fix
static/components/accordion.js on lines 401..404
static/components/api.js on lines 649..652
static/components/checkbox.js on lines 340..343
static/components/dimmer.js on lines 463..466
static/components/dropdown.js on lines 1551..1554
static/components/form.js on lines 754..757
static/components/modal.js on lines 672..675
static/components/nag.js on lines 289..292
static/components/popup.js on lines 956..959
static/components/progress.js on lines 577..580
static/components/rating.js on lines 264..267
static/components/search.js on lines 730..733
static/components/shape.js on lines 646..649
static/components/sidebar.js on lines 866..869
static/components/site.js on lines 299..302
static/components/state.js on lines 451..454
static/components/sticky.js on lines 638..641
static/components/tab.js on lines 605..608
static/components/transition.js on lines 834..837
static/components/video.js on lines 329..332

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

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

        error: function() {
          module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
          module.error.apply(console, arguments);
        },
Severity: Major
Found in static/components/form.js and 20 other locations - About 1 hr to fix
static/components/accordion.js on lines 401..404
static/components/api.js on lines 649..652
static/components/checkbox.js on lines 340..343
static/components/dimmer.js on lines 463..466
static/components/dropdown.js on lines 1551..1554
static/components/modal.js on lines 672..675
static/components/nag.js on lines 289..292
static/components/popup.js on lines 956..959
static/components/progress.js on lines 577..580
static/components/rating.js on lines 264..267
static/components/search.js on lines 730..733
static/components/shape.js on lines 646..649
static/components/sidebar.js on lines 866..869
static/components/site.js on lines 299..302
static/components/state.js on lines 451..454
static/components/sticky.js on lines 638..641
static/components/tab.js on lines 605..608
static/components/transition.js on lines 834..837
static/components/video.js on lines 329..332
static/components/visibility.js on lines 889..892

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

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

        error: function() {
          module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
          module.error.apply(console, arguments);
        },
Severity: Major
Found in static/components/video.js and 20 other locations - About 1 hr to fix
static/components/accordion.js on lines 401..404
static/components/api.js on lines 649..652
static/components/checkbox.js on lines 340..343
static/components/dimmer.js on lines 463..466
static/components/dropdown.js on lines 1551..1554
static/components/form.js on lines 754..757
static/components/modal.js on lines 672..675
static/components/nag.js on lines 289..292
static/components/popup.js on lines 956..959
static/components/progress.js on lines 577..580
static/components/rating.js on lines 264..267
static/components/search.js on lines 730..733
static/components/shape.js on lines 646..649
static/components/sidebar.js on lines 866..869
static/components/site.js on lines 299..302
static/components/state.js on lines 451..454
static/components/sticky.js on lines 638..641
static/components/tab.js on lines 605..608
static/components/transition.js on lines 834..837
static/components/visibility.js on lines 889..892

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

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

        error: function() {
          module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
          module.error.apply(console, arguments);
        },
Severity: Major
Found in static/components/dropdown.js and 20 other locations - About 1 hr to fix
static/components/accordion.js on lines 401..404
static/components/api.js on lines 649..652
static/components/checkbox.js on lines 340..343
static/components/dimmer.js on lines 463..466
static/components/form.js on lines 754..757
static/components/modal.js on lines 672..675
static/components/nag.js on lines 289..292
static/components/popup.js on lines 956..959
static/components/progress.js on lines 577..580
static/components/rating.js on lines 264..267
static/components/search.js on lines 730..733
static/components/shape.js on lines 646..649
static/components/sidebar.js on lines 866..869
static/components/site.js on lines 299..302
static/components/state.js on lines 451..454
static/components/sticky.js on lines 638..641
static/components/tab.js on lines 605..608
static/components/transition.js on lines 834..837
static/components/video.js on lines 329..332
static/components/visibility.js on lines 889..892

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

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

        error: function() {
          module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
          module.error.apply(console, arguments);
        },
Severity: Major
Found in static/components/shape.js and 20 other locations - About 1 hr to fix
static/components/accordion.js on lines 401..404
static/components/api.js on lines 649..652
static/components/checkbox.js on lines 340..343
static/components/dimmer.js on lines 463..466
static/components/dropdown.js on lines 1551..1554
static/components/form.js on lines 754..757
static/components/modal.js on lines 672..675
static/components/nag.js on lines 289..292
static/components/popup.js on lines 956..959
static/components/progress.js on lines 577..580
static/components/rating.js on lines 264..267
static/components/search.js on lines 730..733
static/components/sidebar.js on lines 866..869
static/components/site.js on lines 299..302
static/components/state.js on lines 451..454
static/components/sticky.js on lines 638..641
static/components/tab.js on lines 605..608
static/components/transition.js on lines 834..837
static/components/video.js on lines 329..332
static/components/visibility.js on lines 889..892

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

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

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

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

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

Refactorings

Further Reading

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

            $activeTitle = (query !== undefined)
              ? (typeof query === 'number')
                ? $title.eq(query)
                : $(query).closest(selector.title)
              : $(this).closest(selector.title),
Severity: Major
Found in static/components/accordion.js and 2 other locations - About 1 hr to fix
static/components/accordion.js on lines 121..125
static/components/accordion.js on lines 208..212

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

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

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

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

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

Refactorings

Further Reading

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

            $activeTitle = (query !== undefined)
              ? (typeof query === 'number')
                ? $title.eq(query)
                : $(query).closest(selector.title)
              : $(this).closest(selector.title),
Severity: Major
Found in static/components/accordion.js and 2 other locations - About 1 hr to fix
static/components/accordion.js on lines 121..125
static/components/accordion.js on lines 148..152

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

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

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

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

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

Refactorings

Further Reading

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

            $activeTitle = (query !== undefined)
              ? (typeof query === 'number')
                ? $title.eq(query)
                : $(query).closest(selector.title)
              : $(this).closest(selector.title),
Severity: Major
Found in static/components/accordion.js and 2 other locations - About 1 hr to fix
static/components/accordion.js on lines 148..152
static/components/accordion.js on lines 208..212

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

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

              style  += ''
                + ' .ui.visible.' + direction + '.sidebar ~ .fixed,'
                + ' .ui.visible.' + direction + '.sidebar ~ .pusher {'
                + '   -webkit-transform: translate3d('+ distance[direction] + 'px, 0, 0);'
                + '           transform: translate3d('+ distance[direction] + 'px, 0, 0);'
Severity: Major
Found in static/components/sidebar.js and 1 other location - About 1 hr to fix
static/components/sidebar.js on lines 241..247

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

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

              style  += ''
                + ' .ui.visible.' + direction + '.sidebar ~ .fixed,'
                + ' .ui.visible.' + direction + '.sidebar ~ .pusher {'
                + '   -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'
                + '           transform: translate3d(0, ' + distance[direction] + 'px, 0);'
Severity: Major
Found in static/components/sidebar.js and 1 other location - About 1 hr to fix
static/components/sidebar.js on lines 232..238

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

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

Severity: Major
Found in openfonacide/migrations/0035_auto_20150405_0224.py and 1 other location - About 1 hr to fix
openfonacide/migrations/0034_auto_20150405_0223.py on lines 0..14

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

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

Severity: Major
Found in openfonacide/migrations/0034_auto_20150405_0223.py and 1 other location - About 1 hr to fix
openfonacide/migrations/0035_auto_20150405_0224.py on lines 0..14

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

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 parameter has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            parameter: function(name, value, append) {
                var i, params;
                if (value !== UNDEFINED) {
                    var names = this.parameterNames();
                    params = [];
Severity: Minor
Found in static/js/jquery.address.js - About 1 hr to fix

    Function parseRange has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function parseRange(index, dimSize) {
        if (index.indexOf(':') >= 0) {
            // Range indexing;
            var res = index.split(/\s*:\s*/);
    
    
    Severity: Minor
    Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

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

                      if( !module.cache.read(currentPath) ) {
                        module.cache.add(currentPath, true);
                        module.debug('First time tab loaded calling tab init');
                        settings.onTabInit.call($tab, currentPath, parameterArray, historyEvent);
                      }
      Severity: Major
      Found in static/components/tab.js and 1 other location - About 1 hr to fix
      static/components/tab.js on lines 321..325

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

      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