mike-north/ember-cli-materialize

View on GitHub

Showing 42 of 42 total issues

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

export default MaterializeCollapsible.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-collapsible}} has been deprecated. Please use {{md-collapsible}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-collapsible.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-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 materializeSelect.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-select}} has been deprecated. Please use {{md-select}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-select.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-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 materializeTextarea.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-textarea}} has been deprecated. Please use {{md-textarea}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-textarea.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-tabs.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 materializeDateInput.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-date-input}} has been deprecated. Please use {{md-input-date}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-date-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-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 materializeRadio.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-radio}} has been deprecated. Please use {{md-radio}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-radio.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-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 materializeCopyright.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-copyright}} has been deprecated. Please use {{md-copyright}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-copyright.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-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 MaterializeButton.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-button}} has been deprecated. Please use {{md-btn}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-button.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-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 materializeSwitches.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-switches}} has been deprecated. Please use {{md-switches}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-switches.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-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 MaterializeCard.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-card}} has been deprecated. Please use {{md-card}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-card.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-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 materializeInputField.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-input-field}} has been deprecated. Please use {{md-input-field}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-input-field.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.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 MaterializeButtonSubmit.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-button-submit}} has been deprecated. Please use {{md-btn-submit}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-button-submit.js and 29 other locations - About 40 mins to fix
app/components/materialize-badge.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 MaterializeCollapsibleCard.extend({
  init() {
    this._super(...arguments);
    deprecate(
      '{{materialize-collapsible-card}} has been deprecated. Please use {{md-card-collapsible}} instead',
Severity: Major
Found in app/components/materialize-collapsible-card.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.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 materializeSwitch.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-switch}} has been deprecated. Please use {{md-switch}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-switch.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-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 MaterializeCardContent.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-card-content}} has been deprecated. Please use {{md-card-content}} instead', false, {
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
Severity: Major
Found in app/components/materialize-card-content.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-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 2 locations. Consider refactoring.
Open

  unregisterChildComponent(childComponent) {
    this.get('_childComponents').delete(childComponent, childComponent.get('key'));
    this._notifyComposableChildrenChanged();
  }
Severity: Minor
Found in addon/components/md-table.js and 1 other location - About 35 mins to fix
addon/components/md-table.js on lines 21..24

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

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

  registerChildComponent(childComponent) {
    this.get('_childComponents').add(childComponent, childComponent.get('key'));
    this._notifyComposableChildrenChanged();
  },
Severity: Minor
Found in addon/components/md-table.js and 1 other location - About 35 mins to fix
addon/components/md-table.js on lines 26..29

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

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

  title: computed('parentView.title', function() {
    deprecate('Using md-card-content without passing it a "title" property (relying on parentView.title) is deprecated.',
      true, {
      id: 'ember-cli-materialize.deprecate-parentView',
      until: '1.0.0'
Severity: Major
Found in addon/components/md-card-content.js and 4 other locations - About 35 mins to fix
addon/components/md-card-content.js on lines 22..29
addon/components/md-card-content.js on lines 31..38
addon/components/md-card-reveal.js on lines 12..19
addon/components/md-card-reveal.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 46.

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

  activator: computed('parentView.activator', function() {
    deprecate('Using md-card-reveal without passing it an "activator" property (relying on parentView.activator) is deprecated.',
      true, {
      id: 'ember-cli-materialize.deprecate-parentView',
      until: '1.0.0'
Severity: Major
Found in addon/components/md-card-reveal.js and 4 other locations - About 35 mins to fix
addon/components/md-card-content.js on lines 13..20
addon/components/md-card-content.js on lines 22..29
addon/components/md-card-content.js on lines 31..38
addon/components/md-card-reveal.js on lines 12..19

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

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

  title: computed('parentView.title', function() {
    deprecate('Using md-card-reveal without passing it a "title" property (relying on parentView.title) is deprecated.',
      true, {
      id: 'ember-cli-materialize.deprecate-parentView',
      until: '1.0.0'
Severity: Major
Found in addon/components/md-card-reveal.js and 4 other locations - About 35 mins to fix
addon/components/md-card-content.js on lines 13..20
addon/components/md-card-content.js on lines 22..29
addon/components/md-card-content.js on lines 31..38
addon/components/md-card-reveal.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 46.

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

  titleClass: computed('parentView.titleClass', function() {
    deprecate('Using md-card-content without passing it a "titleClass" property (relying on parentView.titleClass) is deprecated.',
      true, {
      id: 'ember-cli-materialize.deprecate-parentView',
      until: '1.0.0'
Severity: Major
Found in addon/components/md-card-content.js and 4 other locations - About 35 mins to fix
addon/components/md-card-content.js on lines 13..20
addon/components/md-card-content.js on lines 31..38
addon/components/md-card-reveal.js on lines 12..19
addon/components/md-card-reveal.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 46.

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