TwitchSeventeen/react-blazeui

View on GitHub

Showing 78 of 78 total issues

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

function Row(props) {
  const {
    children, as: Component, className, head, disabled, clickable, dataName, ...other
  } = props;

Severity: Major
Found in src/lib/components/Table/Row/index.jsx and 1 other location - About 4 hrs to fix
src/lib/components/Table/index.jsx on lines 11..33

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

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

function Table(props) {
  const {
    children, as: Component, className, striped, clickable, condensed, dataName, ...other
  } = props;

Severity: Major
Found in src/lib/components/Table/index.jsx and 1 other location - About 4 hrs to fix
src/lib/components/Table/Row/index.jsx on lines 5..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 123.

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

function Select(props) {
  const {
    children, className, success, error, as: Component, dataName, ...other
  } = props;
  const classes = classNames(
Severity: Major
Found in src/lib/components/Input/Select/index.jsx and 2 other locations - About 3 hrs to fix
src/lib/components/Input/Textarea/index.jsx on lines 5..25
src/lib/components/Timeline/index.jsx on lines 6..26

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

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

function Timeline(props) {
  const {
    children, as: Component, className, loading, alternate, dataName, ...other
  } = props;
  const classes = classNames(
Severity: Major
Found in src/lib/components/Timeline/index.jsx and 2 other locations - About 3 hrs to fix
src/lib/components/Input/Select/index.jsx on lines 5..25
src/lib/components/Input/Textarea/index.jsx on lines 5..25

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

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

function Textarea(props) {
  const {
    children, className, success, error, as: Component, dataName, ...other
  } = props;
  const classes = classNames(
Severity: Major
Found in src/lib/components/Input/Textarea/index.jsx and 2 other locations - About 3 hrs to fix
src/lib/components/Input/Select/index.jsx on lines 5..25
src/lib/components/Timeline/index.jsx on lines 6..26

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

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

function Code(props) {
  const {
    children, multiline, className, as: Component, dataName, ...other
  } = props;
  const classes = classNames('u-code', { 'u-code--multiline': multiline }, className);
Severity: Major
Found in src/lib/components/Code/index.jsx and 3 other locations - About 3 hrs to fix
src/lib/components/Card/Footer/index.jsx on lines 5..19
src/lib/components/Card/index.jsx on lines 10..24
src/lib/components/List/Item/index.jsx on lines 5..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 99.

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

function Card(props) {
  const {
    children, grouped, className, as: Component, dataName, ...other
  } = props;
  const classes = classNames('c-card', { 'c-card--grouped': grouped }, className);
Severity: Major
Found in src/lib/components/Card/index.jsx and 3 other locations - About 3 hrs to fix
src/lib/components/Card/Footer/index.jsx on lines 5..19
src/lib/components/Code/index.jsx on lines 5..19
src/lib/components/List/Item/index.jsx on lines 5..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 99.

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

function Footer(props) {
  const {
    children, block, className, as: Component, dataName, ...other
  } = props;
  const classes = classNames('c-card__footer', { 'c-card__footer--block': block }, className);
Severity: Major
Found in src/lib/components/Card/Footer/index.jsx and 3 other locations - About 3 hrs to fix
src/lib/components/Card/index.jsx on lines 10..24
src/lib/components/Code/index.jsx on lines 5..19
src/lib/components/List/Item/index.jsx on lines 5..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 99.

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

function Item(props) {
  const {
    children, className, unstyled, as: Component, dataName, ...other
  } = props;
  const classes = classNames(
Severity: Major
Found in src/lib/components/List/Item/index.jsx and 3 other locations - About 3 hrs to fix
src/lib/components/Card/Footer/index.jsx on lines 5..19
src/lib/components/Card/index.jsx on lines 10..24
src/lib/components/Code/index.jsx on lines 5..19

Duplicated Code

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

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

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

Tuning

This issue has a mass of 99.

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

List.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/List/index.jsx and 3 other locations - About 2 hrs to fix
src/lib/components/Table/Row/index.jsx on lines 29..59
src/lib/components/Input/Field/index.jsx on lines 28..58
src/lib/components/Table/index.jsx on lines 35..65

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

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

Row.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Table/Row/index.jsx and 3 other locations - About 2 hrs to fix
src/lib/components/Input/Field/index.jsx on lines 28..58
src/lib/components/List/index.jsx on lines 41..71
src/lib/components/Table/index.jsx on lines 35..65

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

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

Field.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Input/Field/index.jsx and 3 other locations - About 2 hrs to fix
src/lib/components/Table/Row/index.jsx on lines 29..59
src/lib/components/List/index.jsx on lines 41..71
src/lib/components/Table/index.jsx on lines 35..65

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

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

Table.propTypes = {
  /**
   * This element can have children
   */
  children: PropTypes.node,
Severity: Major
Found in src/lib/components/Table/index.jsx and 3 other locations - About 2 hrs to fix
src/lib/components/Table/Row/index.jsx on lines 29..59
src/lib/components/Input/Field/index.jsx on lines 28..58
src/lib/components/List/index.jsx on lines 41..71

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

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

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

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

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

Refactorings

Further Reading

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

function Cell(props) {
  const {
    children, className, as: Component, dataName, ...other
  } = props;

Severity: Major
Found in src/lib/components/Table/Cell/index.jsx and 4 other locations - About 2 hrs to fix
src/lib/components/Table/Body/index.jsx on lines 5..24
src/lib/components/Table/Caption/index.jsx on lines 5..24
src/lib/components/Table/Header/index.jsx on lines 5..24
src/lib/components/Table/HeaderCell/index.jsx on lines 5..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 87.

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

function Quiet(props) {
  const {
    children, className, as: Component, dataName, ...other
  } = props;
  const classes = classNames('u-text--quiet', className);
Severity: Major
Found in src/lib/components/Quiet/index.jsx and 9 other locations - About 2 hrs to fix
src/lib/components/Accordion/Content/index.jsx on lines 6..20
src/lib/components/Accordion/index.jsx on lines 8..22
src/lib/components/Address/index.jsx on lines 5..19
src/lib/components/Card/Body/index.jsx on lines 5..19
src/lib/components/Card/Header/index.jsx on lines 5..19
src/lib/components/Highlight/index.jsx on lines 5..19
src/lib/components/Key/index.jsx on lines 5..19
src/lib/components/Loud/index.jsx on lines 5..19
src/lib/components/Mono/index.jsx on lines 5..19

Duplicated Code

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

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

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

Tuning

This issue has a mass of 87.

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

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

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

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

Refactorings

Further Reading

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

function Caption(props) {
  const {
    children, as: Component, className, dataName, ...other
  } = props;

Severity: Major
Found in src/lib/components/Table/Caption/index.jsx and 4 other locations - About 2 hrs to fix
src/lib/components/Table/Body/index.jsx on lines 5..24
src/lib/components/Table/Cell/index.jsx on lines 5..24
src/lib/components/Table/Header/index.jsx on lines 5..24
src/lib/components/Table/HeaderCell/index.jsx on lines 5..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 87.

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

function Mono(props) {
  const {
    children, className, as: Component, dataName, ...other
  } = props;
  const classes = classNames('u-text--mono', className);
Severity: Major
Found in src/lib/components/Mono/index.jsx and 9 other locations - About 2 hrs to fix
src/lib/components/Accordion/Content/index.jsx on lines 6..20
src/lib/components/Accordion/index.jsx on lines 8..22
src/lib/components/Address/index.jsx on lines 5..19
src/lib/components/Card/Body/index.jsx on lines 5..19
src/lib/components/Card/Header/index.jsx on lines 5..19
src/lib/components/Highlight/index.jsx on lines 5..19
src/lib/components/Key/index.jsx on lines 5..19
src/lib/components/Loud/index.jsx on lines 5..19
src/lib/components/Quiet/index.jsx on lines 5..19

Duplicated Code

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

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

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

Tuning

This issue has a mass of 87.

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

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

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

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

Refactorings

Further Reading

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

function HeaderCell(props) {
  const {
    children, className, as: Component, dataName, ...other
  } = props;

Severity: Major
Found in src/lib/components/Table/HeaderCell/index.jsx and 4 other locations - About 2 hrs to fix
src/lib/components/Table/Body/index.jsx on lines 5..24
src/lib/components/Table/Caption/index.jsx on lines 5..24
src/lib/components/Table/Cell/index.jsx on lines 5..24
src/lib/components/Table/Header/index.jsx on lines 5..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 87.

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

function Accordion(props) {
  const {
    children, className, as: Component, dataName, ...other
  } = props;
  const classes = classNames('c-card--accordion', className);
Severity: Major
Found in src/lib/components/Accordion/index.jsx and 9 other locations - About 2 hrs to fix
src/lib/components/Accordion/Content/index.jsx on lines 6..20
src/lib/components/Address/index.jsx on lines 5..19
src/lib/components/Card/Body/index.jsx on lines 5..19
src/lib/components/Card/Header/index.jsx on lines 5..19
src/lib/components/Highlight/index.jsx on lines 5..19
src/lib/components/Key/index.jsx on lines 5..19
src/lib/components/Loud/index.jsx on lines 5..19
src/lib/components/Mono/index.jsx on lines 5..19
src/lib/components/Quiet/index.jsx on lines 5..19

Duplicated Code

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

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

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

Tuning

This issue has a mass of 87.

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

function Address(props) {
  const {
    children, className, as: Component, dataName, ...other
  } = props;
  const classes = classNames('c-address', className);
Severity: Major
Found in src/lib/components/Address/index.jsx and 9 other locations - About 2 hrs to fix
src/lib/components/Accordion/Content/index.jsx on lines 6..20
src/lib/components/Accordion/index.jsx on lines 8..22
src/lib/components/Card/Body/index.jsx on lines 5..19
src/lib/components/Card/Header/index.jsx on lines 5..19
src/lib/components/Highlight/index.jsx on lines 5..19
src/lib/components/Key/index.jsx on lines 5..19
src/lib/components/Loud/index.jsx on lines 5..19
src/lib/components/Mono/index.jsx on lines 5..19
src/lib/components/Quiet/index.jsx on lines 5..19

Duplicated Code

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

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

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

Tuning

This issue has a mass of 87.

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