bufferapp/ui

View on GitHub

Showing 333 of 333 total issues

Function updateIfNeeded has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

  updateIfNeeded(prevProps) {
    // @ts-expect-error TS(2339) FIXME: Property 'isOpen' does not exist on type 'Readonly... Remove this comment to see the full error message
    const { isOpen, usingMouse, onOpen } = this.props
    let newTabIndex = '-1'

Severity: Minor
Found in src/components/DropdownMenu/PopupMenu/PopupMenu.tsx - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function main has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

async function main() {
  let spinner
  try {
    spinner = ora(`Loading BDS Icons Figma file: ${figmaIconFileUrl}`).start()
    const figmaFile = await getFigmaFile(figmaIconFileId)
Severity: Minor
Found in scripts/generateIconComponents.js - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function ExampleSelectWithInputSearch has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function ExampleSelectWithInputSearch() {
  return (
    <Select
      onSelectClick={() => true}
      // @ts-expect-error TS(7006) FIXME: Parameter 'onButtonClick' implicitly has an 'any' ... Remove this comment to see the full error message
Severity: Minor
Found in src/documentation/examples/Select/SelectWithInputSearch.tsx - About 1 hr to fix

    Function getDocumentsData has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function getDocumentsData(documentsPath) {
      const folders = getDocumentationFolders(documentsPath)
    
      return folders.map((folder) => {
        const documents = getDocumentFiles(documentsPath, folder)
    Severity: Minor
    Found in scripts/generateComponentData.js - About 1 hr to fix

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

      function getDirectories(filePath) {
        return fs
          .readdirSync(filePath)
          .filter((file) => fs.statSync(path.join(filePath, file)).isDirectory())
      }
      Severity: Major
      Found in scripts/generateComponentData.js and 1 other location - About 1 hr to fix
      scripts/generateComponentData.js on lines 33..37

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

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

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

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

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

      Refactorings

      Further Reading

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

      function getFiles(filepath) {
        return fs
          .readdirSync(filepath)
          .filter((file) => fs.statSync(path.join(filepath, file)).isFile())
      }
      Severity: Major
      Found in scripts/generateComponentData.js and 1 other location - About 1 hr to fix
      scripts/generateComponentData.js on lines 27..31

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

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

      const MailIcon = createIconComponent({
        content: (
          <g>
            <path d="M16 12.4a1.6 1.6 0 01-1.6 1.6H1.6A1.6 1.6 0 010 12.4V5.368a.16.16 0 01.258-.126l6.758 5.27a1.6 1.6 0 001.968 0l6.758-5.27a.16.16 0 01.258.126V12.4z" />
            <path d="M0 3.28C0 2.573.573 2 1.28 2h13.44c.707 0 1.28.573 1.28 1.28v.157a.64.64 0 01-.26.515L8.953 8.976a1.6 1.6 0 01-1.904 0L.26 3.952A.64.64 0 010 3.437V3.28z" />
      Severity: Major
      Found in src/components/Icon/Icons/Mail.tsx and 10 other locations - About 1 hr to fix
      src/components/Icon/Icons/AppleMusic.tsx on lines 8..15
      src/components/Icon/Icons/ArrowDown.tsx on lines 8..15
      src/components/Icon/Icons/ArrowRight.tsx on lines 8..15
      src/components/Icon/Icons/ArrowUp.tsx on lines 8..15
      src/components/Icon/Icons/Audience.tsx on lines 8..15
      src/components/Icon/Icons/Carousel.tsx on lines 8..15
      src/components/Icon/Icons/Clubhouse.tsx on lines 8..15
      src/components/Icon/Icons/Google.tsx on lines 8..15
      src/components/Icon/Icons/OpenNew.tsx on lines 8..15
      src/components/Icon/Icons/Swap.tsx on lines 8..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 56.

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

      const ClubhouseIcon = createIconComponent({
        content: (
          <g>
            <path d="M4.851 5.859c-.106-.343-.094-.603.036-.768.13-.154.307-.225.52-.237.366-.011.508.249.721.922.13.426.39 1.042.544 1.384.2.414.484.97.614 1.16.107.165.201.213.308.213.189 0 .33-.107.33-.296 0-.106-.106-.284-.165-.39-.106-.201-.33-.603-.484-.946a21.816 21.816 0 01-.509-1.277c-.094-.249-.2-.603-.307-.958-.166-.543-.248-.874-.248-1.124 0-.378.283-.626.709-.626.307 0 .508.153.638.709.107.508.296 1.337.568 1.987.177.425.437.994.59 1.278.095.165.202.307.202.366 0 .083-.154.213-.284.39-.083.106-.118.177-.118.26 0 .071.047.142.118.237.07.094.142.189.224.189.06 0 .095-.024.13-.071.367-.461.769-.78 1.23-1.042.544-.307 1.101-.46 1.539-.555.212-.047.271-.095.271-.213 0-.142-.106-.224-.248-.236-.106-.012-.2 0-.366.012-.118.011-.178-.048-.248-.201-.213-.45-.627-1.207-.875-2.176a9.303 9.303 0 01-.26-1.42c-.036-.26.012-.354.142-.473.165-.142.46-.2.685-.142.272.071.414.284.556 1.113.07.39.189.886.33 1.313.178.543.403.994.745 1.597.19.33.426.673.674 1.005-.047.142-.13.237-.402.461-.272.225-.543.461-.792.899a2.03 2.03 0 00-.26.91c0 .224.048.272.19.272.248 0 .449-.048.46-.154.06-.425.13-.697.367-1.018.142-.177.39-.401.59-.579.379-.307.51-.484.639-.922.06-.2.13-.39.225-.567.224-.414.626-.887 1.254-.887.2 0 .366.06.473.225a.646.646 0 01.082.32c0 .212-.154.507-.224.65-.26.555-.686 1.407-.686 2.388 0 2.14-.756 3.205-1.349 3.75a3.801 3.801 0 01-2.566 1.017 4.094 4.094 0 01-2.211-.65c-.91-.603-1.479-1.55-2.058-2.495-.46-.769-.78-1.373-1.277-2.543a23.94 23.94 0 01-.768-2.06z" />
            <path d="M7.891 1.897c0-.45.414-.626.757-.626.366 0 .496.177.59.555.084.308.119.591.154.922.048.331.213 1.089.26 1.278.178.65.532 1.42.958 2.341-.248.083-.58.225-.804.343-.284.154-.343.154-.46-.07-.25-.462-.426-.805-.58-1.208A8.74 8.74 0 018.4 4.285c-.178-.745-.201-.958-.343-1.302-.083-.353-.166-.79-.166-1.086zM3.658 9.814c-.25.155-1.578.85-1.878.961-.214.08-.446.06-.582-.344-.168-.5.068-.618.403-.748.296-.115 1.527-.56 1.813-.637.2-.054.34.014.437.256.106.265.033.372-.193.512zM2.564 6.998c-.357.01-1.839-.054-2.177-.087-.295-.029-.414-.159-.382-.586.035-.457.213-.485.502-.457.335.032 1.888.284 2.135.36.256.08.291.196.26.42-.04.29-.17.345-.338.35zm.183-3c-.408-.129-1.62-.863-1.936-1.052-.286-.172-.322-.327-.124-.704.177-.333.372-.391.662-.24.337.175 1.524 1.099 1.75 1.281.22.177.19.268.075.495-.115.226-.222.284-.427.22z" />
      Severity: Major
      Found in src/components/Icon/Icons/Clubhouse.tsx and 10 other locations - About 1 hr to fix
      src/components/Icon/Icons/AppleMusic.tsx on lines 8..15
      src/components/Icon/Icons/ArrowDown.tsx on lines 8..15
      src/components/Icon/Icons/ArrowRight.tsx on lines 8..15
      src/components/Icon/Icons/ArrowUp.tsx on lines 8..15
      src/components/Icon/Icons/Audience.tsx on lines 8..15
      src/components/Icon/Icons/Carousel.tsx on lines 8..15
      src/components/Icon/Icons/Google.tsx on lines 8..15
      src/components/Icon/Icons/Mail.tsx on lines 8..15
      src/components/Icon/Icons/OpenNew.tsx on lines 8..15
      src/components/Icon/Icons/Swap.tsx on lines 8..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 56.

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

      const OpenNewIcon = createIconComponent({
        content: (
          <g>
            <path d="M9.854 1.854A.5.5 0 0110.207 1H14.5a.5.5 0 01.5.5v4.293a.5.5 0 01-.854.353l-1.439-1.439L8.414 9A1 1 0 117 7.586l4.293-4.293-1.44-1.44z" />
            <path d="M1 3a1 1 0 011-1h5v2H3v9h9V9h2v5a1 1 0 01-1 1H2a1 1 0 01-1-1V3z" />
      Severity: Major
      Found in src/components/Icon/Icons/OpenNew.tsx and 10 other locations - About 1 hr to fix
      src/components/Icon/Icons/AppleMusic.tsx on lines 8..15
      src/components/Icon/Icons/ArrowDown.tsx on lines 8..15
      src/components/Icon/Icons/ArrowRight.tsx on lines 8..15
      src/components/Icon/Icons/ArrowUp.tsx on lines 8..15
      src/components/Icon/Icons/Audience.tsx on lines 8..15
      src/components/Icon/Icons/Carousel.tsx on lines 8..15
      src/components/Icon/Icons/Clubhouse.tsx on lines 8..15
      src/components/Icon/Icons/Google.tsx on lines 8..15
      src/components/Icon/Icons/Mail.tsx on lines 8..15
      src/components/Icon/Icons/Swap.tsx on lines 8..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 56.

      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 const wrapper = {
        small: getWrapperCss({ size: 32 }),
        medium: getWrapperCss({ size: 40 }),
        large: getWrapperCss({ size: 48 }),
      }
      Severity: Major
      Found in src/components/Avatar/style.ts and 1 other location - About 1 hr to fix
      src/components/Avatar/style.ts on lines 64..68

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 56.

      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 CardWrapper = styled.div`
        display: block;
        position: relative;
        background-color: rgb(245, 247, 249);
        margin: 32px 0px;
      src/documentation/app/layout/content/components/InfoCard.tsx on lines 22..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 56.

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

      const ArrowUpIcon = createIconComponent({
        content: (
          <g>
            <path d="M4.174 9a1 1 0 01-.759-1.65l3.826-4.464a1 1 0 011.518 0l3.826 4.463A1 1 0 0111.825 9h-7.65z" />
            <path d="M9 9H7v4a1 1 0 102 0V9z" />
      Severity: Major
      Found in src/components/Icon/Icons/ArrowUp.tsx and 10 other locations - About 1 hr to fix
      src/components/Icon/Icons/AppleMusic.tsx on lines 8..15
      src/components/Icon/Icons/ArrowDown.tsx on lines 8..15
      src/components/Icon/Icons/ArrowRight.tsx on lines 8..15
      src/components/Icon/Icons/Audience.tsx on lines 8..15
      src/components/Icon/Icons/Carousel.tsx on lines 8..15
      src/components/Icon/Icons/Clubhouse.tsx on lines 8..15
      src/components/Icon/Icons/Google.tsx on lines 8..15
      src/components/Icon/Icons/Mail.tsx on lines 8..15
      src/components/Icon/Icons/OpenNew.tsx on lines 8..15
      src/components/Icon/Icons/Swap.tsx on lines 8..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 56.

      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 const object = {
        small: getObjectCss({ size: 32 }),
        medium: getObjectCss({ size: 40 }),
        large: getObjectCss({ size: 48 }),
      }
      Severity: Major
      Found in src/components/Avatar/style.ts and 1 other location - About 1 hr to fix
      src/components/Avatar/style.ts on lines 51..55

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

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

      const SwapIcon = createIconComponent({
        content: (
          <g>
            <path d="M1.207 4a.5.5 0 01-.353-.854L3.646.354a.5.5 0 01.708 0l2.792 2.792A.5.5 0 016.793 4H1.207zM5 4H3v3a1 1 0 102 0V4zm-2 6a1 1 0 012 0v1a1 1 0 11-2 0v-1zm11.793 2.207a.5.5 0 01.353.854l-2.793 2.793a.5.5 0 01-.707 0L8.853 13.06a.5.5 0 01.354-.854h5.586z" />
            <path d="M11 12.207h2v-3a1 1 0 10-2 0v3zm2-6a1 1 0 11-2 0v-1a1 1 0 112 0v1z" />
      Severity: Major
      Found in src/components/Icon/Icons/Swap.tsx and 10 other locations - About 1 hr to fix
      src/components/Icon/Icons/AppleMusic.tsx on lines 8..15
      src/components/Icon/Icons/ArrowDown.tsx on lines 8..15
      src/components/Icon/Icons/ArrowRight.tsx on lines 8..15
      src/components/Icon/Icons/ArrowUp.tsx on lines 8..15
      src/components/Icon/Icons/Audience.tsx on lines 8..15
      src/components/Icon/Icons/Carousel.tsx on lines 8..15
      src/components/Icon/Icons/Clubhouse.tsx on lines 8..15
      src/components/Icon/Icons/Google.tsx on lines 8..15
      src/components/Icon/Icons/Mail.tsx on lines 8..15
      src/components/Icon/Icons/OpenNew.tsx on lines 8..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 56.

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

      const ArrowDownIcon = createIconComponent({
        content: (
          <g>
            <path d="M11.826 7a1 1 0 01.76 1.65l-3.827 4.464a1 1 0 01-1.518 0L3.415 8.651A1 1 0 014.175 7h7.65z" />
            <path d="M7 7h2V3a1 1 0 10-2 0v4z" />
      Severity: Major
      Found in src/components/Icon/Icons/ArrowDown.tsx and 10 other locations - About 1 hr to fix
      src/components/Icon/Icons/AppleMusic.tsx on lines 8..15
      src/components/Icon/Icons/ArrowRight.tsx on lines 8..15
      src/components/Icon/Icons/ArrowUp.tsx on lines 8..15
      src/components/Icon/Icons/Audience.tsx on lines 8..15
      src/components/Icon/Icons/Carousel.tsx on lines 8..15
      src/components/Icon/Icons/Clubhouse.tsx on lines 8..15
      src/components/Icon/Icons/Google.tsx on lines 8..15
      src/components/Icon/Icons/Mail.tsx on lines 8..15
      src/components/Icon/Icons/OpenNew.tsx on lines 8..15
      src/components/Icon/Icons/Swap.tsx on lines 8..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 56.

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

      const GoogleIcon = createIconComponent({
        content: (
          <g>
            <path d="M10.4 5.08a3.722 3.722 0 00-2.26-.75c-1.611 0-2.968.965-3.444 2.308a3.15 3.15 0 00-.002 2.11l-2.065 1.468a5.363 5.363 0 010-5.044C3.629 3.29 5.714 2 8.14 2a6.39 6.39 0 014.047 1.424L10.4 5.08z" />
            <path d="M8.14 11.06c-1.611 0-2.968-.966-3.444-2.308l-2.067 1.465c.999 1.884 3.084 3.173 5.51 3.173 1.498 0 2.928-.494 4-1.42l-1.96-1.408c-.554.324-1.251.498-2.04.498zm5.72-4.4A4.4 4.4 0 0114 7.694c0 1.856-.733 3.304-1.86 4.275l-1.962-1.408c.642-.375 1.09-.952 1.255-1.702H8.14v-2.2h5.72z" />
      Severity: Major
      Found in src/components/Icon/Icons/Google.tsx and 10 other locations - About 1 hr to fix
      src/components/Icon/Icons/AppleMusic.tsx on lines 8..15
      src/components/Icon/Icons/ArrowDown.tsx on lines 8..15
      src/components/Icon/Icons/ArrowRight.tsx on lines 8..15
      src/components/Icon/Icons/ArrowUp.tsx on lines 8..15
      src/components/Icon/Icons/Audience.tsx on lines 8..15
      src/components/Icon/Icons/Carousel.tsx on lines 8..15
      src/components/Icon/Icons/Clubhouse.tsx on lines 8..15
      src/components/Icon/Icons/Mail.tsx on lines 8..15
      src/components/Icon/Icons/OpenNew.tsx on lines 8..15
      src/components/Icon/Icons/Swap.tsx on lines 8..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 56.

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

      const CarouselIcon = createIconComponent({
        content: (
          <g>
            <path d="M2.5.5a2 2 0 00-2 2v7.52a2 2 0 002 2h8.52a1 1 0 001-1V2.5a2 2 0 00-2-2H2.5z" />
            <path d="M5.735 15.254A2 2 0 013.77 13.62h8.85a1 1 0 001-1V3.767a2 2 0 011.636 1.967v7.52a2 2 0 01-2 2h-7.52z" />
      Severity: Major
      Found in src/components/Icon/Icons/Carousel.tsx and 10 other locations - About 1 hr to fix
      src/components/Icon/Icons/AppleMusic.tsx on lines 8..15
      src/components/Icon/Icons/ArrowDown.tsx on lines 8..15
      src/components/Icon/Icons/ArrowRight.tsx on lines 8..15
      src/components/Icon/Icons/ArrowUp.tsx on lines 8..15
      src/components/Icon/Icons/Audience.tsx on lines 8..15
      src/components/Icon/Icons/Clubhouse.tsx on lines 8..15
      src/components/Icon/Icons/Google.tsx on lines 8..15
      src/components/Icon/Icons/Mail.tsx on lines 8..15
      src/components/Icon/Icons/OpenNew.tsx on lines 8..15
      src/components/Icon/Icons/Swap.tsx on lines 8..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 56.

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

      const AppleMusicIcon = createIconComponent({
        content: (
          <g>
            <path d="M7 0a7 7 0 100 14A7 7 0 007 0zm0 .773a6.228 6.228 0 010 12.454A6.223 6.223 0 01.778 7 6.223 6.223 0 017 .773z" />
            <path d="M10 3L5.08 4.188h-.006v1.788h.006v3.196a1.618 1.618 0 00-.763-.185C3.589 8.987 3 9.44 3 9.997 3 10.551 3.589 11 4.319 11s1.35-.448 1.324-1.004l-.014-.285-.032-3.864 3.887-.937v3.53a1.593 1.593 0 00-.831-.225c-.73 0-1.319.453-1.319 1.009 0 .556.589 1.003 1.319 1.003s1.343-.447 1.343-1.003v-.016L10 3z" />
      Severity: Major
      Found in src/components/Icon/Icons/AppleMusic.tsx and 10 other locations - About 1 hr to fix
      src/components/Icon/Icons/ArrowDown.tsx on lines 8..15
      src/components/Icon/Icons/ArrowRight.tsx on lines 8..15
      src/components/Icon/Icons/ArrowUp.tsx on lines 8..15
      src/components/Icon/Icons/Audience.tsx on lines 8..15
      src/components/Icon/Icons/Carousel.tsx on lines 8..15
      src/components/Icon/Icons/Clubhouse.tsx on lines 8..15
      src/components/Icon/Icons/Google.tsx on lines 8..15
      src/components/Icon/Icons/Mail.tsx on lines 8..15
      src/components/Icon/Icons/OpenNew.tsx on lines 8..15
      src/components/Icon/Icons/Swap.tsx on lines 8..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 56.

      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 CardIcon = styled.div`
        color: ${(props) =>
          props.color === 'green'
            ? '#26cb7c'
            : props.color === 'red'
      src/documentation/app/layout/content/components/InfoCard.tsx on lines 6..20

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

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

      const AudienceIcon = createIconComponent({
        content: (
          <g>
            <path d="M9.836 3.538l.001.08a3.996 3.996 0 012.099 3.521c0 .466-.08.914-.226 1.33h3.79a3.498 3.498 0 00-2.345-3.313c.47-.379.772-.963.772-1.618A2.057 2.057 0 0011.88 1.47c-1.13 0-2.045.926-2.045 2.068zm-3.672.002v.054A3.995 3.995 0 004.02 7.139c0 .467.08.916.226 1.333H.5c0-1.538.981-2.844 2.345-3.314a2.073 2.073 0 01-.771-1.618c0-1.142.915-2.068 2.045-2.068s2.045.926 2.045 2.068z" />
            <path d="M10.931 7.267A2.994 2.994 0 019.665 9.72a5.058 5.058 0 013.085 4.671h-10a5.053 5.053 0 013.386-4.786 2.994 2.994 0 01-1.114-2.338c0-1.65 1.323-2.987 2.955-2.987 1.631 0 2.954 1.338 2.954 2.987z" />
      Severity: Major
      Found in src/components/Icon/Icons/Audience.tsx and 10 other locations - About 1 hr to fix
      src/components/Icon/Icons/AppleMusic.tsx on lines 8..15
      src/components/Icon/Icons/ArrowDown.tsx on lines 8..15
      src/components/Icon/Icons/ArrowRight.tsx on lines 8..15
      src/components/Icon/Icons/ArrowUp.tsx on lines 8..15
      src/components/Icon/Icons/Carousel.tsx on lines 8..15
      src/components/Icon/Icons/Clubhouse.tsx on lines 8..15
      src/components/Icon/Icons/Google.tsx on lines 8..15
      src/components/Icon/Icons/Mail.tsx on lines 8..15
      src/components/Icon/Icons/OpenNew.tsx on lines 8..15
      src/components/Icon/Icons/Swap.tsx on lines 8..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 56.

      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