fabasoad/business-card

View on GitHub

Showing 83 of 87 total issues

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

test('should render FooterMain correctly', () => {
  const { container } = render(<FooterMain />)
  testFooterMain(container.querySelector('div.footer'))
})
Severity: Major
Found in src/__tests__/components/Footer/FooterMain.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/About/AboutMain.spec.tsx on lines 7..10
src/__tests__/components/BackToTopButton.spec.tsx on lines 9..12
src/__tests__/components/Badges.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterContacts.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterEmail.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterInfo.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterLocation.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterSocial.spec.tsx on lines 8..11
src/__tests__/components/Header.spec.tsx on lines 8..11
src/__tests__/components/Languages/LanguagesMain.spec.tsx on lines 8..11
src/__tests__/components/Menu/MenuMain.spec.tsx on lines 8..11
src/__tests__/components/Portfolio/PortfolioMain.spec.tsx on lines 8..11
src/__tests__/components/Resume.spec.tsx on lines 8..11
src/__tests__/components/Skills.spec.tsx on lines 8..11

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

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

test('should render FooterContacts correctly', () => {
  const { container } = render(<FooterContacts />)
  testFooterContacts(container.querySelector('div.footer-contacts'))
})
Severity: Major
Found in src/__tests__/components/Footer/FooterContacts.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/About/AboutMain.spec.tsx on lines 7..10
src/__tests__/components/BackToTopButton.spec.tsx on lines 9..12
src/__tests__/components/Badges.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterEmail.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterInfo.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterLocation.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterMain.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterSocial.spec.tsx on lines 8..11
src/__tests__/components/Header.spec.tsx on lines 8..11
src/__tests__/components/Languages/LanguagesMain.spec.tsx on lines 8..11
src/__tests__/components/Menu/MenuMain.spec.tsx on lines 8..11
src/__tests__/components/Portfolio/PortfolioMain.spec.tsx on lines 8..11
src/__tests__/components/Resume.spec.tsx on lines 8..11
src/__tests__/components/Skills.spec.tsx on lines 8..11

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

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

test('should render Skills correctly', () => {
  const { container } = render(<Skills />)
  testSkills(container.querySelector('div#skills'))
})
Severity: Major
Found in src/__tests__/components/Skills.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/About/AboutMain.spec.tsx on lines 7..10
src/__tests__/components/BackToTopButton.spec.tsx on lines 9..12
src/__tests__/components/Badges.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterContacts.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterEmail.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterInfo.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterLocation.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterMain.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterSocial.spec.tsx on lines 8..11
src/__tests__/components/Header.spec.tsx on lines 8..11
src/__tests__/components/Languages/LanguagesMain.spec.tsx on lines 8..11
src/__tests__/components/Menu/MenuMain.spec.tsx on lines 8..11
src/__tests__/components/Portfolio/PortfolioMain.spec.tsx on lines 8..11
src/__tests__/components/Resume.spec.tsx on lines 8..11

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

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

test('should render Header correctly', () => {
  const { container } = render(<Header />)
  testHeader(container.querySelector('header#header'))
})
Severity: Major
Found in src/__tests__/components/Header.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/About/AboutMain.spec.tsx on lines 7..10
src/__tests__/components/BackToTopButton.spec.tsx on lines 9..12
src/__tests__/components/Badges.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterContacts.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterEmail.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterInfo.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterLocation.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterMain.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterSocial.spec.tsx on lines 8..11
src/__tests__/components/Languages/LanguagesMain.spec.tsx on lines 8..11
src/__tests__/components/Menu/MenuMain.spec.tsx on lines 8..11
src/__tests__/components/Portfolio/PortfolioMain.spec.tsx on lines 8..11
src/__tests__/components/Resume.spec.tsx on lines 8..11
src/__tests__/components/Skills.spec.tsx on lines 8..11

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

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

test('should render FooterEmail correctly', () => {
  const { container } = render(<FooterEmail/>)
  testFooterEmail(container.querySelector('div'))
})
Severity: Major
Found in src/__tests__/components/Footer/FooterEmail.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/About/AboutMain.spec.tsx on lines 7..10
src/__tests__/components/BackToTopButton.spec.tsx on lines 9..12
src/__tests__/components/Badges.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterContacts.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterInfo.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterLocation.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterMain.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterSocial.spec.tsx on lines 8..11
src/__tests__/components/Header.spec.tsx on lines 8..11
src/__tests__/components/Languages/LanguagesMain.spec.tsx on lines 8..11
src/__tests__/components/Menu/MenuMain.spec.tsx on lines 8..11
src/__tests__/components/Portfolio/PortfolioMain.spec.tsx on lines 8..11
src/__tests__/components/Resume.spec.tsx on lines 8..11
src/__tests__/components/Skills.spec.tsx on lines 8..11

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

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

test('should render FooterLocation correctly', () => {
  const { container } = render(<FooterLocation />)
  testFooterLocation(container.querySelector('div'))
})
Severity: Major
Found in src/__tests__/components/Footer/FooterLocation.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/About/AboutMain.spec.tsx on lines 7..10
src/__tests__/components/BackToTopButton.spec.tsx on lines 9..12
src/__tests__/components/Badges.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterContacts.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterEmail.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterInfo.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterMain.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterSocial.spec.tsx on lines 8..11
src/__tests__/components/Header.spec.tsx on lines 8..11
src/__tests__/components/Languages/LanguagesMain.spec.tsx on lines 8..11
src/__tests__/components/Menu/MenuMain.spec.tsx on lines 8..11
src/__tests__/components/Portfolio/PortfolioMain.spec.tsx on lines 8..11
src/__tests__/components/Resume.spec.tsx on lines 8..11
src/__tests__/components/Skills.spec.tsx on lines 8..11

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

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

test('should render Resume correctly', () => {
  const { container } = render(<Resume />)
  testResume(container.querySelector('div#resume'))
})
Severity: Major
Found in src/__tests__/components/Resume.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/About/AboutMain.spec.tsx on lines 7..10
src/__tests__/components/BackToTopButton.spec.tsx on lines 9..12
src/__tests__/components/Badges.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterContacts.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterEmail.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterInfo.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterLocation.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterMain.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterSocial.spec.tsx on lines 8..11
src/__tests__/components/Header.spec.tsx on lines 8..11
src/__tests__/components/Languages/LanguagesMain.spec.tsx on lines 8..11
src/__tests__/components/Menu/MenuMain.spec.tsx on lines 8..11
src/__tests__/components/Portfolio/PortfolioMain.spec.tsx on lines 8..11
src/__tests__/components/Skills.spec.tsx on lines 8..11

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

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

test('should render Badges correctly', () => {
  const { container } = render(<Badges/>)
  testBadges(container.querySelector('div#badges'))
})
Severity: Major
Found in src/__tests__/components/Badges.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/About/AboutMain.spec.tsx on lines 7..10
src/__tests__/components/BackToTopButton.spec.tsx on lines 9..12
src/__tests__/components/Footer/FooterContacts.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterEmail.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterInfo.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterLocation.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterMain.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterSocial.spec.tsx on lines 8..11
src/__tests__/components/Header.spec.tsx on lines 8..11
src/__tests__/components/Languages/LanguagesMain.spec.tsx on lines 8..11
src/__tests__/components/Menu/MenuMain.spec.tsx on lines 8..11
src/__tests__/components/Portfolio/PortfolioMain.spec.tsx on lines 8..11
src/__tests__/components/Resume.spec.tsx on lines 8..11
src/__tests__/components/Skills.spec.tsx on lines 8..11

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

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

  test('should render BackToTopButton correctly', () => {
    const { container } = render(<BackToTopButton />)
    testBackToTopButton(container.querySelector('a'))
  })
Severity: Major
Found in src/__tests__/components/BackToTopButton.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/About/AboutMain.spec.tsx on lines 7..10
src/__tests__/components/Badges.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterContacts.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterEmail.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterInfo.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterLocation.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterMain.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterSocial.spec.tsx on lines 8..11
src/__tests__/components/Header.spec.tsx on lines 8..11
src/__tests__/components/Languages/LanguagesMain.spec.tsx on lines 8..11
src/__tests__/components/Menu/MenuMain.spec.tsx on lines 8..11
src/__tests__/components/Portfolio/PortfolioMain.spec.tsx on lines 8..11
src/__tests__/components/Resume.spec.tsx on lines 8..11
src/__tests__/components/Skills.spec.tsx on lines 8..11

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

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

test('should render AboutMain correctly', () => {
  const { container } = render(<AboutMain />)
  testAboutMain(container.querySelector('div#about'))
})
Severity: Major
Found in src/__tests__/components/About/AboutMain.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/BackToTopButton.spec.tsx on lines 9..12
src/__tests__/components/Badges.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterContacts.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterEmail.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterInfo.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterLocation.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterMain.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterSocial.spec.tsx on lines 8..11
src/__tests__/components/Header.spec.tsx on lines 8..11
src/__tests__/components/Languages/LanguagesMain.spec.tsx on lines 8..11
src/__tests__/components/Menu/MenuMain.spec.tsx on lines 8..11
src/__tests__/components/Portfolio/PortfolioMain.spec.tsx on lines 8..11
src/__tests__/components/Resume.spec.tsx on lines 8..11
src/__tests__/components/Skills.spec.tsx on lines 8..11

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

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

test('should render FooterSocial correctly', () => {
  const { container } = render(<FooterSocial/>)
  testFooterSocial(container.querySelector('div'))
})
Severity: Major
Found in src/__tests__/components/Footer/FooterSocial.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/About/AboutMain.spec.tsx on lines 7..10
src/__tests__/components/BackToTopButton.spec.tsx on lines 9..12
src/__tests__/components/Badges.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterContacts.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterEmail.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterInfo.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterLocation.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterMain.spec.tsx on lines 8..11
src/__tests__/components/Header.spec.tsx on lines 8..11
src/__tests__/components/Languages/LanguagesMain.spec.tsx on lines 8..11
src/__tests__/components/Menu/MenuMain.spec.tsx on lines 8..11
src/__tests__/components/Portfolio/PortfolioMain.spec.tsx on lines 8..11
src/__tests__/components/Resume.spec.tsx on lines 8..11
src/__tests__/components/Skills.spec.tsx on lines 8..11

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

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

test('should render FooterInfo correctly', () => {
  const { container } = render(<FooterInfo />)
  testFooterInfo(container.querySelector('div'))
})
Severity: Major
Found in src/__tests__/components/Footer/FooterInfo.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/About/AboutMain.spec.tsx on lines 7..10
src/__tests__/components/BackToTopButton.spec.tsx on lines 9..12
src/__tests__/components/Badges.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterContacts.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterEmail.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterLocation.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterMain.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterSocial.spec.tsx on lines 8..11
src/__tests__/components/Header.spec.tsx on lines 8..11
src/__tests__/components/Languages/LanguagesMain.spec.tsx on lines 8..11
src/__tests__/components/Menu/MenuMain.spec.tsx on lines 8..11
src/__tests__/components/Portfolio/PortfolioMain.spec.tsx on lines 8..11
src/__tests__/components/Resume.spec.tsx on lines 8..11
src/__tests__/components/Skills.spec.tsx on lines 8..11

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

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

  test('should render MenuMain correctly', () => {
    const { container } = render(<MenuMain/>)
    testMenuMain(container.querySelector('div#nav'))
  })
Severity: Major
Found in src/__tests__/components/Menu/MenuMain.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/About/AboutMain.spec.tsx on lines 7..10
src/__tests__/components/BackToTopButton.spec.tsx on lines 9..12
src/__tests__/components/Badges.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterContacts.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterEmail.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterInfo.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterLocation.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterMain.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterSocial.spec.tsx on lines 8..11
src/__tests__/components/Header.spec.tsx on lines 8..11
src/__tests__/components/Languages/LanguagesMain.spec.tsx on lines 8..11
src/__tests__/components/Portfolio/PortfolioMain.spec.tsx on lines 8..11
src/__tests__/components/Resume.spec.tsx on lines 8..11
src/__tests__/components/Skills.spec.tsx on lines 8..11

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

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

test('should render PortfolioMain correctly', () => {
  const { container } = render(<PortfolioMain />)
  testPortfolioMain(container.querySelector('div#portfolio'))
})
Severity: Major
Found in src/__tests__/components/Portfolio/PortfolioMain.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/About/AboutMain.spec.tsx on lines 7..10
src/__tests__/components/BackToTopButton.spec.tsx on lines 9..12
src/__tests__/components/Badges.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterContacts.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterEmail.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterInfo.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterLocation.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterMain.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterSocial.spec.tsx on lines 8..11
src/__tests__/components/Header.spec.tsx on lines 8..11
src/__tests__/components/Languages/LanguagesMain.spec.tsx on lines 8..11
src/__tests__/components/Menu/MenuMain.spec.tsx on lines 8..11
src/__tests__/components/Resume.spec.tsx on lines 8..11
src/__tests__/components/Skills.spec.tsx on lines 8..11

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

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

test('should render LanguageMain correctly', () => {
  const { container } = render(<LanguagesMain />)
  testLanguageMain(container.querySelector('div#languages'))
})
Severity: Major
Found in src/__tests__/components/Languages/LanguagesMain.spec.tsx and 14 other locations - About 50 mins to fix
src/__tests__/components/About/AboutMain.spec.tsx on lines 7..10
src/__tests__/components/BackToTopButton.spec.tsx on lines 9..12
src/__tests__/components/Badges.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterContacts.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterEmail.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterInfo.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterLocation.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterMain.spec.tsx on lines 8..11
src/__tests__/components/Footer/FooterSocial.spec.tsx on lines 8..11
src/__tests__/components/Header.spec.tsx on lines 8..11
src/__tests__/components/Menu/MenuMain.spec.tsx on lines 8..11
src/__tests__/components/Portfolio/PortfolioMain.spec.tsx on lines 8..11
src/__tests__/components/Resume.spec.tsx on lines 8..11
src/__tests__/components/Skills.spec.tsx on lines 8..11

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

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

Function testJobPeriod has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

  div: HTMLDivElement,
  locale: Locale,
  fromMonthIndex: number,
  fromYear: number,
  toMonthIndex?: number,
Severity: Minor
Found in src/__tests__/components/Experience/TestUtils.ts - About 45 mins to fix

    Function testDateDuration has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      div: HTMLDivElement,
      code: string,
      fromMonthIndex: number,
      fromYear: number,
      toMonthIndex?: number,
    Severity: Minor
    Found in src/__tests__/components/Controls/TestUtils.ts - About 45 mins to fix

      Function testDateTimeline has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        div: HTMLDivElement,
        locale: Locale,
        fromMonthIndex: number,
        fromYear: number,
        toMonthIndex?: number,
      Severity: Minor
      Found in src/__tests__/components/Controls/TestUtils.ts - About 45 mins to fix

        Function testPortfolioItem has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          div: HTMLDivElement,
          url: string,
          name: string,
          title: string,
          subtitle: string,
        Severity: Minor
        Found in src/__tests__/components/Portfolio/TestUtils.ts - About 45 mins to fix

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

            }, {
              title: 'business-card-experience-job-lohika-1-title',
              location: 'business-card-location-odesa',
              company: 'Lohika',
              technologies: ['csharp', 'windowsForms', 'svn', 'visualStudio', 'hpeAlm', 'jenkins'],
          Severity: Minor
          Found in src/__tests__/components/Experience/TestUtils.ts and 1 other location - About 40 mins to fix
          src/__tests__/components/Experience/TestUtils.ts on lines 59..68

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

          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