Semantic-Org/Semantic-UI

View on GitHub

Showing 558 of 804 total issues

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

        verbose: function() {
          if(!settings.silent && settings.verbose && settings.debug) {
            if(settings.performance) {
              module.performance.log(arguments);
            }
Severity: Major
Found in src/definitions/modules/popup.js and 18 other locations - About 4 hrs to fix
src/definitions/behaviors/api.js on lines 882..892
src/definitions/behaviors/form.js on lines 1070..1080
src/definitions/behaviors/visibility.js on lines 1064..1074
src/definitions/modules/accordion.js on lines 414..424
src/definitions/modules/checkbox.js on lines 630..640
src/definitions/modules/dimmer.js on lines 509..519
src/definitions/modules/dropdown.js on lines 3553..3563
src/definitions/modules/embed.js on lines 430..440
src/definitions/modules/modal.js on lines 809..819
src/definitions/modules/nag.js on lines 297..307
src/definitions/modules/progress.js on lines 701..711
src/definitions/modules/rating.js on lines 305..315
src/definitions/modules/search.js on lines 1067..1077
src/definitions/modules/shape.js on lines 712..722
src/definitions/modules/sidebar.js on lines 805..815
src/definitions/modules/sticky.js on lines 763..773
src/definitions/modules/tab.js on lines 734..744
src/definitions/modules/transition.js on lines 875..885

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

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

        verbose: function() {
          if(!settings.silent && settings.verbose && settings.debug) {
            if(settings.performance) {
              module.performance.log(arguments);
            }
Severity: Major
Found in src/definitions/modules/nag.js and 18 other locations - About 4 hrs to fix
src/definitions/behaviors/api.js on lines 882..892
src/definitions/behaviors/form.js on lines 1070..1080
src/definitions/behaviors/visibility.js on lines 1064..1074
src/definitions/modules/accordion.js on lines 414..424
src/definitions/modules/checkbox.js on lines 630..640
src/definitions/modules/dimmer.js on lines 509..519
src/definitions/modules/dropdown.js on lines 3553..3563
src/definitions/modules/embed.js on lines 430..440
src/definitions/modules/modal.js on lines 809..819
src/definitions/modules/popup.js on lines 1183..1193
src/definitions/modules/progress.js on lines 701..711
src/definitions/modules/rating.js on lines 305..315
src/definitions/modules/search.js on lines 1067..1077
src/definitions/modules/shape.js on lines 712..722
src/definitions/modules/sidebar.js on lines 805..815
src/definitions/modules/sticky.js on lines 763..773
src/definitions/modules/tab.js on lines 734..744
src/definitions/modules/transition.js on lines 875..885

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

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

        verbose: function() {
          if(!settings.silent && settings.verbose && settings.debug) {
            if(settings.performance) {
              module.performance.log(arguments);
            }
Severity: Major
Found in src/definitions/modules/dimmer.js and 18 other locations - About 4 hrs to fix
src/definitions/behaviors/api.js on lines 882..892
src/definitions/behaviors/form.js on lines 1070..1080
src/definitions/behaviors/visibility.js on lines 1064..1074
src/definitions/modules/accordion.js on lines 414..424
src/definitions/modules/checkbox.js on lines 630..640
src/definitions/modules/dropdown.js on lines 3553..3563
src/definitions/modules/embed.js on lines 430..440
src/definitions/modules/modal.js on lines 809..819
src/definitions/modules/nag.js on lines 297..307
src/definitions/modules/popup.js on lines 1183..1193
src/definitions/modules/progress.js on lines 701..711
src/definitions/modules/rating.js on lines 305..315
src/definitions/modules/search.js on lines 1067..1077
src/definitions/modules/shape.js on lines 712..722
src/definitions/modules/sidebar.js on lines 805..815
src/definitions/modules/sticky.js on lines 763..773
src/definitions/modules/tab.js on lines 734..744
src/definitions/modules/transition.js on lines 875..885

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

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

        verbose: function() {
          if(!settings.silent && settings.verbose && settings.debug) {
            if(settings.performance) {
              module.performance.log(arguments);
            }
Severity: Major
Found in src/definitions/modules/progress.js and 18 other locations - About 4 hrs to fix
src/definitions/behaviors/api.js on lines 882..892
src/definitions/behaviors/form.js on lines 1070..1080
src/definitions/behaviors/visibility.js on lines 1064..1074
src/definitions/modules/accordion.js on lines 414..424
src/definitions/modules/checkbox.js on lines 630..640
src/definitions/modules/dimmer.js on lines 509..519
src/definitions/modules/dropdown.js on lines 3553..3563
src/definitions/modules/embed.js on lines 430..440
src/definitions/modules/modal.js on lines 809..819
src/definitions/modules/nag.js on lines 297..307
src/definitions/modules/popup.js on lines 1183..1193
src/definitions/modules/rating.js on lines 305..315
src/definitions/modules/search.js on lines 1067..1077
src/definitions/modules/shape.js on lines 712..722
src/definitions/modules/sidebar.js on lines 805..815
src/definitions/modules/sticky.js on lines 763..773
src/definitions/modules/tab.js on lines 734..744
src/definitions/modules/transition.js on lines 875..885

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

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

        verbose: function() {
          if(!settings.silent && settings.verbose && settings.debug) {
            if(settings.performance) {
              module.performance.log(arguments);
            }
Severity: Major
Found in src/definitions/modules/embed.js and 18 other locations - About 4 hrs to fix
src/definitions/behaviors/api.js on lines 882..892
src/definitions/behaviors/form.js on lines 1070..1080
src/definitions/behaviors/visibility.js on lines 1064..1074
src/definitions/modules/accordion.js on lines 414..424
src/definitions/modules/checkbox.js on lines 630..640
src/definitions/modules/dimmer.js on lines 509..519
src/definitions/modules/dropdown.js on lines 3553..3563
src/definitions/modules/modal.js on lines 809..819
src/definitions/modules/nag.js on lines 297..307
src/definitions/modules/popup.js on lines 1183..1193
src/definitions/modules/progress.js on lines 701..711
src/definitions/modules/rating.js on lines 305..315
src/definitions/modules/search.js on lines 1067..1077
src/definitions/modules/shape.js on lines 712..722
src/definitions/modules/sidebar.js on lines 805..815
src/definitions/modules/sticky.js on lines 763..773
src/definitions/modules/tab.js on lines 734..744
src/definitions/modules/transition.js on lines 875..885

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

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

        verbose: function() {
          if(!settings.silent && settings.verbose && settings.debug) {
            if(settings.performance) {
              module.performance.log(arguments);
            }
Severity: Major
Found in src/definitions/behaviors/visibility.js and 18 other locations - About 4 hrs to fix
src/definitions/behaviors/api.js on lines 882..892
src/definitions/behaviors/form.js on lines 1070..1080
src/definitions/modules/accordion.js on lines 414..424
src/definitions/modules/checkbox.js on lines 630..640
src/definitions/modules/dimmer.js on lines 509..519
src/definitions/modules/dropdown.js on lines 3553..3563
src/definitions/modules/embed.js on lines 430..440
src/definitions/modules/modal.js on lines 809..819
src/definitions/modules/nag.js on lines 297..307
src/definitions/modules/popup.js on lines 1183..1193
src/definitions/modules/progress.js on lines 701..711
src/definitions/modules/rating.js on lines 305..315
src/definitions/modules/search.js on lines 1067..1077
src/definitions/modules/shape.js on lines 712..722
src/definitions/modules/sidebar.js on lines 805..815
src/definitions/modules/sticky.js on lines 763..773
src/definitions/modules/tab.js on lines 734..744
src/definitions/modules/transition.js on lines 875..885

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

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

        verbose: function() {
          if(!settings.silent && settings.verbose && settings.debug) {
            if(settings.performance) {
              module.performance.log(arguments);
            }
Severity: Major
Found in src/definitions/modules/modal.js and 18 other locations - About 4 hrs to fix
src/definitions/behaviors/api.js on lines 882..892
src/definitions/behaviors/form.js on lines 1070..1080
src/definitions/behaviors/visibility.js on lines 1064..1074
src/definitions/modules/accordion.js on lines 414..424
src/definitions/modules/checkbox.js on lines 630..640
src/definitions/modules/dimmer.js on lines 509..519
src/definitions/modules/dropdown.js on lines 3553..3563
src/definitions/modules/embed.js on lines 430..440
src/definitions/modules/nag.js on lines 297..307
src/definitions/modules/popup.js on lines 1183..1193
src/definitions/modules/progress.js on lines 701..711
src/definitions/modules/rating.js on lines 305..315
src/definitions/modules/search.js on lines 1067..1077
src/definitions/modules/shape.js on lines 712..722
src/definitions/modules/sidebar.js on lines 805..815
src/definitions/modules/sticky.js on lines 763..773
src/definitions/modules/tab.js on lines 734..744
src/definitions/modules/transition.js on lines 875..885

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

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

        verbose: function() {
          if(!settings.silent && settings.verbose && settings.debug) {
            if(settings.performance) {
              module.performance.log(arguments);
            }
Severity: Major
Found in src/definitions/modules/search.js and 18 other locations - About 4 hrs to fix
src/definitions/behaviors/api.js on lines 882..892
src/definitions/behaviors/form.js on lines 1070..1080
src/definitions/behaviors/visibility.js on lines 1064..1074
src/definitions/modules/accordion.js on lines 414..424
src/definitions/modules/checkbox.js on lines 630..640
src/definitions/modules/dimmer.js on lines 509..519
src/definitions/modules/dropdown.js on lines 3553..3563
src/definitions/modules/embed.js on lines 430..440
src/definitions/modules/modal.js on lines 809..819
src/definitions/modules/nag.js on lines 297..307
src/definitions/modules/popup.js on lines 1183..1193
src/definitions/modules/progress.js on lines 701..711
src/definitions/modules/rating.js on lines 305..315
src/definitions/modules/shape.js on lines 712..722
src/definitions/modules/sidebar.js on lines 805..815
src/definitions/modules/sticky.js on lines 763..773
src/definitions/modules/tab.js on lines 734..744
src/definitions/modules/transition.js on lines 875..885

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

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

    async function createRelease(version) {
      if(version) {
        releaseOptions.target_commitish = version;
      }
      console.info('-----------------------------');
Severity: Major
Found in tasks/admin/distributions/update.js and 1 other location - About 4 hrs to fix
tasks/admin/components/update.js on lines 154..168

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

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

        verbose: function() {
          if(!settings.silent && settings.verbose && settings.debug) {
            if(settings.performance) {
              module.performance.log(arguments);
            }
Severity: Major
Found in src/definitions/modules/tab.js and 18 other locations - About 4 hrs to fix
src/definitions/behaviors/api.js on lines 882..892
src/definitions/behaviors/form.js on lines 1070..1080
src/definitions/behaviors/visibility.js on lines 1064..1074
src/definitions/modules/accordion.js on lines 414..424
src/definitions/modules/checkbox.js on lines 630..640
src/definitions/modules/dimmer.js on lines 509..519
src/definitions/modules/dropdown.js on lines 3553..3563
src/definitions/modules/embed.js on lines 430..440
src/definitions/modules/modal.js on lines 809..819
src/definitions/modules/nag.js on lines 297..307
src/definitions/modules/popup.js on lines 1183..1193
src/definitions/modules/progress.js on lines 701..711
src/definitions/modules/rating.js on lines 305..315
src/definitions/modules/search.js on lines 1067..1077
src/definitions/modules/shape.js on lines 712..722
src/definitions/modules/sidebar.js on lines 805..815
src/definitions/modules/sticky.js on lines 763..773
src/definitions/modules/transition.js on lines 875..885

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

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

    async function createRelease(version) {
      if(version) {
        releaseOptions.target_commitish = version;
      }
      console.info('-----------------------------');
Severity: Major
Found in tasks/admin/components/update.js and 1 other location - About 4 hrs to fix
tasks/admin/distributions/update.js on lines 153..167

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

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

                  if(text.search(beginsWithRegExp) !== -1) {
                    results.push(this);
                    return true;
                  }
                  else if (settings.fullTextSearch === 'exact' && module.exactSearch(searchTerm, text)) {
Severity: Major
Found in src/definitions/modules/dropdown.js and 1 other location - About 4 hrs to fix
src/definitions/modules/dropdown.js on lines 822..833

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

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

                  if(value.search(beginsWithRegExp) !== -1) {
                    results.push(this);
                    return true;
                  }
                  else if (settings.fullTextSearch === 'exact' && module.exactSearch(searchTerm, value)) {
Severity: Major
Found in src/definitions/modules/dropdown.js and 1 other location - About 4 hrs to fix
src/definitions/modules/dropdown.js on lines 807..818

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

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

      return gulp.src(output.uncompressed + '/**/' + globs.components + globs.ignoredRTL + '.rtl.css')
        .pipe(dedupe())
        .pipe(replace(assets.uncompressed, assets.packaged))
        .pipe(concatCSS(filenames.concatenatedRTLCSS, settings.concatCSS))
          .pipe(gulpif(config.hasPermission, chmod(config.permission)))
Severity: Major
Found in tasks/collections/internal.js and 1 other location - About 4 hrs to fix
tasks/collections/internal.js on lines 126..131

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

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

      return gulp.src(output.uncompressed + '/**/' + globs.components + globs.ignoredRTL + '.rtl.css')
        .pipe(dedupe())
        .pipe(replace(assets.uncompressed, assets.packaged))
        .pipe(concatCSS(filenames.concatenatedMinifiedRTLCSS, settings.concatCSS))
          .pipe(gulpif(config.hasPermission, chmod(config.permission)))
Severity: Major
Found in tasks/collections/internal.js and 1 other location - About 4 hrs to fix
tasks/collections/internal.js on lines 114..119

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

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

        debug: function() {
          if(!settings.silent && settings.debug) {
            if(settings.performance) {
              module.performance.log(arguments);
            }
Severity: Major
Found in src/definitions/modules/nag.js and 18 other locations - About 4 hrs to fix
src/definitions/behaviors/api.js on lines 871..881
src/definitions/behaviors/form.js on lines 1059..1069
src/definitions/behaviors/visibility.js on lines 1053..1063
src/definitions/modules/accordion.js on lines 403..413
src/definitions/modules/checkbox.js on lines 619..629
src/definitions/modules/dimmer.js on lines 498..508
src/definitions/modules/dropdown.js on lines 3542..3552
src/definitions/modules/embed.js on lines 419..429
src/definitions/modules/modal.js on lines 798..808
src/definitions/modules/popup.js on lines 1172..1182
src/definitions/modules/progress.js on lines 690..700
src/definitions/modules/rating.js on lines 294..304
src/definitions/modules/search.js on lines 1056..1066
src/definitions/modules/shape.js on lines 701..711
src/definitions/modules/sidebar.js on lines 794..804
src/definitions/modules/sticky.js on lines 752..762
src/definitions/modules/tab.js on lines 723..733
src/definitions/modules/transition.js on lines 864..874

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

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

        debug: function() {
          if(!settings.silent && settings.debug) {
            if(settings.performance) {
              module.performance.log(arguments);
            }
Severity: Major
Found in src/definitions/modules/rating.js and 18 other locations - About 4 hrs to fix
src/definitions/behaviors/api.js on lines 871..881
src/definitions/behaviors/form.js on lines 1059..1069
src/definitions/behaviors/visibility.js on lines 1053..1063
src/definitions/modules/accordion.js on lines 403..413
src/definitions/modules/checkbox.js on lines 619..629
src/definitions/modules/dimmer.js on lines 498..508
src/definitions/modules/dropdown.js on lines 3542..3552
src/definitions/modules/embed.js on lines 419..429
src/definitions/modules/modal.js on lines 798..808
src/definitions/modules/nag.js on lines 286..296
src/definitions/modules/popup.js on lines 1172..1182
src/definitions/modules/progress.js on lines 690..700
src/definitions/modules/search.js on lines 1056..1066
src/definitions/modules/shape.js on lines 701..711
src/definitions/modules/sidebar.js on lines 794..804
src/definitions/modules/sticky.js on lines 752..762
src/definitions/modules/tab.js on lines 723..733
src/definitions/modules/transition.js on lines 864..874

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

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

        debug: function() {
          if(!settings.silent && settings.debug) {
            if(settings.performance) {
              module.performance.log(arguments);
            }
Severity: Major
Found in src/definitions/modules/shape.js and 18 other locations - About 4 hrs to fix
src/definitions/behaviors/api.js on lines 871..881
src/definitions/behaviors/form.js on lines 1059..1069
src/definitions/behaviors/visibility.js on lines 1053..1063
src/definitions/modules/accordion.js on lines 403..413
src/definitions/modules/checkbox.js on lines 619..629
src/definitions/modules/dimmer.js on lines 498..508
src/definitions/modules/dropdown.js on lines 3542..3552
src/definitions/modules/embed.js on lines 419..429
src/definitions/modules/modal.js on lines 798..808
src/definitions/modules/nag.js on lines 286..296
src/definitions/modules/popup.js on lines 1172..1182
src/definitions/modules/progress.js on lines 690..700
src/definitions/modules/rating.js on lines 294..304
src/definitions/modules/search.js on lines 1056..1066
src/definitions/modules/sidebar.js on lines 794..804
src/definitions/modules/sticky.js on lines 752..762
src/definitions/modules/tab.js on lines 723..733
src/definitions/modules/transition.js on lines 864..874

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

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

        debug: function() {
          if(!settings.silent && settings.debug) {
            if(settings.performance) {
              module.performance.log(arguments);
            }
Severity: Major
Found in src/definitions/modules/sticky.js and 18 other locations - About 4 hrs to fix
src/definitions/behaviors/api.js on lines 871..881
src/definitions/behaviors/form.js on lines 1059..1069
src/definitions/behaviors/visibility.js on lines 1053..1063
src/definitions/modules/accordion.js on lines 403..413
src/definitions/modules/checkbox.js on lines 619..629
src/definitions/modules/dimmer.js on lines 498..508
src/definitions/modules/dropdown.js on lines 3542..3552
src/definitions/modules/embed.js on lines 419..429
src/definitions/modules/modal.js on lines 798..808
src/definitions/modules/nag.js on lines 286..296
src/definitions/modules/popup.js on lines 1172..1182
src/definitions/modules/progress.js on lines 690..700
src/definitions/modules/rating.js on lines 294..304
src/definitions/modules/search.js on lines 1056..1066
src/definitions/modules/shape.js on lines 701..711
src/definitions/modules/sidebar.js on lines 794..804
src/definitions/modules/tab.js on lines 723..733
src/definitions/modules/transition.js on lines 864..874

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

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

        debug: function() {
          if(!settings.silent && settings.debug) {
            if(settings.performance) {
              module.performance.log(arguments);
            }
Severity: Major
Found in src/definitions/modules/tab.js and 18 other locations - About 4 hrs to fix
src/definitions/behaviors/api.js on lines 871..881
src/definitions/behaviors/form.js on lines 1059..1069
src/definitions/behaviors/visibility.js on lines 1053..1063
src/definitions/modules/accordion.js on lines 403..413
src/definitions/modules/checkbox.js on lines 619..629
src/definitions/modules/dimmer.js on lines 498..508
src/definitions/modules/dropdown.js on lines 3542..3552
src/definitions/modules/embed.js on lines 419..429
src/definitions/modules/modal.js on lines 798..808
src/definitions/modules/nag.js on lines 286..296
src/definitions/modules/popup.js on lines 1172..1182
src/definitions/modules/progress.js on lines 690..700
src/definitions/modules/rating.js on lines 294..304
src/definitions/modules/search.js on lines 1056..1066
src/definitions/modules/shape.js on lines 701..711
src/definitions/modules/sidebar.js on lines 794..804
src/definitions/modules/sticky.js on lines 752..762
src/definitions/modules/transition.js on lines 864..874

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

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