TwitchSeventeen/react-blazeui

View on GitHub

Showing 69 of 78 total issues

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

  const {
    children,
    className,
    buttonType,
    as: Component,
Severity: Major
Found in src/lib/components/Button/index.jsx and 1 other location - About 1 hr to fix
src/lib/components/Counter/index.jsx on lines 7..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 66.

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

  const {
    className, src, alt, user, filter, as: Component, likes, height, width, dataName, ...other
  } = props;
Severity: Major
Found in src/lib/components/Image/index.jsx and 1 other location - About 1 hr to fix
src/lib/components/Icon/index.jsx on lines 6..8

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

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

  const {
    className, name, type, size, flipped, as: Component, rotate, spin, pulse, dataName, ...other
  } = props;
Severity: Major
Found in src/lib/components/Icon/index.jsx and 1 other location - About 1 hr to fix
src/lib/components/Image/index.jsx on lines 6..8

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

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

HeaderCell.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Table/HeaderCell/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

Loud.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Loud/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

Body.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Card/Body/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

Address.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Address/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

Mono.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Mono/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

Highlight.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Highlight/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

Header.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Table/Header/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

Content.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Accordion/Content/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

Body.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Table/Body/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

Quiet.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Quiet/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44

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

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

Panel.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Panel/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

Key.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Key/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

Header.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Card/Header/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

Caption.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Table/Caption/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

Accordion.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Accordion/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Cell/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

Cell.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Table/Cell/index.jsx and 15 other locations - About 1 hr to fix
src/lib/components/Table/Body/index.jsx on lines 26..44
src/lib/components/Table/Caption/index.jsx on lines 26..44
src/lib/components/Table/Header/index.jsx on lines 26..44
src/lib/components/Table/HeaderCell/index.jsx on lines 26..44
src/lib/components/Accordion/Content/index.jsx on lines 22..40
src/lib/components/Accordion/index.jsx on lines 24..42
src/lib/components/Address/index.jsx on lines 21..39
src/lib/components/Card/Body/index.jsx on lines 21..39
src/lib/components/Card/Header/index.jsx on lines 21..39
src/lib/components/Highlight/index.jsx on lines 21..39
src/lib/components/Key/index.jsx on lines 21..39
src/lib/components/Loud/index.jsx on lines 21..39
src/lib/components/Mono/index.jsx on lines 21..39
src/lib/components/Panel/index.jsx on lines 26..44
src/lib/components/Quiet/index.jsx on lines 21..39

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

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

  return (
    <Component
      {...other}
      className={classes}
      data-name={dataName}
Severity: Major
Found in src/lib/components/Panel/index.jsx and 2 other locations - About 55 mins to fix
src/lib/components/Divider/index.jsx on lines 10..20
src/lib/components/Timeline/Item/index.jsx on lines 18..28

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 53.

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