nemesiscodex/openfonacide

View on GitHub

Showing 970 of 970 total issues

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 338..342

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

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

            transformLeftStr = support.support3d ? 'translate3d(-' + Number( getViewportW() / 2 + itemWidth / 2 ) + 'px, 0, -150px)' : 'translate(-' + Number( getViewportW() / 2 + itemWidth / 2 ) + 'px)',
Severity: Major
Found in static/js/cbpGridGallery.js and 1 other location - About 1 hr to fix
static/js/cbpGridGallery.js on lines 191..191

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

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

            transformRightStr = support.support3d ? 'translate3d(' + Number( getViewportW() / 2 + itemWidth / 2 ) + 'px, 0, -150px)' : 'translate(' + Number( getViewportW() / 2 + itemWidth / 2 ) + 'px)',
Severity: Major
Found in static/js/cbpGridGallery.js and 1 other location - About 1 hr to fix
static/js/cbpGridGallery.js on lines 190..190

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

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

        msg: {
            required:"Campo obligatorio",
            number:"Introduzca un número",
            minValue:"El valor debe ser mayor o igual a ",
            maxValue:"El valor debe ser menor o igual a ",
Severity: Major
Found in static/js/grid.locale-es.js and 1 other location - About 1 hr to fix
static/components/form.js on lines 918..931

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

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

  selector : {
    checkbox   : 'input[type="checkbox"], input[type="radio"]',
    clear      : '.clear',
    field      : 'input, textarea, select',
    group      : '.field',
Severity: Major
Found in static/components/form.js and 1 other location - About 1 hr to fix
static/js/grid.locale-es.js on lines 38..51

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

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

            $menu
              .on('mouseenter' + eventNamespace, selector.item, module.event.item.mouseenter)
              .on('mouseleave' + eventNamespace, selector.item, module.event.item.mouseleave)
              .on('click'      + eventNamespace, selector.item, module.event.item.click)
Severity: Major
Found in static/components/dropdown.js and 1 other location - About 1 hr to fix
static/components/dropdown.js on lines 341..344

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

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

          $icon
            .on('mouseenter' + eventNamespace, module.event.mouseenter)
            .on('mouseleave' + eventNamespace, module.event.mouseleave)
            .on('click' + eventNamespace, module.event.click)
          ;
Severity: Major
Found in static/components/rating.js and 1 other location - About 1 hr to fix
static/components/state.js on lines 75..79

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

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

              $module
                .on('mousedown' + eventNamespace, selector.menu, module.event.menu.activate)
                .on('mouseup'   + eventNamespace, selector.menu, module.event.menu.deactivate)
                .on('click'     + eventNamespace, selector.search, module.show)
Severity: Major
Found in static/components/dropdown.js and 1 other location - About 1 hr to fix
static/components/dropdown.js on lines 374..377

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

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

            $module
              .on('mouseenter' + eventNamespace, module.change.text)
              .on('mouseleave' + eventNamespace, module.reset.text)
              .on('click'      + eventNamespace, module.toggle.state)
            ;
Severity: Major
Found in static/components/state.js and 1 other location - About 1 hr to fix
static/components/rating.js on lines 174..178

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

Function reformSetting has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function reformSetting() {
        // Settings of log label base
        logLabelBase = custOpts.logLabelBase;
        if (logLabelBase == null) {
            logLabelMode = 'plain';
Severity: Minor
Found in static/js/dncp/util/smartLogSteps.js - About 1 hr to fix

    Function scrollPosition has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

              scrollPosition: function($item, forceScroll) {
                var
                  edgeTolerance = 5,
                  hasActive,
                  offset,
    Severity: Minor
    Found in static/components/dropdown.js - About 1 hr to fix

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

              settings          = ( $.isPlainObject(parameters) )
                ? $.extend(true, {}, $.fn.state.settings, parameters)
                : $.extend({}, $.fn.state.settings),
      Severity: Major
      Found in static/components/state.js and 14 other locations - About 1 hr to fix
      static/components/accordion.js on lines 38..40
      static/components/api.js on lines 37..39
      static/components/dimmer.js on lines 33..35
      static/components/dropdown.js on lines 36..38
      static/components/modal.js on lines 44..46
      static/components/nag.js on lines 32..34
      static/components/popup.js on lines 36..38
      static/components/progress.js on lines 35..37
      static/components/rating.js on lines 32..34
      static/components/sidebar.js on lines 45..47
      static/components/sticky.js on lines 33..35
      static/components/tab.js on lines 24..26
      static/components/video.js on lines 42..44
      static/components/visibility.js on lines 33..35

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

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

              settings        = ( $.isPlainObject(parameters) )
                ? $.extend(true, {}, $.fn.accordion.settings, parameters)
                : $.extend({}, $.fn.accordion.settings),
      Severity: Major
      Found in static/components/accordion.js and 14 other locations - About 1 hr to fix
      static/components/api.js on lines 37..39
      static/components/dimmer.js on lines 33..35
      static/components/dropdown.js on lines 36..38
      static/components/modal.js on lines 44..46
      static/components/nag.js on lines 32..34
      static/components/popup.js on lines 36..38
      static/components/progress.js on lines 35..37
      static/components/rating.js on lines 32..34
      static/components/sidebar.js on lines 45..47
      static/components/state.js on lines 35..37
      static/components/sticky.js on lines 33..35
      static/components/tab.js on lines 24..26
      static/components/video.js on lines 42..44
      static/components/visibility.js on lines 33..35

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

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

              settings          = ( $.isPlainObject(parameters) )
                ? $.extend(true, {}, $.fn.progress.settings, parameters)
                : $.extend({}, $.fn.progress.settings),
      Severity: Major
      Found in static/components/progress.js and 14 other locations - About 1 hr to fix
      static/components/accordion.js on lines 38..40
      static/components/api.js on lines 37..39
      static/components/dimmer.js on lines 33..35
      static/components/dropdown.js on lines 36..38
      static/components/modal.js on lines 44..46
      static/components/nag.js on lines 32..34
      static/components/popup.js on lines 36..38
      static/components/rating.js on lines 32..34
      static/components/sidebar.js on lines 45..47
      static/components/state.js on lines 35..37
      static/components/sticky.js on lines 33..35
      static/components/tab.js on lines 24..26
      static/components/video.js on lines 42..44
      static/components/visibility.js on lines 33..35

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

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

              settings          = ( $.isPlainObject(parameters) )
                ? $.extend(true, {}, $.fn.nag.settings, parameters)
                : $.extend({}, $.fn.nag.settings),
      Severity: Major
      Found in static/components/nag.js and 14 other locations - About 1 hr to fix
      static/components/accordion.js on lines 38..40
      static/components/api.js on lines 37..39
      static/components/dimmer.js on lines 33..35
      static/components/dropdown.js on lines 36..38
      static/components/modal.js on lines 44..46
      static/components/popup.js on lines 36..38
      static/components/progress.js on lines 35..37
      static/components/rating.js on lines 32..34
      static/components/sidebar.js on lines 45..47
      static/components/state.js on lines 35..37
      static/components/sticky.js on lines 33..35
      static/components/tab.js on lines 24..26
      static/components/video.js on lines 42..44
      static/components/visibility.js on lines 33..35

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

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

              settings              = ( $.isPlainObject(parameters) )
                ? $.extend(true, {}, $.fn.sticky.settings, parameters)
                : $.extend({}, $.fn.sticky.settings),
      Severity: Major
      Found in static/components/sticky.js and 14 other locations - About 1 hr to fix
      static/components/accordion.js on lines 38..40
      static/components/api.js on lines 37..39
      static/components/dimmer.js on lines 33..35
      static/components/dropdown.js on lines 36..38
      static/components/modal.js on lines 44..46
      static/components/nag.js on lines 32..34
      static/components/popup.js on lines 36..38
      static/components/progress.js on lines 35..37
      static/components/rating.js on lines 32..34
      static/components/sidebar.js on lines 45..47
      static/components/state.js on lines 35..37
      static/components/tab.js on lines 24..26
      static/components/video.js on lines 42..44
      static/components/visibility.js on lines 33..35

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

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

              settings        = ( $.isPlainObject(parameters) )
                ? $.extend(true, {}, $.fn.popup.settings, parameters)
                : $.extend({}, $.fn.popup.settings),
      Severity: Major
      Found in static/components/popup.js and 14 other locations - About 1 hr to fix
      static/components/accordion.js on lines 38..40
      static/components/api.js on lines 37..39
      static/components/dimmer.js on lines 33..35
      static/components/dropdown.js on lines 36..38
      static/components/modal.js on lines 44..46
      static/components/nag.js on lines 32..34
      static/components/progress.js on lines 35..37
      static/components/rating.js on lines 32..34
      static/components/sidebar.js on lines 45..47
      static/components/state.js on lines 35..37
      static/components/sticky.js on lines 33..35
      static/components/tab.js on lines 24..26
      static/components/video.js on lines 42..44
      static/components/visibility.js on lines 33..35

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

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

              settings        = ( $.isPlainObject(parameters) )
                ? $.extend(true, {}, $.fn.visibility.settings, parameters)
                : $.extend({}, $.fn.visibility.settings),
      Severity: Major
      Found in static/components/visibility.js and 14 other locations - About 1 hr to fix
      static/components/accordion.js on lines 38..40
      static/components/api.js on lines 37..39
      static/components/dimmer.js on lines 33..35
      static/components/dropdown.js on lines 36..38
      static/components/modal.js on lines 44..46
      static/components/nag.js on lines 32..34
      static/components/popup.js on lines 36..38
      static/components/progress.js on lines 35..37
      static/components/rating.js on lines 32..34
      static/components/sidebar.js on lines 45..47
      static/components/state.js on lines 35..37
      static/components/sticky.js on lines 33..35
      static/components/tab.js on lines 24..26
      static/components/video.js on lines 42..44

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

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

              settings          = ( $.isPlainObject(parameters) )
                ? $.extend(true, {}, $.fn.dropdown.settings, parameters)
                : $.extend({}, $.fn.dropdown.settings),
      Severity: Major
      Found in static/components/dropdown.js and 14 other locations - About 1 hr to fix
      static/components/accordion.js on lines 38..40
      static/components/api.js on lines 37..39
      static/components/dimmer.js on lines 33..35
      static/components/modal.js on lines 44..46
      static/components/nag.js on lines 32..34
      static/components/popup.js on lines 36..38
      static/components/progress.js on lines 35..37
      static/components/rating.js on lines 32..34
      static/components/sidebar.js on lines 45..47
      static/components/state.js on lines 35..37
      static/components/sticky.js on lines 33..35
      static/components/tab.js on lines 24..26
      static/components/video.js on lines 42..44
      static/components/visibility.js on lines 33..35

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

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

              settings    = ( $.isPlainObject(parameters) )
                ? $.extend(true, {}, $.fn.modal.settings, parameters)
                : $.extend({}, $.fn.modal.settings),
      Severity: Major
      Found in static/components/modal.js and 14 other locations - About 1 hr to fix
      static/components/accordion.js on lines 38..40
      static/components/api.js on lines 37..39
      static/components/dimmer.js on lines 33..35
      static/components/dropdown.js on lines 36..38
      static/components/nag.js on lines 32..34
      static/components/popup.js on lines 36..38
      static/components/progress.js on lines 35..37
      static/components/rating.js on lines 32..34
      static/components/sidebar.js on lines 45..47
      static/components/state.js on lines 35..37
      static/components/sticky.js on lines 33..35
      static/components/tab.js on lines 24..26
      static/components/video.js on lines 42..44
      static/components/visibility.js on lines 33..35

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

      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