bufferapp/ui

View on GitHub

Showing 333 of 333 total issues

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

  [
    'instagram',
    // @ts-expect-error TS(7031) FIXME: Binding element 'size' implicitly has an 'any' typ... Remove this comment to see the full error message
    ({ size }) => (
      <Styles.SocialIconWrapper size={size} bgColor={instagram}>
Severity: Major
Found in src/components/Avatar/Avatar.tsx and 9 other locations - About 1 hr to fix
src/components/Avatar/Avatar.tsx on lines 56..64
src/components/Avatar/Avatar.tsx on lines 65..73
src/components/Avatar/Avatar.tsx on lines 74..82
src/components/Avatar/Avatar.tsx on lines 83..91
src/components/Avatar/Avatar.tsx on lines 92..100
src/components/Avatar/Avatar.tsx on lines 101..109
src/components/Avatar/Avatar.tsx on lines 110..118
src/components/Avatar/Avatar.tsx on lines 130..138
src/components/Avatar/Avatar.tsx on lines 139..147

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

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

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

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

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

Refactorings

Further Reading

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

  [
    'googlebusiness',
    // @ts-expect-error TS(7031) FIXME: Binding element 'size' implicitly has an 'any' typ... Remove this comment to see the full error message
    ({ size }) => (
      <Styles.SocialIconWrapper size={size} bgColor={googlebusiness}>
Severity: Major
Found in src/components/Avatar/Avatar.tsx and 9 other locations - About 1 hr to fix
src/components/Avatar/Avatar.tsx on lines 47..55
src/components/Avatar/Avatar.tsx on lines 56..64
src/components/Avatar/Avatar.tsx on lines 65..73
src/components/Avatar/Avatar.tsx on lines 74..82
src/components/Avatar/Avatar.tsx on lines 83..91
src/components/Avatar/Avatar.tsx on lines 101..109
src/components/Avatar/Avatar.tsx on lines 110..118
src/components/Avatar/Avatar.tsx on lines 130..138
src/components/Avatar/Avatar.tsx on lines 139..147

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

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

  component: PropTypes.shape({
    name: PropTypes.string.isRequired,
    description: PropTypes.string.isRequired,
    code: PropTypes.string.isRequired,
    level: PropTypes.number.isRequired,
Severity: Major
Found in src/documentation/app/layout/content/Component.tsx and 1 other location - About 1 hr to fix
src/documentation/app/layout/content/Component.tsx on lines 140..145

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

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

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

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

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

Refactorings

Further Reading

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

  [
    'facebook',
    // @ts-expect-error TS(7031) FIXME: Binding element 'size' implicitly has an 'any' typ... Remove this comment to see the full error message
    ({ size }) => (
      <Styles.SocialIconWrapper size={size} bgColor={facebook}>
Severity: Major
Found in src/components/Avatar/Avatar.tsx and 9 other locations - About 1 hr to fix
src/components/Avatar/Avatar.tsx on lines 47..55
src/components/Avatar/Avatar.tsx on lines 65..73
src/components/Avatar/Avatar.tsx on lines 74..82
src/components/Avatar/Avatar.tsx on lines 83..91
src/components/Avatar/Avatar.tsx on lines 92..100
src/components/Avatar/Avatar.tsx on lines 101..109
src/components/Avatar/Avatar.tsx on lines 110..118
src/components/Avatar/Avatar.tsx on lines 130..138
src/components/Avatar/Avatar.tsx on lines 139..147

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

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

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

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

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

Refactorings

Further Reading

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

  [
    'linkedin',
    // @ts-expect-error TS(7031) FIXME: Binding element 'size' implicitly has an 'any' typ... Remove this comment to see the full error message
    ({ size }) => (
      <Styles.SocialIconWrapper size={size} bgColor={linkedin}>
Severity: Major
Found in src/components/Avatar/Avatar.tsx and 9 other locations - About 1 hr to fix
src/components/Avatar/Avatar.tsx on lines 47..55
src/components/Avatar/Avatar.tsx on lines 56..64
src/components/Avatar/Avatar.tsx on lines 65..73
src/components/Avatar/Avatar.tsx on lines 83..91
src/components/Avatar/Avatar.tsx on lines 92..100
src/components/Avatar/Avatar.tsx on lines 101..109
src/components/Avatar/Avatar.tsx on lines 110..118
src/components/Avatar/Avatar.tsx on lines 130..138
src/components/Avatar/Avatar.tsx on lines 139..147

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

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

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

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

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

Refactorings

Further Reading

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

  [
    'youtube',
    // @ts-expect-error TS(7031) FIXME: Binding element 'size' implicitly has an 'any' typ... Remove this comment to see the full error message
    ({ size }) => (
      <Styles.SocialIconWrapper size={size} bgColor={youtube}>
Severity: Major
Found in src/components/Avatar/Avatar.tsx and 9 other locations - About 1 hr to fix
src/components/Avatar/Avatar.tsx on lines 47..55
src/components/Avatar/Avatar.tsx on lines 56..64
src/components/Avatar/Avatar.tsx on lines 65..73
src/components/Avatar/Avatar.tsx on lines 74..82
src/components/Avatar/Avatar.tsx on lines 83..91
src/components/Avatar/Avatar.tsx on lines 92..100
src/components/Avatar/Avatar.tsx on lines 101..109
src/components/Avatar/Avatar.tsx on lines 110..118
src/components/Avatar/Avatar.tsx on lines 130..138

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

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

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

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

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

Refactorings

Further Reading

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

  [
    'shopify',
    // @ts-expect-error TS(7031) FIXME: Binding element 'size' implicitly has an 'any' typ... Remove this comment to see the full error message
    ({ size }) => (
      <Styles.SocialIconWrapper size={size} bgColor={shopify}>
Severity: Major
Found in src/components/Avatar/Avatar.tsx and 9 other locations - About 1 hr to fix
src/components/Avatar/Avatar.tsx on lines 47..55
src/components/Avatar/Avatar.tsx on lines 56..64
src/components/Avatar/Avatar.tsx on lines 65..73
src/components/Avatar/Avatar.tsx on lines 74..82
src/components/Avatar/Avatar.tsx on lines 83..91
src/components/Avatar/Avatar.tsx on lines 92..100
src/components/Avatar/Avatar.tsx on lines 110..118
src/components/Avatar/Avatar.tsx on lines 130..138
src/components/Avatar/Avatar.tsx on lines 139..147

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

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 render has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render() {
    const {
      // @ts-expect-error TS(2339) FIXME: Property 'value' does not exist on type 'Readonly<... Remove this comment to see the full error message
      value,
      // @ts-expect-error TS(2339) FIXME: Property 'label' does not exist on type 'Readonly<... Remove this comment to see the full error message
Severity: Minor
Found in src/components/TextArea/TextArea.tsx - About 1 hr to fix

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

    const CameraIcon = createIconComponent({
      content: (
        <g>
          <path
            fillRule="evenodd"
    Severity: Major
    Found in src/components/Icon/Icons/Camera.tsx and 5 other locations - About 1 hr to fix
    src/components/Icon/Icons/Giveaway.tsx on lines 8..19
    src/components/Icon/Icons/Person.tsx on lines 8..19
    src/components/Icon/Icons/Search.tsx on lines 8..19
    src/components/Icon/Icons/TextRephrase.tsx on lines 8..19
    src/components/Icon/Icons/View.tsx on lines 8..19

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 66.

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

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

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

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

    Refactorings

    Further Reading

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

    const TextRephraseIcon = createIconComponent({
      content: (
        <g>
          <path
            fillRule="evenodd"
    Severity: Major
    Found in src/components/Icon/Icons/TextRephrase.tsx and 5 other locations - About 1 hr to fix
    src/components/Icon/Icons/Camera.tsx on lines 8..19
    src/components/Icon/Icons/Giveaway.tsx on lines 8..19
    src/components/Icon/Icons/Person.tsx on lines 8..19
    src/components/Icon/Icons/Search.tsx on lines 8..19
    src/components/Icon/Icons/View.tsx on lines 8..19

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 66.

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

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

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

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

    Refactorings

    Further Reading

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

          <States size="small">
            <States.Image
              src="./images/illustration2.png"
              alt="a colourful illustration of a buffer character"
            />
    src/documentation/examples/States/StatesLargeWithoutButtons.tsx on lines 16..26

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 66.

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

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

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

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

    Refactorings

    Further Reading

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

    const GiveawayIcon = createIconComponent({
      content: (
        <g>
          <path
            fillRule="evenodd"
    Severity: Major
    Found in src/components/Icon/Icons/Giveaway.tsx and 5 other locations - About 1 hr to fix
    src/components/Icon/Icons/Camera.tsx on lines 8..19
    src/components/Icon/Icons/Person.tsx on lines 8..19
    src/components/Icon/Icons/Search.tsx on lines 8..19
    src/components/Icon/Icons/TextRephrase.tsx on lines 8..19
    src/components/Icon/Icons/View.tsx on lines 8..19

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 66.

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

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

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

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

    Refactorings

    Further Reading

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

    const ReplyIcon = createIconComponent({
      content: (
        <g>
          <path d="M16 9.038H8.927V16H16V9.038z" />
          <path
    Severity: Major
    Found in src/components/Icon/Icons/Reply.tsx and 2 other locations - About 1 hr to fix
    src/components/Icon/Icons/AltTag.tsx on lines 8..19
    src/components/Icon/Icons/Hotkeys.tsx on lines 8..19

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 66.

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

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

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

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

    Refactorings

    Further Reading

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

    const AnimationWrapper = ({
      // @ts-expect-error TS(7031) FIXME: Binding element 'align' implicitly has an 'any' ty... Remove this comment to see the full error message
      align,
      // @ts-expect-error TS(7031) FIXME: Binding element 'children' implicitly has an 'any'... Remove this comment to see the full error message
      children,
    Severity: Major
    Found in src/components/AnimationWrapper/AnimationWrapper.tsx and 1 other location - About 1 hr to fix
    src/components/Select/SelectItem/SelectItem.tsx on lines 43..122

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 66.

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

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

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

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

    Refactorings

    Further Reading

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

    const SearchIcon = createIconComponent({
      content: (
        <g>
          <path
            fillRule="evenodd"
    Severity: Major
    Found in src/components/Icon/Icons/Search.tsx and 5 other locations - About 1 hr to fix
    src/components/Icon/Icons/Camera.tsx on lines 8..19
    src/components/Icon/Icons/Giveaway.tsx on lines 8..19
    src/components/Icon/Icons/Person.tsx on lines 8..19
    src/components/Icon/Icons/TextRephrase.tsx on lines 8..19
    src/components/Icon/Icons/View.tsx on lines 8..19

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 66.

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

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

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

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

    Refactorings

    Further Reading

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

    const AltTagIcon = createIconComponent({
      content: (
        <g>
          <path d="M3.287 5.544l-1.688 5.68a.694.694 0 01-.657.51c-.476 0-.808-.498-.649-.972L2.272 4.88a.879.879 0 01.824-.614l.19 1.277zm2.034 6.19a.695.695 0 01-.658-.511L2.97 5.543l.125-1.276c.407 0 .77.27.907.675l1.968 5.816c.16.476-.173.975-.65.975zm-.59-2.78v1.205H1.16V8.954h3.57zm5.976 1.579c.314 0 .568.269.568.6 0 .332-.254.6-.568.6h-3.17l.334-1.2h2.836zM7.624 4.267c.385 0 .697.33.697.736v5.994c0 .407-.312.736-.697.736-.384 0-.696-.33-.696-.736V5.003c0-.407.312-.736.696-.736zm6.043 0V11c0 .405-.31.733-.694.733-.384 0-.695-.328-.695-.733V4.267h1.389zm1.51 0c.315 0 .57.27.57.602 0 .333-.255.603-.57.603H10.8c-.314 0-.57-.27-.57-.603 0-.333.256-.602.57-.602h4.377z" />
          <path
    Severity: Major
    Found in src/components/Icon/Icons/AltTag.tsx and 2 other locations - About 1 hr to fix
    src/components/Icon/Icons/Hotkeys.tsx on lines 8..19
    src/components/Icon/Icons/Reply.tsx on lines 8..19

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 66.

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

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

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

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

    Refactorings

    Further Reading

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

    const HotkeysIcon = createIconComponent({
      content: (
        <g>
          <path d="M6 4H4v2h2V4zm1 0h2v2H7V4zm5 0h-2v2h2V4zM4 7h2v2H4V7zm5 0H7v2h2V7zm1 0h2v2h-2V7zm2 3H4v2h8v-2z" />
          <path
    Severity: Major
    Found in src/components/Icon/Icons/Hotkeys.tsx and 2 other locations - About 1 hr to fix
    src/components/Icon/Icons/AltTag.tsx on lines 8..19
    src/components/Icon/Icons/Reply.tsx on lines 8..19

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 66.

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

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

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

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

    Refactorings

    Further Reading

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

        const wrapper = mount(
          <DropdownMenu
            // @ts-expect-error TS(2322) FIXME: Type '{ ariaLabel: string; ariaLabelPopup: string;... Remove this comment to see the full error message
            ariaLabel="Help Menu"
            ariaLabelPopup="Help"
    Severity: Major
    Found in src/components/DropdownMenu/DropdownMenu.test.tsx and 1 other location - About 1 hr to fix
    src/components/DropdownMenu/DropdownMenu.test.tsx on lines 36..45

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 66.

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

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

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

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

    Refactorings

    Further Reading

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

        const wrapper = mount(
          <DropdownMenu
            // @ts-expect-error TS(2322) FIXME: Type '{ ariaLabel: string; ariaLabelPopup: string;... Remove this comment to see the full error message
            ariaLabel="Help Menu"
            ariaLabelPopup="Help"
    Severity: Major
    Found in src/components/DropdownMenu/DropdownMenu.test.tsx and 1 other location - About 1 hr to fix
    src/components/DropdownMenu/DropdownMenu.test.tsx on lines 66..75

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 66.

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

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

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

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

    Refactorings

    Further Reading

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

    const SelectItem = ({
      // @ts-expect-error TS(7031) FIXME: Binding element 'item' implicitly has an 'any' typ... Remove this comment to see the full error message
      item,
      // @ts-expect-error TS(7031) FIXME: Binding element 'onClick' implicitly has an 'any' ... Remove this comment to see the full error message
      onClick,
    Severity: Major
    Found in src/components/Select/SelectItem/SelectItem.tsx and 1 other location - About 1 hr to fix
    src/components/AnimationWrapper/AnimationWrapper.tsx on lines 46..132

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 66.

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

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

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

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

    Refactorings

    Further Reading

    Severity
    Category
    Status
    Source
    Language