bokuweb/re-bulma

View on GitHub

Showing 299 of 374 total issues

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

export { Button, Columns, Column, Label, Addons, Group, FormHorizontal, ControlLabel, Input, Textarea, Select, Checkbox, Radio, Table, Td, Th, Tr, Tbody, Thead, Tfoot, Title, Subtitle, Box, Icon, Tabs, TabGroup, Tab, Tag, Progress, Content, Message, Image, Notification, Card, CardHeader, CardImage, CardContent, CardHeaderTitle, CardHeaderIcon, CardFooter, CardFooterItem, Heading, Level, LevelRight, LevelLeft, LevelItem, Modal, Media, MediaLeft, MediaContent, MediaRight, Menu, MenuLabel, MenuList, MenuLink, Nav, NavGroup, NavItem, NavToggle, NavContainer, Pagination, PageButton, Panel, PanelTabs, PanelBlock, PanelHeading, Container, Footer, Section, Hero, HeroFoot, HeroHead, HeroBody, Tile, styles };
Severity: Major
Found in lib-es/index.js and 1 other location - About 2 days to fix
src/index.js on lines 85..161

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

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

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

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

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

Refactorings

Further Reading

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

export {
  Button,
  Columns,
  Column,
  Label,
Severity: Major
Found in src/index.js and 1 other location - About 2 days to fix
lib-es/index.js on lines 85..85

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

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

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

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

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

Refactorings

Further Reading

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

Input.propTypes = {
  className: PropTypes.string,
  hasIcon: PropTypes.bool,
  hasIconRight: PropTypes.bool,
  style: PropTypes.object,
Severity: Major
Found in lib-es/elements/forms/input.js and 1 other location - About 1 day to fix
src/elements/forms/input.js on lines 7..47

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

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

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

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

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

Refactorings

Further Reading

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

  static propTypes = {
    className: PropTypes.string,
    hasIcon: PropTypes.bool,
    hasIconRight: PropTypes.bool,
    style: PropTypes.object,
Severity: Major
Found in src/elements/forms/input.js and 1 other location - About 1 day to fix
lib-es/elements/forms/input.js on lines 55..76

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

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

export default class Nav extends Component {
  static propTypes = {
    style: PropTypes.object,
    children: PropTypes.any,
    className: PropTypes.string,
Severity: Major
Found in src/components/nav/nav.js and 2 other locations - About 1 day to fix
src/components/card/card.js on lines 6..38
src/components/level/level-item.js on lines 6..38

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

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

export default class Card extends Component {
  static propTypes = {
    style: PropTypes.object,
    children: PropTypes.any,
    className: PropTypes.string,
Severity: Major
Found in src/components/card/card.js and 2 other locations - About 1 day to fix
src/components/level/level-item.js on lines 6..38
src/components/nav/nav.js on lines 6..38

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

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

export default class LevelItem extends Component {
  static propTypes = {
    style: PropTypes.object,
    children: PropTypes.any,
    className: PropTypes.string,
Severity: Major
Found in src/components/level/level-item.js and 2 other locations - About 1 day to fix
src/components/card/card.js on lines 6..38
src/components/nav/nav.js on lines 6..38

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

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

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

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

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

Refactorings

Further Reading

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

  dataProps() {
    const extraProps = {};
    if (typeof this.props.data !== 'undefined' && this.props.data && this.props.data.length > 0) {
      this.props.data.forEach(d => {
        if (d.name && d.value) {
Severity: Major
Found in lib-es/dataComponent.js and 1 other location - About 7 hrs to fix
src/dataComponent.js on lines 9..20

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

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

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

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

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

Refactorings

Further Reading

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

  dataProps() {
    const extraProps = {};
    if (typeof this.props.data !== 'undefined' && this.props.data && this.props.data.length > 0) {
      this.props.data.forEach(d => {
        if (d.name && d.value) {
Severity: Major
Found in src/dataComponent.js and 1 other location - About 7 hrs to fix
lib-es/dataComponent.js on lines 6..17

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

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

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

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

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

Refactorings

Further Reading

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

Column.propTypes = {
  children: PropTypes.any,
  style: PropTypes.object,
  className: PropTypes.string,
  isMultiline: PropTypes.bool,
Severity: Major
Found in lib-es/grid/column.js and 1 other location - About 7 hrs to fix
src/grid/column.js on lines 7..128

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

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

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

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

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

Refactorings

Further Reading

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

  static propTypes = {
    children: PropTypes.any,
    style: PropTypes.object,
    className: PropTypes.string,
    isMultiline: PropTypes.bool,
Severity: Major
Found in src/grid/column.js and 1 other location - About 7 hrs to fix
lib-es/grid/column.js on lines 25..32

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

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

export default class CardHeaderTitle extends Component {
  static propTypes = {
    style: PropTypes.object,
    children: PropTypes.any,
    className: PropTypes.string,
Severity: Major
Found in src/components/card/card-header-title.js and 19 other locations - About 7 hrs to fix
src/components/card/card-content.js on lines 6..36
src/components/card/card-footer-item.js on lines 6..36
src/components/card/card-footer.js on lines 6..36
src/components/card/card-header.js on lines 6..36
src/components/card/card-image.js on lines 6..36
src/components/heading/heading.js on lines 6..36
src/components/level/level-left.js on lines 6..36
src/components/level/level-right.js on lines 6..36
src/components/media/media-content.js on lines 6..36
src/components/media/media-left.js on lines 6..36
src/components/media/media-right.js on lines 6..36
src/components/media/media.js on lines 6..36
src/components/menu/menu-label.js on lines 6..36
src/components/menu/menu-list.js on lines 6..36
src/components/menu/menu.js on lines 6..36
src/components/pagination/pagination.js on lines 6..36
src/layout/hero-body.js on lines 6..36
src/layout/hero-foot.js on lines 6..36
src/layout/hero-head.js on lines 6..36

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

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

export default class LevelRight extends Component {
  static propTypes = {
    style: PropTypes.object,
    children: PropTypes.any,
    className: PropTypes.string,
Severity: Major
Found in src/components/level/level-right.js and 19 other locations - About 7 hrs to fix
src/components/card/card-content.js on lines 6..36
src/components/card/card-footer-item.js on lines 6..36
src/components/card/card-footer.js on lines 6..36
src/components/card/card-header-title.js on lines 6..36
src/components/card/card-header.js on lines 6..36
src/components/card/card-image.js on lines 6..36
src/components/heading/heading.js on lines 6..36
src/components/level/level-left.js on lines 6..36
src/components/media/media-content.js on lines 6..36
src/components/media/media-left.js on lines 6..36
src/components/media/media-right.js on lines 6..36
src/components/media/media.js on lines 6..36
src/components/menu/menu-label.js on lines 6..36
src/components/menu/menu-list.js on lines 6..36
src/components/menu/menu.js on lines 6..36
src/components/pagination/pagination.js on lines 6..36
src/layout/hero-body.js on lines 6..36
src/layout/hero-foot.js on lines 6..36
src/layout/hero-head.js on lines 6..36

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

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

export default class CardFooter extends Component {
  static propTypes = {
    style: PropTypes.object,
    children: PropTypes.any,
    className: PropTypes.string,
Severity: Major
Found in src/components/card/card-footer.js and 19 other locations - About 7 hrs to fix
src/components/card/card-content.js on lines 6..36
src/components/card/card-footer-item.js on lines 6..36
src/components/card/card-header-title.js on lines 6..36
src/components/card/card-header.js on lines 6..36
src/components/card/card-image.js on lines 6..36
src/components/heading/heading.js on lines 6..36
src/components/level/level-left.js on lines 6..36
src/components/level/level-right.js on lines 6..36
src/components/media/media-content.js on lines 6..36
src/components/media/media-left.js on lines 6..36
src/components/media/media-right.js on lines 6..36
src/components/media/media.js on lines 6..36
src/components/menu/menu-label.js on lines 6..36
src/components/menu/menu-list.js on lines 6..36
src/components/menu/menu.js on lines 6..36
src/components/pagination/pagination.js on lines 6..36
src/layout/hero-body.js on lines 6..36
src/layout/hero-foot.js on lines 6..36
src/layout/hero-head.js on lines 6..36

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

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

export default class CardFooterItem extends Component {
  static propTypes = {
    style: PropTypes.object,
    children: PropTypes.any,
    className: PropTypes.string,
Severity: Major
Found in src/components/card/card-footer-item.js and 19 other locations - About 7 hrs to fix
src/components/card/card-content.js on lines 6..36
src/components/card/card-footer.js on lines 6..36
src/components/card/card-header-title.js on lines 6..36
src/components/card/card-header.js on lines 6..36
src/components/card/card-image.js on lines 6..36
src/components/heading/heading.js on lines 6..36
src/components/level/level-left.js on lines 6..36
src/components/level/level-right.js on lines 6..36
src/components/media/media-content.js on lines 6..36
src/components/media/media-left.js on lines 6..36
src/components/media/media-right.js on lines 6..36
src/components/media/media.js on lines 6..36
src/components/menu/menu-label.js on lines 6..36
src/components/menu/menu-list.js on lines 6..36
src/components/menu/menu.js on lines 6..36
src/components/pagination/pagination.js on lines 6..36
src/layout/hero-body.js on lines 6..36
src/layout/hero-foot.js on lines 6..36
src/layout/hero-head.js on lines 6..36

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

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

export default class Media extends Component {
  static propTypes = {
    style: PropTypes.object,
    children: PropTypes.any,
    className: PropTypes.string,
Severity: Major
Found in src/components/media/media.js and 19 other locations - About 7 hrs to fix
src/components/card/card-content.js on lines 6..36
src/components/card/card-footer-item.js on lines 6..36
src/components/card/card-footer.js on lines 6..36
src/components/card/card-header-title.js on lines 6..36
src/components/card/card-header.js on lines 6..36
src/components/card/card-image.js on lines 6..36
src/components/heading/heading.js on lines 6..36
src/components/level/level-left.js on lines 6..36
src/components/level/level-right.js on lines 6..36
src/components/media/media-content.js on lines 6..36
src/components/media/media-left.js on lines 6..36
src/components/media/media-right.js on lines 6..36
src/components/menu/menu-label.js on lines 6..36
src/components/menu/menu-list.js on lines 6..36
src/components/menu/menu.js on lines 6..36
src/components/pagination/pagination.js on lines 6..36
src/layout/hero-body.js on lines 6..36
src/layout/hero-foot.js on lines 6..36
src/layout/hero-head.js on lines 6..36

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

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

export default class Heading extends Component {
  static propTypes = {
    style: PropTypes.object,
    children: PropTypes.any,
    className: PropTypes.string,
Severity: Major
Found in src/components/heading/heading.js and 19 other locations - About 7 hrs to fix
src/components/card/card-content.js on lines 6..36
src/components/card/card-footer-item.js on lines 6..36
src/components/card/card-footer.js on lines 6..36
src/components/card/card-header-title.js on lines 6..36
src/components/card/card-header.js on lines 6..36
src/components/card/card-image.js on lines 6..36
src/components/level/level-left.js on lines 6..36
src/components/level/level-right.js on lines 6..36
src/components/media/media-content.js on lines 6..36
src/components/media/media-left.js on lines 6..36
src/components/media/media-right.js on lines 6..36
src/components/media/media.js on lines 6..36
src/components/menu/menu-label.js on lines 6..36
src/components/menu/menu-list.js on lines 6..36
src/components/menu/menu.js on lines 6..36
src/components/pagination/pagination.js on lines 6..36
src/layout/hero-body.js on lines 6..36
src/layout/hero-foot.js on lines 6..36
src/layout/hero-head.js on lines 6..36

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

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

export default class Menu extends Component {
  static propTypes = {
    style: PropTypes.object,
    children: PropTypes.any,
    className: PropTypes.string,
Severity: Major
Found in src/components/menu/menu.js and 19 other locations - About 7 hrs to fix
src/components/card/card-content.js on lines 6..36
src/components/card/card-footer-item.js on lines 6..36
src/components/card/card-footer.js on lines 6..36
src/components/card/card-header-title.js on lines 6..36
src/components/card/card-header.js on lines 6..36
src/components/card/card-image.js on lines 6..36
src/components/heading/heading.js on lines 6..36
src/components/level/level-left.js on lines 6..36
src/components/level/level-right.js on lines 6..36
src/components/media/media-content.js on lines 6..36
src/components/media/media-left.js on lines 6..36
src/components/media/media-right.js on lines 6..36
src/components/media/media.js on lines 6..36
src/components/menu/menu-label.js on lines 6..36
src/components/menu/menu-list.js on lines 6..36
src/components/pagination/pagination.js on lines 6..36
src/layout/hero-body.js on lines 6..36
src/layout/hero-foot.js on lines 6..36
src/layout/hero-head.js on lines 6..36

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

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

export default class Thead extends Component {
  static propTypes = {
    children: PropTypes.any,
    className: PropTypes.string,
    style: PropTypes.object,
Severity: Major
Found in src/elements/thead.js and 1 other location - About 7 hrs to fix
src/components/panel/panel-heading.js on lines 6..36

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

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

export default class HeroHead extends Component {
  static propTypes = {
    style: PropTypes.object,
    children: PropTypes.any,
    className: PropTypes.string,
Severity: Major
Found in src/layout/hero-head.js and 19 other locations - About 7 hrs to fix
src/components/card/card-content.js on lines 6..36
src/components/card/card-footer-item.js on lines 6..36
src/components/card/card-footer.js on lines 6..36
src/components/card/card-header-title.js on lines 6..36
src/components/card/card-header.js on lines 6..36
src/components/card/card-image.js on lines 6..36
src/components/heading/heading.js on lines 6..36
src/components/level/level-left.js on lines 6..36
src/components/level/level-right.js on lines 6..36
src/components/media/media-content.js on lines 6..36
src/components/media/media-left.js on lines 6..36
src/components/media/media-right.js on lines 6..36
src/components/media/media.js on lines 6..36
src/components/menu/menu-label.js on lines 6..36
src/components/menu/menu-list.js on lines 6..36
src/components/menu/menu.js on lines 6..36
src/components/pagination/pagination.js on lines 6..36
src/layout/hero-body.js on lines 6..36
src/layout/hero-foot.js on lines 6..36

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

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