SymphonyPlatformSolutions/symphony-ui-toolkit

View on GitHub

Showing 198 of 262 total issues

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

module.exports = {
    // Specify custom Selenium Grid url (see usage below)
    // In most cases you don't need this option
    gridUrl: 'http://localhost:4444/wd/hub',
    storybookUrl: 'http://localhost:6006',
Severity: Major
Found in packages/styles/.creevey/config.js and 3 other locations - About 5 hrs to fix
packages/styles/.creevey/config_condensed.js on lines 3..29
packages/styles/.creevey/config_darkmode.js on lines 3..29
packages/styles/.creevey/config_darkmode_condensed.js on lines 3..29

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

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

module.exports = {
    // Specify custom Selenium Grid url (see usage below)
    // In most cases you don't need this option
    gridUrl: 'http://localhost:4444/wd/hub',
    storybookUrl: 'http://localhost:6006',
Severity: Major
Found in packages/styles/.creevey/config_darkmode_condensed.js and 3 other locations - About 5 hrs to fix
packages/styles/.creevey/config.js on lines 3..29
packages/styles/.creevey/config_condensed.js on lines 3..29
packages/styles/.creevey/config_darkmode.js on lines 3..29

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

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

module.exports = {
    // Specify custom Selenium Grid url (see usage below)
    // In most cases you don't need this option
    gridUrl: 'http://localhost:4444/wd/hub',
    storybookUrl: 'http://localhost:6006',
Severity: Major
Found in packages/styles/.creevey/config_darkmode.js and 3 other locations - About 5 hrs to fix
packages/styles/.creevey/config.js on lines 3..29
packages/styles/.creevey/config_condensed.js on lines 3..29
packages/styles/.creevey/config_darkmode_condensed.js on lines 3..29

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

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

module.exports = {
    // Specify custom Selenium Grid url (see usage below)
    // In most cases you don't need this option
    gridUrl: 'http://localhost:4444/wd/hub',
    storybookUrl: 'http://localhost:6006',
Severity: Major
Found in packages/styles/.creevey/config_condensed.js and 3 other locations - About 5 hrs to fix
packages/styles/.creevey/config.js on lines 3..29
packages/styles/.creevey/config_darkmode.js on lines 3..29
packages/styles/.creevey/config_darkmode_condensed.js on lines 3..29

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

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

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

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

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

Refactorings

Further Reading

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

export function matchDayMin(day: Date, matcher: Modifier | Modifier[]): boolean {
  if (!matcher) return false;
  let matchers: Modifier[];

  if (Array.isArray(matcher)) {
packages/components/src/components/date-picker/utils/matchDayUtils.tsx on lines 101..117

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

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

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

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

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

Refactorings

Further Reading

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

export function matchDayMax(day: Date, matcher: Modifier | Modifier[]): boolean {
  if (!matcher) return false;
  let matchers: Modifier[];

  if (Array.isArray(matcher)) {
packages/components/src/components/date-picker/utils/matchDayUtils.tsx on lines 80..96

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

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

const SvgBell = (props: SVGProps<SVGSVGElement>) => (
  <svg
    data-testid="ICON_BELL"
    width="1em"
    height="1em"
Severity: Major
Found in packages/components/src/components/icons/Bell.tsx and 2 other locations - About 3 hrs to fix
packages/components/src/components/icons/AnimalsAndNature.tsx on lines 3..15
packages/components/src/components/icons/Signals.tsx on lines 3..15

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

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

const SvgAnimalsAndNature = (props: SVGProps<SVGSVGElement>) => (
  <svg
    data-testid="ICON_ANIMALS-AND-NATURE"
    width="1em"
    height="1em"
packages/components/src/components/icons/Bell.tsx on lines 3..15
packages/components/src/components/icons/Signals.tsx on lines 3..15

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

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

const SvgSignals = (props: SVGProps<SVGSVGElement>) => (
  <svg
    data-testid="ICON_SIGNALS"
    width="1em"
    height="1em"
Severity: Major
Found in packages/components/src/components/icons/Signals.tsx and 2 other locations - About 3 hrs to fix
packages/components/src/components/icons/AnimalsAndNature.tsx on lines 3..15
packages/components/src/components/icons/Bell.tsx on lines 3..15

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

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

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

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

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

Refactorings

Further Reading

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

const TextField: React.FC<
  TextComponentProps &
    React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>
> = React.forwardRef((props, ref) => {
  return <TextComponent type={Types.TEXTFIELD} {...props} ref={ref} />;
Severity: Major
Found in packages/components/src/components/input/TextField.tsx and 1 other location - About 2 hrs to fix
packages/components/src/components/input/TextArea.tsx on lines 9..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 88.

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

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

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

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

Refactorings

Further Reading

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

const TextArea: React.FC<
  TextComponentProps &
    React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>
> = React.forwardRef((props, ref) => {
  return <TextComponent type={Types.TEXTAREA} {...props} ref={ref} />;
Severity: Major
Found in packages/components/src/components/input/TextArea.tsx and 1 other location - About 2 hrs to fix
packages/components/src/components/input/TextField.tsx on lines 9..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 88.

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

const SvgAudio = (props: SVGProps<SVGSVGElement>) => (
  <svg
    data-testid="ICON_AUDIO"
    width="1em"
    height="1em"
Severity: Major
Found in packages/components/src/components/icons/Audio.tsx and 38 other locations - About 2 hrs to fix
packages/components/src/components/icons/Accent.tsx on lines 3..14
packages/components/src/components/icons/AlertRound.tsx on lines 3..14
packages/components/src/components/icons/AlertTriangle.tsx on lines 3..14
packages/components/src/components/icons/App.tsx on lines 3..14
packages/components/src/components/icons/Archive.tsx on lines 3..14
packages/components/src/components/icons/Bot.tsx on lines 3..14
packages/components/src/components/icons/CheckRound.tsx on lines 3..14
packages/components/src/components/icons/ChevronLeft.tsx on lines 3..14
packages/components/src/components/icons/ChevronRight.tsx on lines 3..14
packages/components/src/components/icons/Copy.tsx on lines 3..14
packages/components/src/components/icons/CrossRound.tsx on lines 3..14
packages/components/src/components/icons/Delivered1.tsx on lines 3..14
packages/components/src/components/icons/DocumentSharing.tsx on lines 3..14
packages/components/src/components/icons/Emoticon.tsx on lines 3..14
packages/components/src/components/icons/FoodAndDrink.tsx on lines 3..14
packages/components/src/components/icons/Help.tsx on lines 3..14
packages/components/src/components/icons/InfoRound.tsx on lines 3..14
packages/components/src/components/icons/Location.tsx on lines 3..14
packages/components/src/components/icons/MicOn.tsx on lines 3..14
packages/components/src/components/icons/MicOutline.tsx on lines 3..14
packages/components/src/components/icons/MinusRound.tsx on lines 3..14
packages/components/src/components/icons/Network.tsx on lines 3..14
packages/components/src/components/icons/NoSignal.tsx on lines 3..14
packages/components/src/components/icons/Picture.tsx on lines 3..14
packages/components/src/components/icons/PlusRound.tsx on lines 3..14
packages/components/src/components/icons/PopIn.tsx on lines 3..14
packages/components/src/components/icons/PopOut.tsx on lines 3..14
packages/components/src/components/icons/Print.tsx on lines 3..14
packages/components/src/components/icons/Read.tsx on lines 3..14
packages/components/src/components/icons/Recent.tsx on lines 3..14
packages/components/src/components/icons/ReplyAll.tsx on lines 3..14
packages/components/src/components/icons/Reveal.tsx on lines 3..14
packages/components/src/components/icons/ScreenShare.tsx on lines 3..14
packages/components/src/components/icons/Searchmore.tsx on lines 3..14
packages/components/src/components/icons/Share.tsx on lines 3..14
packages/components/src/components/icons/SmileysAndPeople.tsx on lines 3..14
packages/components/src/components/icons/Spam.tsx on lines 3..14
packages/components/src/components/icons/Unlock.tsx 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 83.

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

const SvgMicOn = (props: SVGProps<SVGSVGElement>) => (
  <svg
    data-testid="ICON_MIC-ON"
    width="1em"
    height="1em"
Severity: Major
Found in packages/components/src/components/icons/MicOn.tsx and 38 other locations - About 2 hrs to fix
packages/components/src/components/icons/Accent.tsx on lines 3..14
packages/components/src/components/icons/AlertRound.tsx on lines 3..14
packages/components/src/components/icons/AlertTriangle.tsx on lines 3..14
packages/components/src/components/icons/App.tsx on lines 3..14
packages/components/src/components/icons/Archive.tsx on lines 3..14
packages/components/src/components/icons/Audio.tsx on lines 3..14
packages/components/src/components/icons/Bot.tsx on lines 3..14
packages/components/src/components/icons/CheckRound.tsx on lines 3..14
packages/components/src/components/icons/ChevronLeft.tsx on lines 3..14
packages/components/src/components/icons/ChevronRight.tsx on lines 3..14
packages/components/src/components/icons/Copy.tsx on lines 3..14
packages/components/src/components/icons/CrossRound.tsx on lines 3..14
packages/components/src/components/icons/Delivered1.tsx on lines 3..14
packages/components/src/components/icons/DocumentSharing.tsx on lines 3..14
packages/components/src/components/icons/Emoticon.tsx on lines 3..14
packages/components/src/components/icons/FoodAndDrink.tsx on lines 3..14
packages/components/src/components/icons/Help.tsx on lines 3..14
packages/components/src/components/icons/InfoRound.tsx on lines 3..14
packages/components/src/components/icons/Location.tsx on lines 3..14
packages/components/src/components/icons/MicOutline.tsx on lines 3..14
packages/components/src/components/icons/MinusRound.tsx on lines 3..14
packages/components/src/components/icons/Network.tsx on lines 3..14
packages/components/src/components/icons/NoSignal.tsx on lines 3..14
packages/components/src/components/icons/Picture.tsx on lines 3..14
packages/components/src/components/icons/PlusRound.tsx on lines 3..14
packages/components/src/components/icons/PopIn.tsx on lines 3..14
packages/components/src/components/icons/PopOut.tsx on lines 3..14
packages/components/src/components/icons/Print.tsx on lines 3..14
packages/components/src/components/icons/Read.tsx on lines 3..14
packages/components/src/components/icons/Recent.tsx on lines 3..14
packages/components/src/components/icons/ReplyAll.tsx on lines 3..14
packages/components/src/components/icons/Reveal.tsx on lines 3..14
packages/components/src/components/icons/ScreenShare.tsx on lines 3..14
packages/components/src/components/icons/Searchmore.tsx on lines 3..14
packages/components/src/components/icons/Share.tsx on lines 3..14
packages/components/src/components/icons/SmileysAndPeople.tsx on lines 3..14
packages/components/src/components/icons/Spam.tsx on lines 3..14
packages/components/src/components/icons/Unlock.tsx 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 83.

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

const SvgCrossRound = (props: SVGProps<SVGSVGElement>) => (
  <svg
    data-testid="ICON_CROSS-ROUND"
    width="1em"
    height="1em"
Severity: Major
Found in packages/components/src/components/icons/CrossRound.tsx and 38 other locations - About 2 hrs to fix
packages/components/src/components/icons/Accent.tsx on lines 3..14
packages/components/src/components/icons/AlertRound.tsx on lines 3..14
packages/components/src/components/icons/AlertTriangle.tsx on lines 3..14
packages/components/src/components/icons/App.tsx on lines 3..14
packages/components/src/components/icons/Archive.tsx on lines 3..14
packages/components/src/components/icons/Audio.tsx on lines 3..14
packages/components/src/components/icons/Bot.tsx on lines 3..14
packages/components/src/components/icons/CheckRound.tsx on lines 3..14
packages/components/src/components/icons/ChevronLeft.tsx on lines 3..14
packages/components/src/components/icons/ChevronRight.tsx on lines 3..14
packages/components/src/components/icons/Copy.tsx on lines 3..14
packages/components/src/components/icons/Delivered1.tsx on lines 3..14
packages/components/src/components/icons/DocumentSharing.tsx on lines 3..14
packages/components/src/components/icons/Emoticon.tsx on lines 3..14
packages/components/src/components/icons/FoodAndDrink.tsx on lines 3..14
packages/components/src/components/icons/Help.tsx on lines 3..14
packages/components/src/components/icons/InfoRound.tsx on lines 3..14
packages/components/src/components/icons/Location.tsx on lines 3..14
packages/components/src/components/icons/MicOn.tsx on lines 3..14
packages/components/src/components/icons/MicOutline.tsx on lines 3..14
packages/components/src/components/icons/MinusRound.tsx on lines 3..14
packages/components/src/components/icons/Network.tsx on lines 3..14
packages/components/src/components/icons/NoSignal.tsx on lines 3..14
packages/components/src/components/icons/Picture.tsx on lines 3..14
packages/components/src/components/icons/PlusRound.tsx on lines 3..14
packages/components/src/components/icons/PopIn.tsx on lines 3..14
packages/components/src/components/icons/PopOut.tsx on lines 3..14
packages/components/src/components/icons/Print.tsx on lines 3..14
packages/components/src/components/icons/Read.tsx on lines 3..14
packages/components/src/components/icons/Recent.tsx on lines 3..14
packages/components/src/components/icons/ReplyAll.tsx on lines 3..14
packages/components/src/components/icons/Reveal.tsx on lines 3..14
packages/components/src/components/icons/ScreenShare.tsx on lines 3..14
packages/components/src/components/icons/Searchmore.tsx on lines 3..14
packages/components/src/components/icons/Share.tsx on lines 3..14
packages/components/src/components/icons/SmileysAndPeople.tsx on lines 3..14
packages/components/src/components/icons/Spam.tsx on lines 3..14
packages/components/src/components/icons/Unlock.tsx 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 83.

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

const SvgCheckRound = (props: SVGProps<SVGSVGElement>) => (
  <svg
    data-testid="ICON_CHECK-ROUND"
    width="1em"
    height="1em"
Severity: Major
Found in packages/components/src/components/icons/CheckRound.tsx and 38 other locations - About 2 hrs to fix
packages/components/src/components/icons/Accent.tsx on lines 3..14
packages/components/src/components/icons/AlertRound.tsx on lines 3..14
packages/components/src/components/icons/AlertTriangle.tsx on lines 3..14
packages/components/src/components/icons/App.tsx on lines 3..14
packages/components/src/components/icons/Archive.tsx on lines 3..14
packages/components/src/components/icons/Audio.tsx on lines 3..14
packages/components/src/components/icons/Bot.tsx on lines 3..14
packages/components/src/components/icons/ChevronLeft.tsx on lines 3..14
packages/components/src/components/icons/ChevronRight.tsx on lines 3..14
packages/components/src/components/icons/Copy.tsx on lines 3..14
packages/components/src/components/icons/CrossRound.tsx on lines 3..14
packages/components/src/components/icons/Delivered1.tsx on lines 3..14
packages/components/src/components/icons/DocumentSharing.tsx on lines 3..14
packages/components/src/components/icons/Emoticon.tsx on lines 3..14
packages/components/src/components/icons/FoodAndDrink.tsx on lines 3..14
packages/components/src/components/icons/Help.tsx on lines 3..14
packages/components/src/components/icons/InfoRound.tsx on lines 3..14
packages/components/src/components/icons/Location.tsx on lines 3..14
packages/components/src/components/icons/MicOn.tsx on lines 3..14
packages/components/src/components/icons/MicOutline.tsx on lines 3..14
packages/components/src/components/icons/MinusRound.tsx on lines 3..14
packages/components/src/components/icons/Network.tsx on lines 3..14
packages/components/src/components/icons/NoSignal.tsx on lines 3..14
packages/components/src/components/icons/Picture.tsx on lines 3..14
packages/components/src/components/icons/PlusRound.tsx on lines 3..14
packages/components/src/components/icons/PopIn.tsx on lines 3..14
packages/components/src/components/icons/PopOut.tsx on lines 3..14
packages/components/src/components/icons/Print.tsx on lines 3..14
packages/components/src/components/icons/Read.tsx on lines 3..14
packages/components/src/components/icons/Recent.tsx on lines 3..14
packages/components/src/components/icons/ReplyAll.tsx on lines 3..14
packages/components/src/components/icons/Reveal.tsx on lines 3..14
packages/components/src/components/icons/ScreenShare.tsx on lines 3..14
packages/components/src/components/icons/Searchmore.tsx on lines 3..14
packages/components/src/components/icons/Share.tsx on lines 3..14
packages/components/src/components/icons/SmileysAndPeople.tsx on lines 3..14
packages/components/src/components/icons/Spam.tsx on lines 3..14
packages/components/src/components/icons/Unlock.tsx 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 83.

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

const SvgFoodAndDrink = (props: SVGProps<SVGSVGElement>) => (
  <svg
    data-testid="ICON_FOOD-AND-DRINK"
    width="1em"
    height="1em"
Severity: Major
Found in packages/components/src/components/icons/FoodAndDrink.tsx and 38 other locations - About 2 hrs to fix
packages/components/src/components/icons/Accent.tsx on lines 3..14
packages/components/src/components/icons/AlertRound.tsx on lines 3..14
packages/components/src/components/icons/AlertTriangle.tsx on lines 3..14
packages/components/src/components/icons/App.tsx on lines 3..14
packages/components/src/components/icons/Archive.tsx on lines 3..14
packages/components/src/components/icons/Audio.tsx on lines 3..14
packages/components/src/components/icons/Bot.tsx on lines 3..14
packages/components/src/components/icons/CheckRound.tsx on lines 3..14
packages/components/src/components/icons/ChevronLeft.tsx on lines 3..14
packages/components/src/components/icons/ChevronRight.tsx on lines 3..14
packages/components/src/components/icons/Copy.tsx on lines 3..14
packages/components/src/components/icons/CrossRound.tsx on lines 3..14
packages/components/src/components/icons/Delivered1.tsx on lines 3..14
packages/components/src/components/icons/DocumentSharing.tsx on lines 3..14
packages/components/src/components/icons/Emoticon.tsx on lines 3..14
packages/components/src/components/icons/Help.tsx on lines 3..14
packages/components/src/components/icons/InfoRound.tsx on lines 3..14
packages/components/src/components/icons/Location.tsx on lines 3..14
packages/components/src/components/icons/MicOn.tsx on lines 3..14
packages/components/src/components/icons/MicOutline.tsx on lines 3..14
packages/components/src/components/icons/MinusRound.tsx on lines 3..14
packages/components/src/components/icons/Network.tsx on lines 3..14
packages/components/src/components/icons/NoSignal.tsx on lines 3..14
packages/components/src/components/icons/Picture.tsx on lines 3..14
packages/components/src/components/icons/PlusRound.tsx on lines 3..14
packages/components/src/components/icons/PopIn.tsx on lines 3..14
packages/components/src/components/icons/PopOut.tsx on lines 3..14
packages/components/src/components/icons/Print.tsx on lines 3..14
packages/components/src/components/icons/Read.tsx on lines 3..14
packages/components/src/components/icons/Recent.tsx on lines 3..14
packages/components/src/components/icons/ReplyAll.tsx on lines 3..14
packages/components/src/components/icons/Reveal.tsx on lines 3..14
packages/components/src/components/icons/ScreenShare.tsx on lines 3..14
packages/components/src/components/icons/Searchmore.tsx on lines 3..14
packages/components/src/components/icons/Share.tsx on lines 3..14
packages/components/src/components/icons/SmileysAndPeople.tsx on lines 3..14
packages/components/src/components/icons/Spam.tsx on lines 3..14
packages/components/src/components/icons/Unlock.tsx 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 83.

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

const SvgAlertTriangle = (props: SVGProps<SVGSVGElement>) => (
  <svg
    data-testid="ICON_ALERT-TRIANGLE"
    width="1em"
    height="1em"
Severity: Major
Found in packages/components/src/components/icons/AlertTriangle.tsx and 38 other locations - About 2 hrs to fix
packages/components/src/components/icons/Accent.tsx on lines 3..14
packages/components/src/components/icons/AlertRound.tsx on lines 3..14
packages/components/src/components/icons/App.tsx on lines 3..14
packages/components/src/components/icons/Archive.tsx on lines 3..14
packages/components/src/components/icons/Audio.tsx on lines 3..14
packages/components/src/components/icons/Bot.tsx on lines 3..14
packages/components/src/components/icons/CheckRound.tsx on lines 3..14
packages/components/src/components/icons/ChevronLeft.tsx on lines 3..14
packages/components/src/components/icons/ChevronRight.tsx on lines 3..14
packages/components/src/components/icons/Copy.tsx on lines 3..14
packages/components/src/components/icons/CrossRound.tsx on lines 3..14
packages/components/src/components/icons/Delivered1.tsx on lines 3..14
packages/components/src/components/icons/DocumentSharing.tsx on lines 3..14
packages/components/src/components/icons/Emoticon.tsx on lines 3..14
packages/components/src/components/icons/FoodAndDrink.tsx on lines 3..14
packages/components/src/components/icons/Help.tsx on lines 3..14
packages/components/src/components/icons/InfoRound.tsx on lines 3..14
packages/components/src/components/icons/Location.tsx on lines 3..14
packages/components/src/components/icons/MicOn.tsx on lines 3..14
packages/components/src/components/icons/MicOutline.tsx on lines 3..14
packages/components/src/components/icons/MinusRound.tsx on lines 3..14
packages/components/src/components/icons/Network.tsx on lines 3..14
packages/components/src/components/icons/NoSignal.tsx on lines 3..14
packages/components/src/components/icons/Picture.tsx on lines 3..14
packages/components/src/components/icons/PlusRound.tsx on lines 3..14
packages/components/src/components/icons/PopIn.tsx on lines 3..14
packages/components/src/components/icons/PopOut.tsx on lines 3..14
packages/components/src/components/icons/Print.tsx on lines 3..14
packages/components/src/components/icons/Read.tsx on lines 3..14
packages/components/src/components/icons/Recent.tsx on lines 3..14
packages/components/src/components/icons/ReplyAll.tsx on lines 3..14
packages/components/src/components/icons/Reveal.tsx on lines 3..14
packages/components/src/components/icons/ScreenShare.tsx on lines 3..14
packages/components/src/components/icons/Searchmore.tsx on lines 3..14
packages/components/src/components/icons/Share.tsx on lines 3..14
packages/components/src/components/icons/SmileysAndPeople.tsx on lines 3..14
packages/components/src/components/icons/Spam.tsx on lines 3..14
packages/components/src/components/icons/Unlock.tsx 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 83.

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

const SvgPopOut = (props: SVGProps<SVGSVGElement>) => (
  <svg
    data-testid="ICON_POP-OUT"
    width="1em"
    height="1em"
Severity: Major
Found in packages/components/src/components/icons/PopOut.tsx and 38 other locations - About 2 hrs to fix
packages/components/src/components/icons/Accent.tsx on lines 3..14
packages/components/src/components/icons/AlertRound.tsx on lines 3..14
packages/components/src/components/icons/AlertTriangle.tsx on lines 3..14
packages/components/src/components/icons/App.tsx on lines 3..14
packages/components/src/components/icons/Archive.tsx on lines 3..14
packages/components/src/components/icons/Audio.tsx on lines 3..14
packages/components/src/components/icons/Bot.tsx on lines 3..14
packages/components/src/components/icons/CheckRound.tsx on lines 3..14
packages/components/src/components/icons/ChevronLeft.tsx on lines 3..14
packages/components/src/components/icons/ChevronRight.tsx on lines 3..14
packages/components/src/components/icons/Copy.tsx on lines 3..14
packages/components/src/components/icons/CrossRound.tsx on lines 3..14
packages/components/src/components/icons/Delivered1.tsx on lines 3..14
packages/components/src/components/icons/DocumentSharing.tsx on lines 3..14
packages/components/src/components/icons/Emoticon.tsx on lines 3..14
packages/components/src/components/icons/FoodAndDrink.tsx on lines 3..14
packages/components/src/components/icons/Help.tsx on lines 3..14
packages/components/src/components/icons/InfoRound.tsx on lines 3..14
packages/components/src/components/icons/Location.tsx on lines 3..14
packages/components/src/components/icons/MicOn.tsx on lines 3..14
packages/components/src/components/icons/MicOutline.tsx on lines 3..14
packages/components/src/components/icons/MinusRound.tsx on lines 3..14
packages/components/src/components/icons/Network.tsx on lines 3..14
packages/components/src/components/icons/NoSignal.tsx on lines 3..14
packages/components/src/components/icons/Picture.tsx on lines 3..14
packages/components/src/components/icons/PlusRound.tsx on lines 3..14
packages/components/src/components/icons/PopIn.tsx on lines 3..14
packages/components/src/components/icons/Print.tsx on lines 3..14
packages/components/src/components/icons/Read.tsx on lines 3..14
packages/components/src/components/icons/Recent.tsx on lines 3..14
packages/components/src/components/icons/ReplyAll.tsx on lines 3..14
packages/components/src/components/icons/Reveal.tsx on lines 3..14
packages/components/src/components/icons/ScreenShare.tsx on lines 3..14
packages/components/src/components/icons/Searchmore.tsx on lines 3..14
packages/components/src/components/icons/Share.tsx on lines 3..14
packages/components/src/components/icons/SmileysAndPeople.tsx on lines 3..14
packages/components/src/components/icons/Spam.tsx on lines 3..14
packages/components/src/components/icons/Unlock.tsx 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 83.

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

const SvgInfoRound = (props: SVGProps<SVGSVGElement>) => (
  <svg
    data-testid="ICON_INFO-ROUND"
    width="1em"
    height="1em"
Severity: Major
Found in packages/components/src/components/icons/InfoRound.tsx and 38 other locations - About 2 hrs to fix
packages/components/src/components/icons/Accent.tsx on lines 3..14
packages/components/src/components/icons/AlertRound.tsx on lines 3..14
packages/components/src/components/icons/AlertTriangle.tsx on lines 3..14
packages/components/src/components/icons/App.tsx on lines 3..14
packages/components/src/components/icons/Archive.tsx on lines 3..14
packages/components/src/components/icons/Audio.tsx on lines 3..14
packages/components/src/components/icons/Bot.tsx on lines 3..14
packages/components/src/components/icons/CheckRound.tsx on lines 3..14
packages/components/src/components/icons/ChevronLeft.tsx on lines 3..14
packages/components/src/components/icons/ChevronRight.tsx on lines 3..14
packages/components/src/components/icons/Copy.tsx on lines 3..14
packages/components/src/components/icons/CrossRound.tsx on lines 3..14
packages/components/src/components/icons/Delivered1.tsx on lines 3..14
packages/components/src/components/icons/DocumentSharing.tsx on lines 3..14
packages/components/src/components/icons/Emoticon.tsx on lines 3..14
packages/components/src/components/icons/FoodAndDrink.tsx on lines 3..14
packages/components/src/components/icons/Help.tsx on lines 3..14
packages/components/src/components/icons/Location.tsx on lines 3..14
packages/components/src/components/icons/MicOn.tsx on lines 3..14
packages/components/src/components/icons/MicOutline.tsx on lines 3..14
packages/components/src/components/icons/MinusRound.tsx on lines 3..14
packages/components/src/components/icons/Network.tsx on lines 3..14
packages/components/src/components/icons/NoSignal.tsx on lines 3..14
packages/components/src/components/icons/Picture.tsx on lines 3..14
packages/components/src/components/icons/PlusRound.tsx on lines 3..14
packages/components/src/components/icons/PopIn.tsx on lines 3..14
packages/components/src/components/icons/PopOut.tsx on lines 3..14
packages/components/src/components/icons/Print.tsx on lines 3..14
packages/components/src/components/icons/Read.tsx on lines 3..14
packages/components/src/components/icons/Recent.tsx on lines 3..14
packages/components/src/components/icons/ReplyAll.tsx on lines 3..14
packages/components/src/components/icons/Reveal.tsx on lines 3..14
packages/components/src/components/icons/ScreenShare.tsx on lines 3..14
packages/components/src/components/icons/Searchmore.tsx on lines 3..14
packages/components/src/components/icons/Share.tsx on lines 3..14
packages/components/src/components/icons/SmileysAndPeople.tsx on lines 3..14
packages/components/src/components/icons/Spam.tsx on lines 3..14
packages/components/src/components/icons/Unlock.tsx 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 83.

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

const SvgEmoticon = (props: SVGProps<SVGSVGElement>) => (
  <svg
    data-testid="ICON_EMOTICON"
    width="1em"
    height="1em"
Severity: Major
Found in packages/components/src/components/icons/Emoticon.tsx and 38 other locations - About 2 hrs to fix
packages/components/src/components/icons/Accent.tsx on lines 3..14
packages/components/src/components/icons/AlertRound.tsx on lines 3..14
packages/components/src/components/icons/AlertTriangle.tsx on lines 3..14
packages/components/src/components/icons/App.tsx on lines 3..14
packages/components/src/components/icons/Archive.tsx on lines 3..14
packages/components/src/components/icons/Audio.tsx on lines 3..14
packages/components/src/components/icons/Bot.tsx on lines 3..14
packages/components/src/components/icons/CheckRound.tsx on lines 3..14
packages/components/src/components/icons/ChevronLeft.tsx on lines 3..14
packages/components/src/components/icons/ChevronRight.tsx on lines 3..14
packages/components/src/components/icons/Copy.tsx on lines 3..14
packages/components/src/components/icons/CrossRound.tsx on lines 3..14
packages/components/src/components/icons/Delivered1.tsx on lines 3..14
packages/components/src/components/icons/DocumentSharing.tsx on lines 3..14
packages/components/src/components/icons/FoodAndDrink.tsx on lines 3..14
packages/components/src/components/icons/Help.tsx on lines 3..14
packages/components/src/components/icons/InfoRound.tsx on lines 3..14
packages/components/src/components/icons/Location.tsx on lines 3..14
packages/components/src/components/icons/MicOn.tsx on lines 3..14
packages/components/src/components/icons/MicOutline.tsx on lines 3..14
packages/components/src/components/icons/MinusRound.tsx on lines 3..14
packages/components/src/components/icons/Network.tsx on lines 3..14
packages/components/src/components/icons/NoSignal.tsx on lines 3..14
packages/components/src/components/icons/Picture.tsx on lines 3..14
packages/components/src/components/icons/PlusRound.tsx on lines 3..14
packages/components/src/components/icons/PopIn.tsx on lines 3..14
packages/components/src/components/icons/PopOut.tsx on lines 3..14
packages/components/src/components/icons/Print.tsx on lines 3..14
packages/components/src/components/icons/Read.tsx on lines 3..14
packages/components/src/components/icons/Recent.tsx on lines 3..14
packages/components/src/components/icons/ReplyAll.tsx on lines 3..14
packages/components/src/components/icons/Reveal.tsx on lines 3..14
packages/components/src/components/icons/ScreenShare.tsx on lines 3..14
packages/components/src/components/icons/Searchmore.tsx on lines 3..14
packages/components/src/components/icons/Share.tsx on lines 3..14
packages/components/src/components/icons/SmileysAndPeople.tsx on lines 3..14
packages/components/src/components/icons/Spam.tsx on lines 3..14
packages/components/src/components/icons/Unlock.tsx 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 83.

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