Semantic-Org/Semantic-UI

View on GitHub

Showing 558 of 804 total issues

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

      if(methodInvoked) {
        if(instance === undefined) {
          module.initialize();
        }
        module.invoke(query);
Severity: Major
Found in src/definitions/modules/accordion.js and 15 other locations - About 2 hrs to fix
src/definitions/behaviors/api.js on lines 1006..1017
src/definitions/modules/checkbox.js on lines 754..765
src/definitions/modules/dimmer.js on lines 638..649
src/definitions/modules/dropdown.js on lines 3677..3688
src/definitions/modules/embed.js on lines 557..568
src/definitions/modules/modal.js on lines 932..943
src/definitions/modules/nag.js on lines 421..432
src/definitions/modules/popup.js on lines 1306..1317
src/definitions/modules/progress.js on lines 825..836
src/definitions/modules/rating.js on lines 430..441
src/definitions/modules/search.js on lines 1192..1203
src/definitions/modules/shape.js on lines 838..849
src/definitions/modules/sidebar.js on lines 930..941
src/definitions/modules/sticky.js on lines 886..897
src/definitions/modules/tab.js on lines 857..868

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

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

    function pushFiles() {
      console.info('Pushing files for ' + component);
      git.push('origin', 'master', { args: '', cwd: outputDirectory }, function(error) {
        console.info('Push completed successfully');
        getSHA();
Severity: Major
Found in tasks/admin/components/update.js and 1 other location - About 2 hrs to fix
tasks/admin/distributions/update.js on lines 132..138

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

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

        internal: function(name, value) {
          if( $.isPlainObject(name) ) {
            $.extend(true, module, name);
          }
          else if(value !== undefined) {
Severity: Major
Found in src/definitions/modules/rating.js and 24 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 860..870
src/definitions/behaviors/form.js on lines 1037..1047
src/definitions/behaviors/form.js on lines 1048..1058
src/definitions/behaviors/visibility.js on lines 1031..1041
src/definitions/behaviors/visibility.js on lines 1042..1052
src/definitions/globals/site.js on lines 255..265
src/definitions/globals/site.js on lines 266..276
src/definitions/modules/checkbox.js on lines 608..618
src/definitions/modules/dimmer.js on lines 487..497
src/definitions/modules/dropdown.js on lines 3531..3541
src/definitions/modules/embed.js on lines 408..418
src/definitions/modules/modal.js on lines 787..797
src/definitions/modules/nag.js on lines 275..285
src/definitions/modules/popup.js on lines 1150..1160
src/definitions/modules/popup.js on lines 1161..1171
src/definitions/modules/progress.js on lines 679..689
src/definitions/modules/search.js on lines 1034..1044
src/definitions/modules/search.js on lines 1045..1055
src/definitions/modules/shape.js on lines 690..700
src/definitions/modules/sidebar.js on lines 783..793
src/definitions/modules/sticky.js on lines 730..740
src/definitions/modules/sticky.js on lines 741..751
src/definitions/modules/tab.js on lines 712..722
src/definitions/modules/transition.js on lines 853..863

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

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 createRepo() {
      console.info('Creating GitHub repo ' + repoURL);
      github.repos.createFromOrg({
        org      : release.org,
        name     : repoName,
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 116..125

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

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

        internal: function(name, value) {
          if( $.isPlainObject(name) ) {
            $.extend(true, module, name);
          }
          else if(value !== undefined) {
Severity: Major
Found in src/definitions/modules/modal.js and 24 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 860..870
src/definitions/behaviors/form.js on lines 1037..1047
src/definitions/behaviors/form.js on lines 1048..1058
src/definitions/behaviors/visibility.js on lines 1031..1041
src/definitions/behaviors/visibility.js on lines 1042..1052
src/definitions/globals/site.js on lines 255..265
src/definitions/globals/site.js on lines 266..276
src/definitions/modules/checkbox.js on lines 608..618
src/definitions/modules/dimmer.js on lines 487..497
src/definitions/modules/dropdown.js on lines 3531..3541
src/definitions/modules/embed.js on lines 408..418
src/definitions/modules/nag.js on lines 275..285
src/definitions/modules/popup.js on lines 1150..1160
src/definitions/modules/popup.js on lines 1161..1171
src/definitions/modules/progress.js on lines 679..689
src/definitions/modules/rating.js on lines 283..293
src/definitions/modules/search.js on lines 1034..1044
src/definitions/modules/search.js on lines 1045..1055
src/definitions/modules/shape.js on lines 690..700
src/definitions/modules/sidebar.js on lines 783..793
src/definitions/modules/sticky.js on lines 730..740
src/definitions/modules/sticky.js on lines 741..751
src/definitions/modules/tab.js on lines 712..722
src/definitions/modules/transition.js on lines 853..863

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

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

        internal: function(name, value) {
          if( $.isPlainObject(name) ) {
            $.extend(true, module, name);
          }
          else if(value !== undefined) {
Severity: Major
Found in src/definitions/modules/checkbox.js and 24 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 860..870
src/definitions/behaviors/form.js on lines 1037..1047
src/definitions/behaviors/form.js on lines 1048..1058
src/definitions/behaviors/visibility.js on lines 1031..1041
src/definitions/behaviors/visibility.js on lines 1042..1052
src/definitions/globals/site.js on lines 255..265
src/definitions/globals/site.js on lines 266..276
src/definitions/modules/dimmer.js on lines 487..497
src/definitions/modules/dropdown.js on lines 3531..3541
src/definitions/modules/embed.js on lines 408..418
src/definitions/modules/modal.js on lines 787..797
src/definitions/modules/nag.js on lines 275..285
src/definitions/modules/popup.js on lines 1150..1160
src/definitions/modules/popup.js on lines 1161..1171
src/definitions/modules/progress.js on lines 679..689
src/definitions/modules/rating.js on lines 283..293
src/definitions/modules/search.js on lines 1034..1044
src/definitions/modules/search.js on lines 1045..1055
src/definitions/modules/shape.js on lines 690..700
src/definitions/modules/sidebar.js on lines 783..793
src/definitions/modules/sticky.js on lines 730..740
src/definitions/modules/sticky.js on lines 741..751
src/definitions/modules/tab.js on lines 712..722
src/definitions/modules/transition.js on lines 853..863

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

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

        internal: function(name, value) {
          if( $.isPlainObject(name) ) {
            $.extend(true, module, name);
          }
          else if(value !== undefined) {
Severity: Major
Found in src/definitions/behaviors/visibility.js and 24 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 860..870
src/definitions/behaviors/form.js on lines 1037..1047
src/definitions/behaviors/form.js on lines 1048..1058
src/definitions/behaviors/visibility.js on lines 1031..1041
src/definitions/globals/site.js on lines 255..265
src/definitions/globals/site.js on lines 266..276
src/definitions/modules/checkbox.js on lines 608..618
src/definitions/modules/dimmer.js on lines 487..497
src/definitions/modules/dropdown.js on lines 3531..3541
src/definitions/modules/embed.js on lines 408..418
src/definitions/modules/modal.js on lines 787..797
src/definitions/modules/nag.js on lines 275..285
src/definitions/modules/popup.js on lines 1150..1160
src/definitions/modules/popup.js on lines 1161..1171
src/definitions/modules/progress.js on lines 679..689
src/definitions/modules/rating.js on lines 283..293
src/definitions/modules/search.js on lines 1034..1044
src/definitions/modules/search.js on lines 1045..1055
src/definitions/modules/shape.js on lines 690..700
src/definitions/modules/sidebar.js on lines 783..793
src/definitions/modules/sticky.js on lines 730..740
src/definitions/modules/sticky.js on lines 741..751
src/definitions/modules/tab.js on lines 712..722
src/definitions/modules/transition.js on lines 853..863

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

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

        internal: function(name, value) {
          if( $.isPlainObject(name) ) {
            $.extend(true, module, name);
          }
          else if(value !== undefined) {
Severity: Major
Found in src/definitions/modules/popup.js and 24 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 860..870
src/definitions/behaviors/form.js on lines 1037..1047
src/definitions/behaviors/form.js on lines 1048..1058
src/definitions/behaviors/visibility.js on lines 1031..1041
src/definitions/behaviors/visibility.js on lines 1042..1052
src/definitions/globals/site.js on lines 255..265
src/definitions/globals/site.js on lines 266..276
src/definitions/modules/checkbox.js on lines 608..618
src/definitions/modules/dimmer.js on lines 487..497
src/definitions/modules/dropdown.js on lines 3531..3541
src/definitions/modules/embed.js on lines 408..418
src/definitions/modules/modal.js on lines 787..797
src/definitions/modules/nag.js on lines 275..285
src/definitions/modules/popup.js on lines 1150..1160
src/definitions/modules/progress.js on lines 679..689
src/definitions/modules/rating.js on lines 283..293
src/definitions/modules/search.js on lines 1034..1044
src/definitions/modules/search.js on lines 1045..1055
src/definitions/modules/shape.js on lines 690..700
src/definitions/modules/sidebar.js on lines 783..793
src/definitions/modules/sticky.js on lines 730..740
src/definitions/modules/sticky.js on lines 741..751
src/definitions/modules/tab.js on lines 712..722
src/definitions/modules/transition.js on lines 853..863

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

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

        internal: function(name, value) {
          if( $.isPlainObject(name) ) {
            $.extend(true, module, name);
          }
          else if(value !== undefined) {
Severity: Major
Found in src/definitions/modules/sticky.js and 24 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 860..870
src/definitions/behaviors/form.js on lines 1037..1047
src/definitions/behaviors/form.js on lines 1048..1058
src/definitions/behaviors/visibility.js on lines 1031..1041
src/definitions/behaviors/visibility.js on lines 1042..1052
src/definitions/globals/site.js on lines 255..265
src/definitions/globals/site.js on lines 266..276
src/definitions/modules/checkbox.js on lines 608..618
src/definitions/modules/dimmer.js on lines 487..497
src/definitions/modules/dropdown.js on lines 3531..3541
src/definitions/modules/embed.js on lines 408..418
src/definitions/modules/modal.js on lines 787..797
src/definitions/modules/nag.js on lines 275..285
src/definitions/modules/popup.js on lines 1150..1160
src/definitions/modules/popup.js on lines 1161..1171
src/definitions/modules/progress.js on lines 679..689
src/definitions/modules/rating.js on lines 283..293
src/definitions/modules/search.js on lines 1034..1044
src/definitions/modules/search.js on lines 1045..1055
src/definitions/modules/shape.js on lines 690..700
src/definitions/modules/sidebar.js on lines 783..793
src/definitions/modules/sticky.js on lines 730..740
src/definitions/modules/tab.js on lines 712..722
src/definitions/modules/transition.js on lines 853..863

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

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

    setting: function(name, value) {
      if( $.isPlainObject(name) ) {
        $.extend(true, settings, name);
      }
      else if(value !== undefined) {
Severity: Major
Found in src/definitions/globals/site.js and 24 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 860..870
src/definitions/behaviors/form.js on lines 1037..1047
src/definitions/behaviors/form.js on lines 1048..1058
src/definitions/behaviors/visibility.js on lines 1031..1041
src/definitions/behaviors/visibility.js on lines 1042..1052
src/definitions/globals/site.js on lines 266..276
src/definitions/modules/checkbox.js on lines 608..618
src/definitions/modules/dimmer.js on lines 487..497
src/definitions/modules/dropdown.js on lines 3531..3541
src/definitions/modules/embed.js on lines 408..418
src/definitions/modules/modal.js on lines 787..797
src/definitions/modules/nag.js on lines 275..285
src/definitions/modules/popup.js on lines 1150..1160
src/definitions/modules/popup.js on lines 1161..1171
src/definitions/modules/progress.js on lines 679..689
src/definitions/modules/rating.js on lines 283..293
src/definitions/modules/search.js on lines 1034..1044
src/definitions/modules/search.js on lines 1045..1055
src/definitions/modules/shape.js on lines 690..700
src/definitions/modules/sidebar.js on lines 783..793
src/definitions/modules/sticky.js on lines 730..740
src/definitions/modules/sticky.js on lines 741..751
src/definitions/modules/tab.js on lines 712..722
src/definitions/modules/transition.js on lines 853..863

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

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

      compressedStream
        .pipe(plumber())
        .pipe(replace(assets.source, assets.compressed))
        .pipe(minifyCSS(settings.minify))
        .pipe(rename(settings.rename.minCSS))
Severity: Major
Found in tasks/docs/serve.js and 2 other locations - About 1 hr to fix
tasks/rtl/watch.js on lines 167..172
tasks/watch.js on lines 183..188

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

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

        setting: function(name, value) {
          if( $.isPlainObject(name) ) {
            $.extend(true, settings, name);
          }
          else if(value !== undefined) {
Severity: Major
Found in src/definitions/modules/popup.js and 24 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 860..870
src/definitions/behaviors/form.js on lines 1037..1047
src/definitions/behaviors/form.js on lines 1048..1058
src/definitions/behaviors/visibility.js on lines 1031..1041
src/definitions/behaviors/visibility.js on lines 1042..1052
src/definitions/globals/site.js on lines 255..265
src/definitions/globals/site.js on lines 266..276
src/definitions/modules/checkbox.js on lines 608..618
src/definitions/modules/dimmer.js on lines 487..497
src/definitions/modules/dropdown.js on lines 3531..3541
src/definitions/modules/embed.js on lines 408..418
src/definitions/modules/modal.js on lines 787..797
src/definitions/modules/nag.js on lines 275..285
src/definitions/modules/popup.js on lines 1161..1171
src/definitions/modules/progress.js on lines 679..689
src/definitions/modules/rating.js on lines 283..293
src/definitions/modules/search.js on lines 1034..1044
src/definitions/modules/search.js on lines 1045..1055
src/definitions/modules/shape.js on lines 690..700
src/definitions/modules/sidebar.js on lines 783..793
src/definitions/modules/sticky.js on lines 730..740
src/definitions/modules/sticky.js on lines 741..751
src/definitions/modules/tab.js on lines 712..722
src/definitions/modules/transition.js on lines 853..863

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

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

        if(response[fields.action]) {
          html += ''
          + '<a href="' + response[fields.action][fields.actionURL] + '" class="action">'
          +   response[fields.action][fields.actionText]
          + '</a>';
Severity: Major
Found in src/definitions/modules/search.js and 1 other location - About 1 hr to fix
src/definitions/modules/search.js on lines 1445..1450

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

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

        internal: function(name, value) {
          if( $.isPlainObject(name) ) {
            $.extend(true, module, name);
          }
          else if(value !== undefined) {
Severity: Major
Found in src/definitions/modules/tab.js and 24 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 860..870
src/definitions/behaviors/form.js on lines 1037..1047
src/definitions/behaviors/form.js on lines 1048..1058
src/definitions/behaviors/visibility.js on lines 1031..1041
src/definitions/behaviors/visibility.js on lines 1042..1052
src/definitions/globals/site.js on lines 255..265
src/definitions/globals/site.js on lines 266..276
src/definitions/modules/checkbox.js on lines 608..618
src/definitions/modules/dimmer.js on lines 487..497
src/definitions/modules/dropdown.js on lines 3531..3541
src/definitions/modules/embed.js on lines 408..418
src/definitions/modules/modal.js on lines 787..797
src/definitions/modules/nag.js on lines 275..285
src/definitions/modules/popup.js on lines 1150..1160
src/definitions/modules/popup.js on lines 1161..1171
src/definitions/modules/progress.js on lines 679..689
src/definitions/modules/rating.js on lines 283..293
src/definitions/modules/search.js on lines 1034..1044
src/definitions/modules/search.js on lines 1045..1055
src/definitions/modules/shape.js on lines 690..700
src/definitions/modules/sidebar.js on lines 783..793
src/definitions/modules/sticky.js on lines 730..740
src/definitions/modules/sticky.js on lines 741..751
src/definitions/modules/transition.js on lines 853..863

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

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 createRepo() {
      console.info('Creating GitHub repo ' + repoURL);
      github.repos.createFromOrg({
        org      : release.org,
        name     : repoName,
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 113..122

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

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

    internal: function(name, value) {
      if( $.isPlainObject(name) ) {
        $.extend(true, module, name);
      }
      else if(value !== undefined) {
Severity: Major
Found in src/definitions/globals/site.js and 24 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 860..870
src/definitions/behaviors/form.js on lines 1037..1047
src/definitions/behaviors/form.js on lines 1048..1058
src/definitions/behaviors/visibility.js on lines 1031..1041
src/definitions/behaviors/visibility.js on lines 1042..1052
src/definitions/globals/site.js on lines 255..265
src/definitions/modules/checkbox.js on lines 608..618
src/definitions/modules/dimmer.js on lines 487..497
src/definitions/modules/dropdown.js on lines 3531..3541
src/definitions/modules/embed.js on lines 408..418
src/definitions/modules/modal.js on lines 787..797
src/definitions/modules/nag.js on lines 275..285
src/definitions/modules/popup.js on lines 1150..1160
src/definitions/modules/popup.js on lines 1161..1171
src/definitions/modules/progress.js on lines 679..689
src/definitions/modules/rating.js on lines 283..293
src/definitions/modules/search.js on lines 1034..1044
src/definitions/modules/search.js on lines 1045..1055
src/definitions/modules/shape.js on lines 690..700
src/definitions/modules/sidebar.js on lines 783..793
src/definitions/modules/sticky.js on lines 730..740
src/definitions/modules/sticky.js on lines 741..751
src/definitions/modules/tab.js on lines 712..722
src/definitions/modules/transition.js on lines 853..863

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

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

        internal: function(name, value) {
          if( $.isPlainObject(name) ) {
            $.extend(true, module, name);
          }
          else if(value !== undefined) {
Severity: Major
Found in src/definitions/modules/shape.js and 24 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 860..870
src/definitions/behaviors/form.js on lines 1037..1047
src/definitions/behaviors/form.js on lines 1048..1058
src/definitions/behaviors/visibility.js on lines 1031..1041
src/definitions/behaviors/visibility.js on lines 1042..1052
src/definitions/globals/site.js on lines 255..265
src/definitions/globals/site.js on lines 266..276
src/definitions/modules/checkbox.js on lines 608..618
src/definitions/modules/dimmer.js on lines 487..497
src/definitions/modules/dropdown.js on lines 3531..3541
src/definitions/modules/embed.js on lines 408..418
src/definitions/modules/modal.js on lines 787..797
src/definitions/modules/nag.js on lines 275..285
src/definitions/modules/popup.js on lines 1150..1160
src/definitions/modules/popup.js on lines 1161..1171
src/definitions/modules/progress.js on lines 679..689
src/definitions/modules/rating.js on lines 283..293
src/definitions/modules/search.js on lines 1034..1044
src/definitions/modules/search.js on lines 1045..1055
src/definitions/modules/sidebar.js on lines 783..793
src/definitions/modules/sticky.js on lines 730..740
src/definitions/modules/sticky.js on lines 741..751
src/definitions/modules/tab.js on lines 712..722
src/definitions/modules/transition.js on lines 853..863

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

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

        internal: function(name, value) {
          if( $.isPlainObject(name) ) {
            $.extend(true, module, name);
          }
          else if(value !== undefined) {
Severity: Major
Found in src/definitions/modules/nag.js and 24 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 860..870
src/definitions/behaviors/form.js on lines 1037..1047
src/definitions/behaviors/form.js on lines 1048..1058
src/definitions/behaviors/visibility.js on lines 1031..1041
src/definitions/behaviors/visibility.js on lines 1042..1052
src/definitions/globals/site.js on lines 255..265
src/definitions/globals/site.js on lines 266..276
src/definitions/modules/checkbox.js on lines 608..618
src/definitions/modules/dimmer.js on lines 487..497
src/definitions/modules/dropdown.js on lines 3531..3541
src/definitions/modules/embed.js on lines 408..418
src/definitions/modules/modal.js on lines 787..797
src/definitions/modules/popup.js on lines 1150..1160
src/definitions/modules/popup.js on lines 1161..1171
src/definitions/modules/progress.js on lines 679..689
src/definitions/modules/rating.js on lines 283..293
src/definitions/modules/search.js on lines 1034..1044
src/definitions/modules/search.js on lines 1045..1055
src/definitions/modules/shape.js on lines 690..700
src/definitions/modules/sidebar.js on lines 783..793
src/definitions/modules/sticky.js on lines 730..740
src/definitions/modules/sticky.js on lines 741..751
src/definitions/modules/tab.js on lines 712..722
src/definitions/modules/transition.js on lines 853..863

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

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

        setting: function(name, value) {
          if( $.isPlainObject(name) ) {
            $.extend(true, settings, name);
          }
          else if(value !== undefined) {
Severity: Major
Found in src/definitions/modules/search.js and 24 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 860..870
src/definitions/behaviors/form.js on lines 1037..1047
src/definitions/behaviors/form.js on lines 1048..1058
src/definitions/behaviors/visibility.js on lines 1031..1041
src/definitions/behaviors/visibility.js on lines 1042..1052
src/definitions/globals/site.js on lines 255..265
src/definitions/globals/site.js on lines 266..276
src/definitions/modules/checkbox.js on lines 608..618
src/definitions/modules/dimmer.js on lines 487..497
src/definitions/modules/dropdown.js on lines 3531..3541
src/definitions/modules/embed.js on lines 408..418
src/definitions/modules/modal.js on lines 787..797
src/definitions/modules/nag.js on lines 275..285
src/definitions/modules/popup.js on lines 1150..1160
src/definitions/modules/popup.js on lines 1161..1171
src/definitions/modules/progress.js on lines 679..689
src/definitions/modules/rating.js on lines 283..293
src/definitions/modules/search.js on lines 1045..1055
src/definitions/modules/shape.js on lines 690..700
src/definitions/modules/sidebar.js on lines 783..793
src/definitions/modules/sticky.js on lines 730..740
src/definitions/modules/sticky.js on lines 741..751
src/definitions/modules/tab.js on lines 712..722
src/definitions/modules/transition.js on lines 853..863

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

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

        setting: function(name, value) {
          if( $.isPlainObject(name) ) {
            $.extend(true, settings, name);
          }
          else if(value !== undefined) {
Severity: Major
Found in src/definitions/behaviors/visibility.js and 24 other locations - About 1 hr to fix
src/definitions/behaviors/api.js on lines 860..870
src/definitions/behaviors/form.js on lines 1037..1047
src/definitions/behaviors/form.js on lines 1048..1058
src/definitions/behaviors/visibility.js on lines 1042..1052
src/definitions/globals/site.js on lines 255..265
src/definitions/globals/site.js on lines 266..276
src/definitions/modules/checkbox.js on lines 608..618
src/definitions/modules/dimmer.js on lines 487..497
src/definitions/modules/dropdown.js on lines 3531..3541
src/definitions/modules/embed.js on lines 408..418
src/definitions/modules/modal.js on lines 787..797
src/definitions/modules/nag.js on lines 275..285
src/definitions/modules/popup.js on lines 1150..1160
src/definitions/modules/popup.js on lines 1161..1171
src/definitions/modules/progress.js on lines 679..689
src/definitions/modules/rating.js on lines 283..293
src/definitions/modules/search.js on lines 1034..1044
src/definitions/modules/search.js on lines 1045..1055
src/definitions/modules/shape.js on lines 690..700
src/definitions/modules/sidebar.js on lines 783..793
src/definitions/modules/sticky.js on lines 730..740
src/definitions/modules/sticky.js on lines 741..751
src/definitions/modules/tab.js on lines 712..722
src/definitions/modules/transition.js on lines 853..863

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

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