GregBrimble/gregbrimble-components

View on GitHub

Showing 38 of 39 total issues

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

  neutral: {
    "050": `#F5F7FA`,
    "100": `#E4E7EB`,
    "200": `#CBD2D9`,
    "300": `#9AA5B1`,
Severity: Major
Found in src/themes/Theme9.js and 1 other location - About 3 hrs to fix
src/themes/Theme9.js on lines 3..14

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

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

  primary: {
    "050": `#E3F8FF`,
    "100": `#B3ECFF`,
    "200": `#81DEFD`,
    "300": `#5ED0FA`,
Severity: Major
Found in src/themes/Theme9.js and 1 other location - About 3 hrs to fix
src/themes/Theme9.js on lines 15..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 106.

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

describe("Subtitle1", () => {
  it("renders properly", () => {
    const tree = renderer.create(<Subtitle1>Subtitle 1</Subtitle1>).toJSON()
    expect(tree).toMatchSnapshot()
  })
Severity: Major
Found in src/components/Typography/Subtitles/Subtitle1.test.js and 12 other locations - About 1 hr to fix
src/components/Typography/Bodies/Body1.test.js on lines 5..10
src/components/Typography/Bodies/Body2.test.js on lines 5..10
src/components/Typography/ButtonText.test.js on lines 5..10
src/components/Typography/CaptionText.test.js on lines 5..12
src/components/Typography/Headlines/H1.test.js on lines 5..10
src/components/Typography/Headlines/H2.test.js on lines 5..10
src/components/Typography/Headlines/H3.test.js on lines 5..10
src/components/Typography/Headlines/H4.test.js on lines 5..10
src/components/Typography/Headlines/H5.test.js on lines 5..10
src/components/Typography/Headlines/H6.test.js on lines 5..10
src/components/Typography/OverlineText.test.js on lines 5..12
src/components/Typography/Subtitles/Subtitle2.test.js on lines 5..10

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

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

describe("Subtitle2", () => {
  it("renders properly", () => {
    const tree = renderer.create(<Subtitle2>Subtitle 2</Subtitle2>).toJSON()
    expect(tree).toMatchSnapshot()
  })
Severity: Major
Found in src/components/Typography/Subtitles/Subtitle2.test.js and 12 other locations - About 1 hr to fix
src/components/Typography/Bodies/Body1.test.js on lines 5..10
src/components/Typography/Bodies/Body2.test.js on lines 5..10
src/components/Typography/ButtonText.test.js on lines 5..10
src/components/Typography/CaptionText.test.js on lines 5..12
src/components/Typography/Headlines/H1.test.js on lines 5..10
src/components/Typography/Headlines/H2.test.js on lines 5..10
src/components/Typography/Headlines/H3.test.js on lines 5..10
src/components/Typography/Headlines/H4.test.js on lines 5..10
src/components/Typography/Headlines/H5.test.js on lines 5..10
src/components/Typography/Headlines/H6.test.js on lines 5..10
src/components/Typography/OverlineText.test.js on lines 5..12
src/components/Typography/Subtitles/Subtitle1.test.js on lines 5..10

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

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

describe("H1", () => {
  it("renders properly", () => {
    const tree = renderer.create(<H1>Headline 1</H1>).toJSON()
    expect(tree).toMatchSnapshot()
  })
Severity: Major
Found in src/components/Typography/Headlines/H1.test.js and 12 other locations - About 1 hr to fix
src/components/Typography/Bodies/Body1.test.js on lines 5..10
src/components/Typography/Bodies/Body2.test.js on lines 5..10
src/components/Typography/ButtonText.test.js on lines 5..10
src/components/Typography/CaptionText.test.js on lines 5..12
src/components/Typography/Headlines/H2.test.js on lines 5..10
src/components/Typography/Headlines/H3.test.js on lines 5..10
src/components/Typography/Headlines/H4.test.js on lines 5..10
src/components/Typography/Headlines/H5.test.js on lines 5..10
src/components/Typography/Headlines/H6.test.js on lines 5..10
src/components/Typography/OverlineText.test.js on lines 5..12
src/components/Typography/Subtitles/Subtitle1.test.js on lines 5..10
src/components/Typography/Subtitles/Subtitle2.test.js on lines 5..10

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

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

describe("Body2", () => {
  it("renders properly", () => {
    const tree = renderer.create(<Body2>Body 2</Body2>).toJSON()
    expect(tree).toMatchSnapshot()
  })
Severity: Major
Found in src/components/Typography/Bodies/Body2.test.js and 12 other locations - About 1 hr to fix
src/components/Typography/Bodies/Body1.test.js on lines 5..10
src/components/Typography/ButtonText.test.js on lines 5..10
src/components/Typography/CaptionText.test.js on lines 5..12
src/components/Typography/Headlines/H1.test.js on lines 5..10
src/components/Typography/Headlines/H2.test.js on lines 5..10
src/components/Typography/Headlines/H3.test.js on lines 5..10
src/components/Typography/Headlines/H4.test.js on lines 5..10
src/components/Typography/Headlines/H5.test.js on lines 5..10
src/components/Typography/Headlines/H6.test.js on lines 5..10
src/components/Typography/OverlineText.test.js on lines 5..12
src/components/Typography/Subtitles/Subtitle1.test.js on lines 5..10
src/components/Typography/Subtitles/Subtitle2.test.js on lines 5..10

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

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

describe("H6", () => {
  it("renders properly", () => {
    const tree = renderer.create(<H6>Headline 1</H6>).toJSON()
    expect(tree).toMatchSnapshot()
  })
Severity: Major
Found in src/components/Typography/Headlines/H6.test.js and 12 other locations - About 1 hr to fix
src/components/Typography/Bodies/Body1.test.js on lines 5..10
src/components/Typography/Bodies/Body2.test.js on lines 5..10
src/components/Typography/ButtonText.test.js on lines 5..10
src/components/Typography/CaptionText.test.js on lines 5..12
src/components/Typography/Headlines/H1.test.js on lines 5..10
src/components/Typography/Headlines/H2.test.js on lines 5..10
src/components/Typography/Headlines/H3.test.js on lines 5..10
src/components/Typography/Headlines/H4.test.js on lines 5..10
src/components/Typography/Headlines/H5.test.js on lines 5..10
src/components/Typography/OverlineText.test.js on lines 5..12
src/components/Typography/Subtitles/Subtitle1.test.js on lines 5..10
src/components/Typography/Subtitles/Subtitle2.test.js on lines 5..10

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

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

describe("H3", () => {
  it("renders properly", () => {
    const tree = renderer.create(<H3>Headline 1</H3>).toJSON()
    expect(tree).toMatchSnapshot()
  })
Severity: Major
Found in src/components/Typography/Headlines/H3.test.js and 12 other locations - About 1 hr to fix
src/components/Typography/Bodies/Body1.test.js on lines 5..10
src/components/Typography/Bodies/Body2.test.js on lines 5..10
src/components/Typography/ButtonText.test.js on lines 5..10
src/components/Typography/CaptionText.test.js on lines 5..12
src/components/Typography/Headlines/H1.test.js on lines 5..10
src/components/Typography/Headlines/H2.test.js on lines 5..10
src/components/Typography/Headlines/H4.test.js on lines 5..10
src/components/Typography/Headlines/H5.test.js on lines 5..10
src/components/Typography/Headlines/H6.test.js on lines 5..10
src/components/Typography/OverlineText.test.js on lines 5..12
src/components/Typography/Subtitles/Subtitle1.test.js on lines 5..10
src/components/Typography/Subtitles/Subtitle2.test.js on lines 5..10

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

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

describe("H5", () => {
  it("renders properly", () => {
    const tree = renderer.create(<H5>Headline 1</H5>).toJSON()
    expect(tree).toMatchSnapshot()
  })
Severity: Major
Found in src/components/Typography/Headlines/H5.test.js and 12 other locations - About 1 hr to fix
src/components/Typography/Bodies/Body1.test.js on lines 5..10
src/components/Typography/Bodies/Body2.test.js on lines 5..10
src/components/Typography/ButtonText.test.js on lines 5..10
src/components/Typography/CaptionText.test.js on lines 5..12
src/components/Typography/Headlines/H1.test.js on lines 5..10
src/components/Typography/Headlines/H2.test.js on lines 5..10
src/components/Typography/Headlines/H3.test.js on lines 5..10
src/components/Typography/Headlines/H4.test.js on lines 5..10
src/components/Typography/Headlines/H6.test.js on lines 5..10
src/components/Typography/OverlineText.test.js on lines 5..12
src/components/Typography/Subtitles/Subtitle1.test.js on lines 5..10
src/components/Typography/Subtitles/Subtitle2.test.js on lines 5..10

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

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

describe("OverlineText", () => {
  it("renders properly", () => {
    const tree = renderer
      .create(<OverlineText>Overline Text</OverlineText>)
      .toJSON()
Severity: Major
Found in src/components/Typography/OverlineText.test.js and 12 other locations - About 1 hr to fix
src/components/Typography/Bodies/Body1.test.js on lines 5..10
src/components/Typography/Bodies/Body2.test.js on lines 5..10
src/components/Typography/ButtonText.test.js on lines 5..10
src/components/Typography/CaptionText.test.js on lines 5..12
src/components/Typography/Headlines/H1.test.js on lines 5..10
src/components/Typography/Headlines/H2.test.js on lines 5..10
src/components/Typography/Headlines/H3.test.js on lines 5..10
src/components/Typography/Headlines/H4.test.js on lines 5..10
src/components/Typography/Headlines/H5.test.js on lines 5..10
src/components/Typography/Headlines/H6.test.js on lines 5..10
src/components/Typography/Subtitles/Subtitle1.test.js on lines 5..10
src/components/Typography/Subtitles/Subtitle2.test.js on lines 5..10

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

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

describe("Body1", () => {
  it("renders properly", () => {
    const tree = renderer.create(<Body1>Body 1</Body1>).toJSON()
    expect(tree).toMatchSnapshot()
  })
Severity: Major
Found in src/components/Typography/Bodies/Body1.test.js and 12 other locations - About 1 hr to fix
src/components/Typography/Bodies/Body2.test.js on lines 5..10
src/components/Typography/ButtonText.test.js on lines 5..10
src/components/Typography/CaptionText.test.js on lines 5..12
src/components/Typography/Headlines/H1.test.js on lines 5..10
src/components/Typography/Headlines/H2.test.js on lines 5..10
src/components/Typography/Headlines/H3.test.js on lines 5..10
src/components/Typography/Headlines/H4.test.js on lines 5..10
src/components/Typography/Headlines/H5.test.js on lines 5..10
src/components/Typography/Headlines/H6.test.js on lines 5..10
src/components/Typography/OverlineText.test.js on lines 5..12
src/components/Typography/Subtitles/Subtitle1.test.js on lines 5..10
src/components/Typography/Subtitles/Subtitle2.test.js on lines 5..10

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

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

describe("H1", () => {
  it("renders properly", () => {
    const tree = renderer.create(<H2>Headline 2</H2>).toJSON()
    expect(tree).toMatchSnapshot()
  })
Severity: Major
Found in src/components/Typography/Headlines/H2.test.js and 12 other locations - About 1 hr to fix
src/components/Typography/Bodies/Body1.test.js on lines 5..10
src/components/Typography/Bodies/Body2.test.js on lines 5..10
src/components/Typography/ButtonText.test.js on lines 5..10
src/components/Typography/CaptionText.test.js on lines 5..12
src/components/Typography/Headlines/H1.test.js on lines 5..10
src/components/Typography/Headlines/H3.test.js on lines 5..10
src/components/Typography/Headlines/H4.test.js on lines 5..10
src/components/Typography/Headlines/H5.test.js on lines 5..10
src/components/Typography/Headlines/H6.test.js on lines 5..10
src/components/Typography/OverlineText.test.js on lines 5..12
src/components/Typography/Subtitles/Subtitle1.test.js on lines 5..10
src/components/Typography/Subtitles/Subtitle2.test.js on lines 5..10

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

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

describe("H4", () => {
  it("renders properly", () => {
    const tree = renderer.create(<H4>Headline 1</H4>).toJSON()
    expect(tree).toMatchSnapshot()
  })
Severity: Major
Found in src/components/Typography/Headlines/H4.test.js and 12 other locations - About 1 hr to fix
src/components/Typography/Bodies/Body1.test.js on lines 5..10
src/components/Typography/Bodies/Body2.test.js on lines 5..10
src/components/Typography/ButtonText.test.js on lines 5..10
src/components/Typography/CaptionText.test.js on lines 5..12
src/components/Typography/Headlines/H1.test.js on lines 5..10
src/components/Typography/Headlines/H2.test.js on lines 5..10
src/components/Typography/Headlines/H3.test.js on lines 5..10
src/components/Typography/Headlines/H5.test.js on lines 5..10
src/components/Typography/Headlines/H6.test.js on lines 5..10
src/components/Typography/OverlineText.test.js on lines 5..12
src/components/Typography/Subtitles/Subtitle1.test.js on lines 5..10
src/components/Typography/Subtitles/Subtitle2.test.js on lines 5..10

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

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

describe("CaptionText", () => {
  it("renders properly", () => {
    const tree = renderer
      .create(<CaptionText>Caption Text</CaptionText>)
      .toJSON()
Severity: Major
Found in src/components/Typography/CaptionText.test.js and 12 other locations - About 1 hr to fix
src/components/Typography/Bodies/Body1.test.js on lines 5..10
src/components/Typography/Bodies/Body2.test.js on lines 5..10
src/components/Typography/ButtonText.test.js on lines 5..10
src/components/Typography/Headlines/H1.test.js on lines 5..10
src/components/Typography/Headlines/H2.test.js on lines 5..10
src/components/Typography/Headlines/H3.test.js on lines 5..10
src/components/Typography/Headlines/H4.test.js on lines 5..10
src/components/Typography/Headlines/H5.test.js on lines 5..10
src/components/Typography/Headlines/H6.test.js on lines 5..10
src/components/Typography/OverlineText.test.js on lines 5..12
src/components/Typography/Subtitles/Subtitle1.test.js on lines 5..10
src/components/Typography/Subtitles/Subtitle2.test.js on lines 5..10

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

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

describe("ButtonText", () => {
  it("renders properly", () => {
    const tree = renderer.create(<ButtonText>Button Text</ButtonText>).toJSON()
    expect(tree).toMatchSnapshot()
  })
Severity: Major
Found in src/components/Typography/ButtonText.test.js and 12 other locations - About 1 hr to fix
src/components/Typography/Bodies/Body1.test.js on lines 5..10
src/components/Typography/Bodies/Body2.test.js on lines 5..10
src/components/Typography/CaptionText.test.js on lines 5..12
src/components/Typography/Headlines/H1.test.js on lines 5..10
src/components/Typography/Headlines/H2.test.js on lines 5..10
src/components/Typography/Headlines/H3.test.js on lines 5..10
src/components/Typography/Headlines/H4.test.js on lines 5..10
src/components/Typography/Headlines/H5.test.js on lines 5..10
src/components/Typography/Headlines/H6.test.js on lines 5..10
src/components/Typography/OverlineText.test.js on lines 5..12
src/components/Typography/Subtitles/Subtitle1.test.js on lines 5..10
src/components/Typography/Subtitles/Subtitle2.test.js on lines 5..10

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

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

describe("HR", () => {
  it("renders properly", () => {
    const tree = renderer.create(<HR />).toJSON()
    expect(tree).toMatchSnapshot()
  })
Severity: Major
Found in src/components/Miscellaneous/HR.test.js and 2 other locations - About 1 hr to fix
src/fonts/index.test.js on lines 5..10
src/global/styles.test.js on lines 5..10

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

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

describe("Fonts", () => {
  it("renders properly", () => {
    const tree = renderer.create(<Fonts />).toJSON()
    expect(tree).toMatchSnapshot()
  })
Severity: Major
Found in src/fonts/index.test.js and 2 other locations - About 1 hr to fix
src/components/Miscellaneous/HR.test.js on lines 5..10
src/global/styles.test.js on lines 5..10

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

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

describe("GlobalStyle", () => {
  it("renders properly", () => {
    const tree = renderer.create(<GlobalStyle />).toJSON()
    expect(tree).toMatchSnapshot()
  })
Severity: Major
Found in src/global/styles.test.js and 2 other locations - About 1 hr to fix
src/components/Miscellaneous/HR.test.js on lines 5..10
src/fonts/index.test.js on lines 5..10

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

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 const Body = styled.p`
  color: ${props => props.theme.neutral[`900`]};
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
`
Severity: Minor
Found in src/components/Typography/Bodies/shared.js and 2 other locations - About 40 mins to fix
src/components/Typography/Headlines/shared.js on lines 4..8
src/components/Typography/Subtitles/shared.js on lines 4..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 48.

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

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

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

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

Refactorings

Further Reading

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

export const Headline = styled.h1`
  color: ${props => props.theme.neutral[`900`]};
  font-family: Lora, serif;
  font-weight: 400;
`
Severity: Minor
Found in src/components/Typography/Headlines/shared.js and 2 other locations - About 40 mins to fix
src/components/Typography/Bodies/shared.js on lines 5..9
src/components/Typography/Subtitles/shared.js on lines 4..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 48.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language