Semantic-Org/Semantic-UI

View on GitHub

Showing 558 of 804 total issues

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

    function setConfig() {
      git.exec(fileModeOptions, function() {
        git.exec(usernameOptions, function () {
          git.exec(emailOptions, function () {
            commitFiles();
Severity: Major
Found in tasks/admin/components/update.js and 1 other location - About 1 hr to fix
tasks/admin/distributions/update.js on lines 99..107

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

        exactSearch: function (query, term) {
          query = query.toLowerCase();
          term  = term.toLowerCase();
          if(term.indexOf(query) > -1) {
             return true;
Severity: Major
Found in src/definitions/modules/dropdown.js and 1 other location - About 1 hr to fix
src/definitions/modules/search.js on lines 650..657

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

let
  gulp           = require('gulp'),

  // node dependencies
  console        = require('better-console'),
Severity: Major
Found in tasks/admin/distributions/update.js and 3 other locations - About 1 hr to fix
tasks/admin/components/init.js on lines 15..39
tasks/admin/components/update.js on lines 15..38
tasks/admin/distributions/init.js on lines 15..39

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

let
  gulp      = require('gulp'),

  // node dependencies
  console   = require('better-console'),
Severity: Major
Found in tasks/admin/distributions/init.js and 3 other locations - About 1 hr to fix
tasks/admin/components/init.js on lines 15..39
tasks/admin/components/update.js on lines 15..38
tasks/admin/distributions/update.js on lines 15..38

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

    function setConfig() {
      git.exec(fileModeOptions, function() {
        git.exec(usernameOptions, function () {
          git.exec(emailOptions, function () {
            commitFiles();
Severity: Major
Found in tasks/admin/distributions/update.js and 1 other location - About 1 hr to fix
tasks/admin/components/update.js on lines 103..111

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 src/definitions/modules/accordion.js and 2 other locations - About 1 hr to fix
src/definitions/modules/accordion.js on lines 129..133
src/definitions/modules/accordion.js on lines 156..160

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

    function initRepo() {
      console.info('Initializing repository for ' + component);
      git.init(gitOptions, function(error) {
        if(error) {
          console.error('Error initializing repo', error);
Severity: Major
Found in tasks/admin/distributions/init.js and 1 other location - About 1 hr to fix
tasks/admin/components/init.js on lines 106..114

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

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

    function initRepo() {
      console.info('Initializing repository for ' + component);
      git.init(gitOptions, function(error) {
        if(error) {
          console.error('Error initializing repo', error);
Severity: Major
Found in tasks/admin/components/init.js and 1 other location - About 1 hr to fix
tasks/admin/distributions/init.js on lines 103..111

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

        settings        = ( $.isPlainObject(parameters) )
          ? $.extend(true, {}, $.fn.dimmer.settings, parameters)
          : $.extend({}, $.fn.dimmer.settings),
Severity: Major
Found in src/definitions/modules/dimmer.js and 15 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 44..46
src/definitions/behaviors/visibility.js on lines 42..44
src/definitions/modules/accordion.js on lines 44..46
src/definitions/modules/dropdown.js on lines 42..44
src/definitions/modules/embed.js on lines 42..44
src/definitions/modules/modal.js on lines 50..52
src/definitions/modules/nag.js on lines 38..40
src/definitions/modules/popup.js on lines 44..46
src/definitions/modules/progress.js on lines 49..51
src/definitions/modules/rating.js on lines 38..40
src/definitions/modules/search.js on lines 38..40
src/definitions/modules/shape.js on lines 47..49
src/definitions/modules/sidebar.js on lines 51..53
src/definitions/modules/sticky.js on lines 39..41
src/definitions/modules/tab.js on lines 46..48

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

            var
              escapedValue = module.escape.value(value),
              $option      = $input.find('option[value="' + module.escape.string(escapedValue) + '"]'),
              hasOption    = ($option.length > 0)
            ;
Severity: Major
Found in src/definitions/modules/dropdown.js and 1 other location - About 1 hr to fix
src/definitions/modules/dropdown.js on lines 2659..2663

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

        settings    = ( $.isPlainObject(parameters) )
          ? $.extend(true, {}, $.fn.modal.settings, parameters)
          : $.extend({}, $.fn.modal.settings),
Severity: Major
Found in src/definitions/modules/modal.js and 15 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 44..46
src/definitions/behaviors/visibility.js on lines 42..44
src/definitions/modules/accordion.js on lines 44..46
src/definitions/modules/dimmer.js on lines 39..41
src/definitions/modules/dropdown.js on lines 42..44
src/definitions/modules/embed.js on lines 42..44
src/definitions/modules/nag.js on lines 38..40
src/definitions/modules/popup.js on lines 44..46
src/definitions/modules/progress.js on lines 49..51
src/definitions/modules/rating.js on lines 38..40
src/definitions/modules/search.js on lines 38..40
src/definitions/modules/shape.js on lines 47..49
src/definitions/modules/sidebar.js on lines 51..53
src/definitions/modules/sticky.js on lines 39..41
src/definitions/modules/tab.js on lines 46..48

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

        settings        = ( $.isPlainObject(parameters) )
          ? $.extend(true, {}, $.fn.popup.settings, parameters)
          : $.extend({}, $.fn.popup.settings),
Severity: Major
Found in src/definitions/modules/popup.js and 15 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 44..46
src/definitions/behaviors/visibility.js on lines 42..44
src/definitions/modules/accordion.js on lines 44..46
src/definitions/modules/dimmer.js on lines 39..41
src/definitions/modules/dropdown.js on lines 42..44
src/definitions/modules/embed.js on lines 42..44
src/definitions/modules/modal.js on lines 50..52
src/definitions/modules/nag.js on lines 38..40
src/definitions/modules/progress.js on lines 49..51
src/definitions/modules/rating.js on lines 38..40
src/definitions/modules/search.js on lines 38..40
src/definitions/modules/shape.js on lines 47..49
src/definitions/modules/sidebar.js on lines 51..53
src/definitions/modules/sticky.js on lines 39..41
src/definitions/modules/tab.js on lines 46..48

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

        settings        = ( $.isPlainObject(parameters) )
          ? $.extend(true, {}, $.fn.visibility.settings, parameters)
          : $.extend({}, $.fn.visibility.settings),
Severity: Major
Found in src/definitions/behaviors/visibility.js and 15 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 44..46
src/definitions/modules/accordion.js on lines 44..46
src/definitions/modules/dimmer.js on lines 39..41
src/definitions/modules/dropdown.js on lines 42..44
src/definitions/modules/embed.js on lines 42..44
src/definitions/modules/modal.js on lines 50..52
src/definitions/modules/nag.js on lines 38..40
src/definitions/modules/popup.js on lines 44..46
src/definitions/modules/progress.js on lines 49..51
src/definitions/modules/rating.js on lines 38..40
src/definitions/modules/search.js on lines 38..40
src/definitions/modules/shape.js on lines 47..49
src/definitions/modules/sidebar.js on lines 51..53
src/definitions/modules/sticky.js on lines 39..41
src/definitions/modules/tab.js on lines 46..48

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

        settings          = ( $.isPlainObject(parameters) )
          ? $.extend(true, {}, $.fn.dropdown.settings, parameters)
          : $.extend({}, $.fn.dropdown.settings),
Severity: Major
Found in src/definitions/modules/dropdown.js and 15 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 44..46
src/definitions/behaviors/visibility.js on lines 42..44
src/definitions/modules/accordion.js on lines 44..46
src/definitions/modules/dimmer.js on lines 39..41
src/definitions/modules/embed.js on lines 42..44
src/definitions/modules/modal.js on lines 50..52
src/definitions/modules/nag.js on lines 38..40
src/definitions/modules/popup.js on lines 44..46
src/definitions/modules/progress.js on lines 49..51
src/definitions/modules/rating.js on lines 38..40
src/definitions/modules/search.js on lines 38..40
src/definitions/modules/shape.js on lines 47..49
src/definitions/modules/sidebar.js on lines 51..53
src/definitions/modules/sticky.js on lines 39..41
src/definitions/modules/tab.js on lines 46..48

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

            var
              escapedValue = module.escape.value(value),
              $option      = $input.find('option[value="' + module.escape.string(escapedValue) + '"]'),
              hasOption    = ($option.length > 0)
            ;
Severity: Major
Found in src/definitions/modules/dropdown.js and 1 other location - About 1 hr to fix
src/definitions/modules/dropdown.js on lines 2840..2844

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

        settings              = ( $.isPlainObject(parameters) )
          ? $.extend(true, {}, $.fn.sticky.settings, parameters)
          : $.extend({}, $.fn.sticky.settings),
Severity: Major
Found in src/definitions/modules/sticky.js and 15 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 44..46
src/definitions/behaviors/visibility.js on lines 42..44
src/definitions/modules/accordion.js on lines 44..46
src/definitions/modules/dimmer.js on lines 39..41
src/definitions/modules/dropdown.js on lines 42..44
src/definitions/modules/embed.js on lines 42..44
src/definitions/modules/modal.js on lines 50..52
src/definitions/modules/nag.js on lines 38..40
src/definitions/modules/popup.js on lines 44..46
src/definitions/modules/progress.js on lines 49..51
src/definitions/modules/rating.js on lines 38..40
src/definitions/modules/search.js on lines 38..40
src/definitions/modules/shape.js on lines 47..49
src/definitions/modules/sidebar.js on lines 51..53
src/definitions/modules/tab.js on lines 46..48

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

        settings        = ( $.isPlainObject(parameters) )
          ? $.extend(true, {}, $.fn.rating.settings, parameters)
          : $.extend({}, $.fn.rating.settings),
Severity: Major
Found in src/definitions/modules/rating.js and 15 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 44..46
src/definitions/behaviors/visibility.js on lines 42..44
src/definitions/modules/accordion.js on lines 44..46
src/definitions/modules/dimmer.js on lines 39..41
src/definitions/modules/dropdown.js on lines 42..44
src/definitions/modules/embed.js on lines 42..44
src/definitions/modules/modal.js on lines 50..52
src/definitions/modules/nag.js on lines 38..40
src/definitions/modules/popup.js on lines 44..46
src/definitions/modules/progress.js on lines 49..51
src/definitions/modules/search.js on lines 38..40
src/definitions/modules/shape.js on lines 47..49
src/definitions/modules/sidebar.js on lines 51..53
src/definitions/modules/sticky.js on lines 39..41
src/definitions/modules/tab.js on lines 46..48

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

        settings          = ( $.isPlainObject(parameters) )
          ? $.extend(true, {}, $.fn.search.settings, parameters)
          : $.extend({}, $.fn.search.settings),
Severity: Major
Found in src/definitions/modules/search.js and 15 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 44..46
src/definitions/behaviors/visibility.js on lines 42..44
src/definitions/modules/accordion.js on lines 44..46
src/definitions/modules/dimmer.js on lines 39..41
src/definitions/modules/dropdown.js on lines 42..44
src/definitions/modules/embed.js on lines 42..44
src/definitions/modules/modal.js on lines 50..52
src/definitions/modules/nag.js on lines 38..40
src/definitions/modules/popup.js on lines 44..46
src/definitions/modules/progress.js on lines 49..51
src/definitions/modules/rating.js on lines 38..40
src/definitions/modules/shape.js on lines 47..49
src/definitions/modules/sidebar.js on lines 51..53
src/definitions/modules/sticky.js on lines 39..41
src/definitions/modules/tab.js on lines 46..48

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

        settings          = ( $.isPlainObject(parameters) )
          ? $.extend(true, {}, $.fn.api.settings, parameters)
          : $.extend({}, $.fn.api.settings),
Severity: Major
Found in src/definitions/behaviors/api.js and 15 other locations - About 1 hr to fix
src/definitions/behaviors/visibility.js on lines 42..44
src/definitions/modules/accordion.js on lines 44..46
src/definitions/modules/dimmer.js on lines 39..41
src/definitions/modules/dropdown.js on lines 42..44
src/definitions/modules/embed.js on lines 42..44
src/definitions/modules/modal.js on lines 50..52
src/definitions/modules/nag.js on lines 38..40
src/definitions/modules/popup.js on lines 44..46
src/definitions/modules/progress.js on lines 49..51
src/definitions/modules/rating.js on lines 38..40
src/definitions/modules/search.js on lines 38..40
src/definitions/modules/shape.js on lines 47..49
src/definitions/modules/sidebar.js on lines 51..53
src/definitions/modules/sticky.js on lines 39..41
src/definitions/modules/tab.js on lines 46..48

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

        settings        = ( $.isPlainObject(parameters) )
          ? $.extend(true, {}, $.fn.sidebar.settings, parameters)
          : $.extend({}, $.fn.sidebar.settings),
Severity: Major
Found in src/definitions/modules/sidebar.js and 15 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 44..46
src/definitions/behaviors/visibility.js on lines 42..44
src/definitions/modules/accordion.js on lines 44..46
src/definitions/modules/dimmer.js on lines 39..41
src/definitions/modules/dropdown.js on lines 42..44
src/definitions/modules/embed.js on lines 42..44
src/definitions/modules/modal.js on lines 50..52
src/definitions/modules/nag.js on lines 38..40
src/definitions/modules/popup.js on lines 44..46
src/definitions/modules/progress.js on lines 49..51
src/definitions/modules/rating.js on lines 38..40
src/definitions/modules/search.js on lines 38..40
src/definitions/modules/shape.js on lines 47..49
src/definitions/modules/sticky.js on lines 39..41
src/definitions/modules/tab.js on lines 46..48

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