nemesiscodex/openfonacide

View on GitHub

Showing 970 of 970 total issues

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

            over: function() {
              var
                translate = {
                  x : -(($activeSide.outerWidth() - $nextSide.outerWidth()) / 2)
                }
Severity: Major
Found in static/components/shape.js and 1 other location - About 1 hr to fix
static/components/shape.js on lines 430..439

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

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

            back: function() {
              var
                translate = {
                  x : -(($activeSide.outerWidth() - $nextSide.outerWidth()) / 2)
                }
Severity: Major
Found in static/components/shape.js and 1 other location - About 1 hr to fix
static/components/shape.js on lines 419..428

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

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

        pushPage: function(callback) {
          var
            transition = module.get.transition(),
            $transition = (transition == 'safe')
              ? $context
Severity: Minor
Found in static/components/sidebar.js - About 1 hr to fix

    Function show has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            show: function(callback) {
              var
                animateMethod = (settings.useLegacy === true)
                  ? module.legacyPushPage
                  : module.pushPage
    Severity: Minor
    Found in static/components/sidebar.js - About 1 hr to fix

      Function ptp has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          ptp : kwargs((function () {
              function withAxis(data, source, offsetStride, axisSize, stride) {
                  var cursor = 0;
                  for (var offset = 0; offset < this._size; offset+=offsetStride) {
                      for (var i = 0; i < stride; i++) {
      Severity: Minor
      Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

        Function buildPath has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                buildPath : function (ctx, style) {
        
                    var clockWise = style.clockWise || false;
        
                    var path = this._pathProxy;
        Severity: Minor
        Found in static/js/dncp/util/shape/Ribbon.js - About 1 hr to fix

          Function mouseEvents has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                    mouseEvents: function() {
                      module.verbose('Mouse detected binding mouse events');
                      if( module.is.searchSelection() ) {
                        $module
                          .on('mousedown' + eventNamespace, selector.menu, module.event.menu.activate)
          Severity: Minor
          Found in static/components/dropdown.js - About 1 hr to fix

            Function pullPage has 40 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    pullPage: function(callback) {
                      var
                        transition = module.get.transition(),
                        $transition = (transition == 'safe')
                          ? $context
            Severity: Minor
            Found in static/components/sidebar.js - About 1 hr to fix

              Function prompt has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                        prompt: function(identifier, errors) {
                          var
                            $field       = module.get.field(identifier),
                            $fieldGroup  = $field.closest($group),
                            $prompt      = $fieldGroup.children(selector.prompt),
              Severity: Minor
              Found in static/components/form.js - About 1 hr to fix

                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/popup.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/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/accordion.js and 20 other locations - About 1 hr to fix
                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
                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/transition.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/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/checkbox.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/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/rating.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/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/state.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/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/nag.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/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/sidebar.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/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/sticky.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/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/search.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/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/modal.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/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

                Severity
                Category
                Status
                Source
                Language