bufferapp/ui

View on GitHub

Showing 333 of 333 total issues

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

      <States>
        <States.Media>
          <iframe
            title="buffer promo vid"
            width="420"
Severity: Major
Found in src/documentation/examples/States/StatesLargeWithMedia.tsx and 1 other location - About 6 hrs to fix
src/documentation/examples/States/StatesSmallWithMedia.tsx on lines 19..39

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

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

File Select.test.tsx has 412 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* eslint-disable react/jsx-filename-extension */
import React from 'react'
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'enzy... Remove this comment to see the full error message
import Enzyme, { shallow, mount } from 'enzyme'
import Adapter from '@wojtekmaj/enzyme-adapter-react-17'
Severity: Minor
Found in src/components/Select/Select.test.tsx - About 5 hrs to fix

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

          <States>
            <States.Image
              src="./images/illustration2.png"
              alt="a colourful illustration of a buffer character"
            />
    src/documentation/examples/States/StatesSmallWithTwoButtons.tsx on lines 18..32

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

    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/StatesLargeWithTwoButtons.tsx on lines 18..32

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

    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 {
          // @ts-expect-error TS(2339) FIXME: Property 'disabled' does not exist on type 'Readon... Remove this comment to see the full error message
          disabled,
          // @ts-expect-error TS(2339) FIXME: Property 'hasError' does not exist on type 'Readon... Remove this comment to see the full error message
          hasError,
    Severity: Major
    Found in src/components/Input/Input.tsx and 1 other location - About 5 hrs to fix
    src/components/Select/Select.tsx on lines 610..647

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

    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 {
          // @ts-expect-error TS(2339) FIXME: Property 'xPosition' does not exist on type 'Reado... Remove this comment to see the full error message
          xPosition,
          // @ts-expect-error TS(2339) FIXME: Property 'yPosition' does not exist on type 'Reado... Remove this comment to see the full error message
          yPosition,
    Severity: Major
    Found in src/components/Select/Select.tsx and 1 other location - About 5 hrs to fix
    src/components/Input/Input.tsx on lines 10..47

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

    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

    File webpack.config.prod.js has 364 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    'use strict'
    
    const fs = require('fs')
    const path = require('path')
    const webpack = require('webpack')
    Severity: Minor
    Found in scripts/config/webpack.config.prod.js - About 4 hrs to fix

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

      const ClockIcon = createIconComponent({
        content: (
          <g>
            <g clipPath="url(#clip0_349_795)">
              <path d="M7.1 4.25a.75.75 0 111.5 0v3.451l2.037 1.71a.75.75 0 11-.964 1.149L7.375 8.63a.75.75 0 01-.256-.712.753.753 0 01-.019-.169v-3.5z" />
      Severity: Major
      Found in src/components/Icon/Icons/Clock.tsx and 1 other location - About 4 hrs to fix
      src/components/Icon/Icons/Reel.tsx on lines 8..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 128.

      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 ReelIcon = createIconComponent({
        content: (
          <g>
            <g clipPath="url(#clip0_3870_2359)">
              <path d="M7.876 0l1.716 3.16h-3.56L4.318 0h3.559zm2.282 0c1.86 0 3.414 1.36 3.766 3.16h-2.6L9.607 0h.551zM2.684.183C1.364.612.352 1.751.076 3.16H4.3L2.684.183z" />
      Severity: Major
      Found in src/components/Icon/Icons/Reel.tsx and 1 other location - About 4 hrs to fix
      src/components/Icon/Icons/Clock.tsx on lines 8..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 128.

      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

          useTypeScript &&
            new ForkTsCheckerWebpackPlugin({
              typescript: resolve.sync('typescript', {
                basedir: paths.appNodeModules,
              }),
      Severity: Major
      Found in scripts/config/webpack.config.dev.js and 1 other location - About 4 hrs to fix
      scripts/config/webpack.config.prod.js on lines 506..533

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

      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"
              />
      Severity: Major
      Found in src/documentation/examples/States/StatesSmall.tsx and 1 other location - About 4 hrs to fix
      src/documentation/examples/States/StatesLarge.tsx on lines 18..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 117.

      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>
              <States.Image
                src="./images/illustration2.png"
                alt="a colourful illustration of a buffer character"
              />
      Severity: Major
      Found in src/documentation/examples/States/StatesLarge.tsx and 1 other location - About 4 hrs to fix
      src/documentation/examples/States/StatesSmall.tsx on lines 18..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 117.

      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

          fs.existsSync(paths.appTsConfig) &&
            new ForkTsCheckerWebpackPlugin({
              typescript: resolve.sync('typescript', {
                basedir: paths.appNodeModules,
              }),
      Severity: Major
      Found in scripts/config/webpack.config.prod.js and 1 other location - About 4 hrs to fix
      scripts/config/webpack.config.dev.js on lines 385..412

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

      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

      File NavBar.tsx has 335 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      import React from 'react'
      import PropTypes from 'prop-types'
      import styled from 'styled-components'
      import {
        Cross,
      Severity: Minor
      Found in src/components/NavBar/NavBar.tsx - About 4 hrs to fix

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

        const HelpIcon = createIconComponent({
          content: (
            <g>
              <g clipPath="url(#clip0_464_13)">
                <path
        Severity: Major
        Found in src/components/Icon/Icons/Help.tsx and 6 other locations - About 4 hrs to fix
        src/components/Icon/Icons/Bandcamp.tsx on lines 8..25
        src/components/Icon/Icons/Dribbble.tsx on lines 8..25
        src/components/Icon/Icons/Mastodon.tsx on lines 8..25
        src/components/Icon/Icons/Pause.tsx on lines 8..25
        src/components/Icon/Icons/Pinterest.tsx on lines 8..25
        src/components/Icon/Icons/StarOutline.tsx on lines 8..25

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

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

        const PauseIcon = createIconComponent({
          content: (
            <g>
              <g clipPath="url(#clip0_349_954)">
                <path
        Severity: Major
        Found in src/components/Icon/Icons/Pause.tsx and 6 other locations - About 4 hrs to fix
        src/components/Icon/Icons/Bandcamp.tsx on lines 8..25
        src/components/Icon/Icons/Dribbble.tsx on lines 8..25
        src/components/Icon/Icons/Help.tsx on lines 8..25
        src/components/Icon/Icons/Mastodon.tsx on lines 8..25
        src/components/Icon/Icons/Pinterest.tsx on lines 8..25
        src/components/Icon/Icons/StarOutline.tsx on lines 8..25

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

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

        const DribbbleIcon = createIconComponent({
          content: (
            <g>
              <g clipPath="url(#clip0_2377_1872)">
                <path
        Severity: Major
        Found in src/components/Icon/Icons/Dribbble.tsx and 6 other locations - About 4 hrs to fix
        src/components/Icon/Icons/Bandcamp.tsx on lines 8..25
        src/components/Icon/Icons/Help.tsx on lines 8..25
        src/components/Icon/Icons/Mastodon.tsx on lines 8..25
        src/components/Icon/Icons/Pause.tsx on lines 8..25
        src/components/Icon/Icons/Pinterest.tsx on lines 8..25
        src/components/Icon/Icons/StarOutline.tsx on lines 8..25

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

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

        const MastodonIcon = createIconComponent({
          content: (
            <g>
              <g clipPath="url(#clip0_3488_2180)">
                <path
        Severity: Major
        Found in src/components/Icon/Icons/Mastodon.tsx and 6 other locations - About 4 hrs to fix
        src/components/Icon/Icons/Bandcamp.tsx on lines 8..25
        src/components/Icon/Icons/Dribbble.tsx on lines 8..25
        src/components/Icon/Icons/Help.tsx on lines 8..25
        src/components/Icon/Icons/Pause.tsx on lines 8..25
        src/components/Icon/Icons/Pinterest.tsx on lines 8..25
        src/components/Icon/Icons/StarOutline.tsx on lines 8..25

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

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

        const BandcampIcon = createIconComponent({
          content: (
            <g>
              <g clipPath="url(#clip0_2376_1716)">
                <path
        Severity: Major
        Found in src/components/Icon/Icons/Bandcamp.tsx and 6 other locations - About 4 hrs to fix
        src/components/Icon/Icons/Dribbble.tsx on lines 8..25
        src/components/Icon/Icons/Help.tsx on lines 8..25
        src/components/Icon/Icons/Mastodon.tsx on lines 8..25
        src/components/Icon/Icons/Pause.tsx on lines 8..25
        src/components/Icon/Icons/Pinterest.tsx on lines 8..25
        src/components/Icon/Icons/StarOutline.tsx on lines 8..25

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

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

        const PinterestIcon = createIconComponent({
          content: (
            <g>
              <g clipPath="url(#clip0_349_934)">
                <path
        Severity: Major
        Found in src/components/Icon/Icons/Pinterest.tsx and 6 other locations - About 4 hrs to fix
        src/components/Icon/Icons/Bandcamp.tsx on lines 8..25
        src/components/Icon/Icons/Dribbble.tsx on lines 8..25
        src/components/Icon/Icons/Help.tsx on lines 8..25
        src/components/Icon/Icons/Mastodon.tsx on lines 8..25
        src/components/Icon/Icons/Pause.tsx on lines 8..25
        src/components/Icon/Icons/StarOutline.tsx on lines 8..25

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

        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