bokuweb/re-bulma

View on GitHub

Showing 299 of 374 total issues

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

Checkbox.propTypes = {
  children: PropTypes.any,
  style: PropTypes.object,
  className: PropTypes.string,
  hasIcon: PropTypes.bool,
Severity: Major
Found in lib-es/elements/forms/checkbox.js and 1 other location - About 4 hrs to fix
src/elements/forms/checkbox.js on lines 6..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 122.

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

export default class CardContent extends Component {

  createClassName() {
    return [styles.cardContent, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/card/card-content.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-footer-item.js on lines 8..24
lib-es/components/card/card-footer.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-header.js on lines 8..24
lib-es/components/card/card-image.js on lines 8..24
lib-es/components/heading/heading.js on lines 8..24
lib-es/components/level/level-left.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-content.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/media/media.js on lines 8..24
lib-es/components/menu/menu-label.js on lines 8..24
lib-es/components/menu/menu-list.js on lines 8..24
lib-es/components/menu/menu.js on lines 8..24
lib-es/components/nav/nav-container.js on lines 8..24
lib-es/components/pagination/pagination.js on lines 8..24
lib-es/components/panel/panel.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class CardFooter extends Component {

  createClassName() {
    return [styles.cardFooter, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/card/card-footer.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-content.js on lines 8..24
lib-es/components/card/card-footer-item.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-header.js on lines 8..24
lib-es/components/card/card-image.js on lines 8..24
lib-es/components/heading/heading.js on lines 8..24
lib-es/components/level/level-left.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-content.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/media/media.js on lines 8..24
lib-es/components/menu/menu-label.js on lines 8..24
lib-es/components/menu/menu-list.js on lines 8..24
lib-es/components/menu/menu.js on lines 8..24
lib-es/components/nav/nav-container.js on lines 8..24
lib-es/components/pagination/pagination.js on lines 8..24
lib-es/components/panel/panel.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class Th extends Component {

  createClassName() {
    return [styles.th, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/elements/th.js and 7 other locations - About 4 hrs to fix
lib-es/components/panel/panel-heading.js on lines 8..24
lib-es/elements/tbody.js on lines 8..24
lib-es/elements/tfoot.js on lines 8..24
lib-es/elements/thead.js on lines 8..24
lib-es/elements/tr.js on lines 8..24
lib-es/layout/footer.js on lines 8..24
lib-es/layout/section.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class Tfoot extends Component {

  createClassName() {
    return [styles.tfoot, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/elements/tfoot.js and 7 other locations - About 4 hrs to fix
lib-es/components/panel/panel-heading.js on lines 8..24
lib-es/elements/tbody.js on lines 8..24
lib-es/elements/th.js on lines 8..24
lib-es/elements/thead.js on lines 8..24
lib-es/elements/tr.js on lines 8..24
lib-es/layout/footer.js on lines 8..24
lib-es/layout/section.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class Pagination extends Component {

  createClassName() {
    return [styles.pagination, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/pagination/pagination.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-content.js on lines 8..24
lib-es/components/card/card-footer-item.js on lines 8..24
lib-es/components/card/card-footer.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-header.js on lines 8..24
lib-es/components/card/card-image.js on lines 8..24
lib-es/components/heading/heading.js on lines 8..24
lib-es/components/level/level-left.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-content.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/media/media.js on lines 8..24
lib-es/components/menu/menu-label.js on lines 8..24
lib-es/components/menu/menu-list.js on lines 8..24
lib-es/components/menu/menu.js on lines 8..24
lib-es/components/nav/nav-container.js on lines 8..24
lib-es/components/panel/panel.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class CardHeader extends Component {

  createClassName() {
    return [styles.cardHeader, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/card/card-header.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-content.js on lines 8..24
lib-es/components/card/card-footer-item.js on lines 8..24
lib-es/components/card/card-footer.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-image.js on lines 8..24
lib-es/components/heading/heading.js on lines 8..24
lib-es/components/level/level-left.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-content.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/media/media.js on lines 8..24
lib-es/components/menu/menu-label.js on lines 8..24
lib-es/components/menu/menu-list.js on lines 8..24
lib-es/components/menu/menu.js on lines 8..24
lib-es/components/nav/nav-container.js on lines 8..24
lib-es/components/pagination/pagination.js on lines 8..24
lib-es/components/panel/panel.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class Media extends Component {

  createClassName() {
    return [styles.media, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/media/media.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-content.js on lines 8..24
lib-es/components/card/card-footer-item.js on lines 8..24
lib-es/components/card/card-footer.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-header.js on lines 8..24
lib-es/components/card/card-image.js on lines 8..24
lib-es/components/heading/heading.js on lines 8..24
lib-es/components/level/level-left.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-content.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/menu/menu-label.js on lines 8..24
lib-es/components/menu/menu-list.js on lines 8..24
lib-es/components/menu/menu.js on lines 8..24
lib-es/components/nav/nav-container.js on lines 8..24
lib-es/components/pagination/pagination.js on lines 8..24
lib-es/components/panel/panel.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class MenuLabel extends Component {

  createClassName() {
    return [styles.menuLabel, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/menu/menu-label.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-content.js on lines 8..24
lib-es/components/card/card-footer-item.js on lines 8..24
lib-es/components/card/card-footer.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-header.js on lines 8..24
lib-es/components/card/card-image.js on lines 8..24
lib-es/components/heading/heading.js on lines 8..24
lib-es/components/level/level-left.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-content.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/media/media.js on lines 8..24
lib-es/components/menu/menu-list.js on lines 8..24
lib-es/components/menu/menu.js on lines 8..24
lib-es/components/nav/nav-container.js on lines 8..24
lib-es/components/pagination/pagination.js on lines 8..24
lib-es/components/panel/panel.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class Panel extends Component {

  createClassName() {
    return [styles.panel, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/panel/panel.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-content.js on lines 8..24
lib-es/components/card/card-footer-item.js on lines 8..24
lib-es/components/card/card-footer.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-header.js on lines 8..24
lib-es/components/card/card-image.js on lines 8..24
lib-es/components/heading/heading.js on lines 8..24
lib-es/components/level/level-left.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-content.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/media/media.js on lines 8..24
lib-es/components/menu/menu-label.js on lines 8..24
lib-es/components/menu/menu-list.js on lines 8..24
lib-es/components/menu/menu.js on lines 8..24
lib-es/components/nav/nav-container.js on lines 8..24
lib-es/components/pagination/pagination.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class Heading extends Component {

  createClassName() {
    return [styles.heading, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/heading/heading.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-content.js on lines 8..24
lib-es/components/card/card-footer-item.js on lines 8..24
lib-es/components/card/card-footer.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-header.js on lines 8..24
lib-es/components/card/card-image.js on lines 8..24
lib-es/components/level/level-left.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-content.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/media/media.js on lines 8..24
lib-es/components/menu/menu-label.js on lines 8..24
lib-es/components/menu/menu-list.js on lines 8..24
lib-es/components/menu/menu.js on lines 8..24
lib-es/components/nav/nav-container.js on lines 8..24
lib-es/components/pagination/pagination.js on lines 8..24
lib-es/components/panel/panel.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class CardFooterItem extends Component {

  createClassName() {
    return [styles.cardFooterItem, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/card/card-footer-item.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-content.js on lines 8..24
lib-es/components/card/card-footer.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-header.js on lines 8..24
lib-es/components/card/card-image.js on lines 8..24
lib-es/components/heading/heading.js on lines 8..24
lib-es/components/level/level-left.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-content.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/media/media.js on lines 8..24
lib-es/components/menu/menu-label.js on lines 8..24
lib-es/components/menu/menu-list.js on lines 8..24
lib-es/components/menu/menu.js on lines 8..24
lib-es/components/nav/nav-container.js on lines 8..24
lib-es/components/pagination/pagination.js on lines 8..24
lib-es/components/panel/panel.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class NavContainer extends Component {

  createClassName() {
    return [styles.container, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/nav/nav-container.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-content.js on lines 8..24
lib-es/components/card/card-footer-item.js on lines 8..24
lib-es/components/card/card-footer.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-header.js on lines 8..24
lib-es/components/card/card-image.js on lines 8..24
lib-es/components/heading/heading.js on lines 8..24
lib-es/components/level/level-left.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-content.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/media/media.js on lines 8..24
lib-es/components/menu/menu-label.js on lines 8..24
lib-es/components/menu/menu-list.js on lines 8..24
lib-es/components/menu/menu.js on lines 8..24
lib-es/components/pagination/pagination.js on lines 8..24
lib-es/components/panel/panel.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class MenuList extends Component {

  createClassName() {
    return [styles.menuList, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/menu/menu-list.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-content.js on lines 8..24
lib-es/components/card/card-footer-item.js on lines 8..24
lib-es/components/card/card-footer.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-header.js on lines 8..24
lib-es/components/card/card-image.js on lines 8..24
lib-es/components/heading/heading.js on lines 8..24
lib-es/components/level/level-left.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-content.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/media/media.js on lines 8..24
lib-es/components/menu/menu-label.js on lines 8..24
lib-es/components/menu/menu.js on lines 8..24
lib-es/components/nav/nav-container.js on lines 8..24
lib-es/components/pagination/pagination.js on lines 8..24
lib-es/components/panel/panel.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class LevelLeft extends Component {

  createClassName() {
    return [styles.levelLeft, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/level/level-left.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-content.js on lines 8..24
lib-es/components/card/card-footer-item.js on lines 8..24
lib-es/components/card/card-footer.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-header.js on lines 8..24
lib-es/components/card/card-image.js on lines 8..24
lib-es/components/heading/heading.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-content.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/media/media.js on lines 8..24
lib-es/components/menu/menu-label.js on lines 8..24
lib-es/components/menu/menu-list.js on lines 8..24
lib-es/components/menu/menu.js on lines 8..24
lib-es/components/nav/nav-container.js on lines 8..24
lib-es/components/pagination/pagination.js on lines 8..24
lib-es/components/panel/panel.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class CardImage extends Component {

  createClassName() {
    return [styles.cardImage, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/card/card-image.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-content.js on lines 8..24
lib-es/components/card/card-footer-item.js on lines 8..24
lib-es/components/card/card-footer.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-header.js on lines 8..24
lib-es/components/heading/heading.js on lines 8..24
lib-es/components/level/level-left.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-content.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/media/media.js on lines 8..24
lib-es/components/menu/menu-label.js on lines 8..24
lib-es/components/menu/menu-list.js on lines 8..24
lib-es/components/menu/menu.js on lines 8..24
lib-es/components/nav/nav-container.js on lines 8..24
lib-es/components/pagination/pagination.js on lines 8..24
lib-es/components/panel/panel.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class Section extends Component {

  createClassName() {
    return [styles.section, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/layout/section.js and 7 other locations - About 4 hrs to fix
lib-es/components/panel/panel-heading.js on lines 8..24
lib-es/elements/tbody.js on lines 8..24
lib-es/elements/tfoot.js on lines 8..24
lib-es/elements/th.js on lines 8..24
lib-es/elements/thead.js on lines 8..24
lib-es/elements/tr.js on lines 8..24
lib-es/layout/footer.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class Menu extends Component {

  createClassName() {
    return [styles.menu, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/menu/menu.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-content.js on lines 8..24
lib-es/components/card/card-footer-item.js on lines 8..24
lib-es/components/card/card-footer.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-header.js on lines 8..24
lib-es/components/card/card-image.js on lines 8..24
lib-es/components/heading/heading.js on lines 8..24
lib-es/components/level/level-left.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-content.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/media/media.js on lines 8..24
lib-es/components/menu/menu-label.js on lines 8..24
lib-es/components/menu/menu-list.js on lines 8..24
lib-es/components/nav/nav-container.js on lines 8..24
lib-es/components/pagination/pagination.js on lines 8..24
lib-es/components/panel/panel.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class MediaContent extends Component {

  createClassName() {
    return [styles.mediaContent, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/media/media-content.js and 21 other locations - About 4 hrs to fix
lib-es/components/card/card-content.js on lines 8..24
lib-es/components/card/card-footer-item.js on lines 8..24
lib-es/components/card/card-footer.js on lines 8..24
lib-es/components/card/card-header-title.js on lines 8..24
lib-es/components/card/card-header.js on lines 8..24
lib-es/components/card/card-image.js on lines 8..24
lib-es/components/heading/heading.js on lines 8..24
lib-es/components/level/level-left.js on lines 8..24
lib-es/components/level/level-right.js on lines 8..24
lib-es/components/media/media-left.js on lines 8..24
lib-es/components/media/media-right.js on lines 8..24
lib-es/components/media/media.js on lines 8..24
lib-es/components/menu/menu-label.js on lines 8..24
lib-es/components/menu/menu-list.js on lines 8..24
lib-es/components/menu/menu.js on lines 8..24
lib-es/components/nav/nav-container.js on lines 8..24
lib-es/components/pagination/pagination.js on lines 8..24
lib-es/components/panel/panel.js on lines 8..24
lib-es/layout/hero-body.js on lines 8..24
lib-es/layout/hero-foot.js on lines 8..24
lib-es/layout/hero-head.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

export default class PanelHeading extends Component {

  createClassName() {
    return [styles.panelHeading, this.props.className].join(' ').trim();
  }
Severity: Major
Found in lib-es/components/panel/panel-heading.js and 7 other locations - About 4 hrs to fix
lib-es/elements/tbody.js on lines 8..24
lib-es/elements/tfoot.js on lines 8..24
lib-es/elements/th.js on lines 8..24
lib-es/elements/thead.js on lines 8..24
lib-es/elements/tr.js on lines 8..24
lib-es/layout/footer.js on lines 8..24
lib-es/layout/section.js on lines 8..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 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language