mike-north/ember-cli-materialize

View on GitHub

Showing 42 of 42 total issues

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

  isInvalid: computed('_wasTouched', 'value', 'validate', 'errors', 'errors.[]', function() {
    return (
      (isPresent(this.get('value')) || this.get('_wasTouched')) &&
      this.get('validate') &&
      this.get('errors') &&
Severity: Major
Found in addon/components/md-input-field.js and 1 other location - About 2 hrs to fix
addon/components/md-input-field.js on lines 11..18

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

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

  isValid: computed('_wasTouched', 'value', 'validate', 'errors', 'errors.[]', function() {
    return (
      (isPresent(this.get('value')) || this.get('_wasTouched')) &&
      this.get('validate') &&
      this.get('errors') &&
Severity: Major
Found in addon/components/md-input-field.js and 1 other location - About 2 hrs to fix
addon/components/md-input-field.js on lines 20..27

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

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

  init() {
    this._super(...arguments);
    if (!this.get('modalContainerId')) {
      this.set('modalContainerId', this.get('_mdSettings.modalContainerId'));
    }
Severity: Major
Found in addon/components/md-modal-container.js and 1 other location - About 1 hr to fix
addon/components/md-btn.js on lines 23..28

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

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

  init() {
    this._super(...arguments);
    if (!this.get('iconPosition')) {
      this.set('iconPosition', this.get('_mdSettings.buttonIconPosition'));
    }
Severity: Major
Found in addon/components/md-btn.js and 1 other location - About 1 hr to fix
addon/components/md-modal-container.js on lines 9..14

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

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

export default materializeCheckbox.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-checkbox}} has been deprecated. Please use {{md-check}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-checkbox.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default materializeRadios.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-radios}} has been deprecated. Please use {{md-radios}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-radios.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default materializeCheckboxes.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-checkboxes}} has been deprecated. Please use {{md-checks}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-checkboxes.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default materializeLoader.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-loader}} has been deprecated. Please use {{md-loader}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-loader.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default MaterializeNavBar.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-navbar}} has been deprecated. Please use {{md-navbar}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-navbar.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default MaterializeCardReveal.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-card-reveal}} has been deprecated. Please use {{md-card-reveal}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-card-reveal.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default materializeRange.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-range}} has been deprecated. Please use {{md-range}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-range.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default MaterializeModal.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-modal}} has been deprecated. Please use {{md-modal}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-modal.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default MaterializeCardPanel.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-card-panel}} has been deprecated. Please use {{md-card-panel}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-card-panel.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default MaterializeCardAction.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-card-action}} has been deprecated. Please use {{md-card-action}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-card-action.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default materializeInput.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-input}} has been deprecated. Please use {{md-input}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-input.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default materializeTabsTab.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-tabs-tab}} has been deprecated. Please use {{md-tab}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-tabs-tab.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default materializeTabs.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-tabs}} has been deprecated. Please use {{md-tabs}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-tabs.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default materializeParallax.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-parallax}} has been deprecated. Please use {{md-parallax}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-parallax.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default MaterializeBadge.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-badge}} has been deprecated. Please use {{md-badge}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-badge.js and 29 other locations - About 40 mins to fix
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-pagination.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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

export default materializePagination.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-pagination}} has been deprecated. Please use {{md-pagination}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-pagination.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.js on lines 4..11
app/components/materialize-button-submit.js on lines 4..11
app/components/materialize-button.js on lines 4..11
app/components/materialize-card-action.js on lines 4..11
app/components/materialize-card-content.js on lines 4..11
app/components/materialize-card-panel.js on lines 4..11
app/components/materialize-card-reveal.js on lines 4..11
app/components/materialize-card.js on lines 4..11
app/components/materialize-checkbox.js on lines 4..11
app/components/materialize-checkboxes.js on lines 4..11
app/components/materialize-collapsible-card.js on lines 4..13
app/components/materialize-collapsible.js on lines 4..11
app/components/materialize-copyright.js on lines 4..11
app/components/materialize-date-input.js on lines 4..11
app/components/materialize-input-field.js on lines 4..11
app/components/materialize-input.js on lines 4..11
app/components/materialize-loader.js on lines 4..11
app/components/materialize-modal.js on lines 4..11
app/components/materialize-navbar.js on lines 4..11
app/components/materialize-parallax.js on lines 4..11
app/components/materialize-radio.js on lines 4..11
app/components/materialize-radios.js on lines 4..11
app/components/materialize-range.js on lines 4..11
app/components/materialize-select.js on lines 4..11
app/components/materialize-switch.js on lines 4..11
app/components/materialize-switches.js on lines 4..11
app/components/materialize-tabs-tab.js on lines 4..11
app/components/materialize-tabs.js on lines 4..11
app/components/materialize-textarea.js on lines 4..11

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

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