Showing 2,206 of 2,206 total issues

Function useConsentBanner has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const useConsentBanner = (
  isUK = false,
  showCookieBannerBasedOnCountry = true,
) => {
  const [{ showPrivacyBanner, showCookieBanner }, dispatch] = useReducer(
Severity: Major
Found in src/app/legacy/containers/ConsentBanner/useConsentBanners/index.js - About 2 hrs to fix

    Function isValidFiles has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const isValidFiles: (data: FieldData) => FieldData = (data: FieldData) => {
      const { value: files, required, wasInvalid, fileTypes, min, max } = data;
      const MAX_PAYLOAD_SIZE = 1288490189;
      const RESERVED_FORM_DATA_SIZE = 10000;
      // we're making the assumption that each file chooser field is only allowed the max payload size less some for data (estimated maximum size ever needed)

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

      describe('Canonical', () => {
        describe(pageType, () => {
          runExpiredEpisodeTests();
          runCommonCrossPlatformTests(service);
          runCommonEpisodeTests();
      src/integration/pages/onDemandAudioPage/gahuza.expired/canonical.test.js on lines 16..26
      src/integration/pages/onDemandAudioPage/pashto.expired/canonical.test.js on lines 15..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 76.

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

      describe('Canonical', () => {
        describe(pageType, () => {
          runExpiredEpisodeTests();
          runCommonCrossPlatformTests(service);
          runCommonEpisodeTests();
      src/integration/pages/onDemandAudioPage/indonesia.expired/canonical.test.js on lines 15..25
      src/integration/pages/onDemandAudioPage/pashto.expired/canonical.test.js on lines 15..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 76.

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

      describe('Canonical', () => {
        describe(pageType, () => {
          runExpiredEpisodeTests();
          runCommonCrossPlatformTests(service);
          runCommonEpisodeTests();
      src/integration/pages/onDemandAudioPage/gahuza.expired/canonical.test.js on lines 16..26
      src/integration/pages/onDemandAudioPage/indonesia.expired/canonical.test.js on lines 15..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 76.

      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

        it.each`
          timestamp                                            | scenario                                               | shouldRender
          ${calcTimestampDaysAgo(61).getTime()}                | ${'date is 61 days ago and timestamp format is unix'}  | ${true}
          ${new Date(calcTimestampDaysAgo(61)).toISOString()}  | ${'date is 61 days ago and timestamp format is ISO'}   | ${true}
          ${calcTimestampDaysAgo(100).getTime()}               | ${'date is 100 days ago and timestamp format is unix'} | ${true}
      src/app/hooks/useImageColour/index.test.js on lines 63..71
      src/app/lib/analyticsUtils/index.test.js on lines 662..672

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

      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 StyledHeadline = styled.div`
        ${({ service }) => getSerifMedium(service)}
        ${({ script }) => getPica(script)}
        color: ${props => props.theme.palette.GREY_10};
        margin: 0;
      src/app/legacy/components/Promo/body.jsx on lines 6..10
      src/app/legacy/components/Promo/footer.jsx on lines 6..10

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

      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

        it.each`
          scenario | luminance1 | luminance2 | expectedResult
          ${1}     | ${0}       | ${0}       | ${1}
          ${2}     | ${1}       | ${1}       | ${1}
          ${3}     | ${0}       | ${1}       | ${21}
      Severity: Major
      Found in src/app/hooks/useImageColour/index.test.js and 2 other locations - About 2 hrs to fix
      src/app/lib/analyticsUtils/index.test.js on lines 662..672
      src/app/lib/utilities/filterPopularStaleData/isDataStale.test.js on lines 25..35

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

      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

            it.each`
              expectation                                                                                       | href                                                               | expectedValue
              ${'the value of the "at_campaign" field'}                                                         | ${'https://www.bbc.com/mundo?at_medium=sl&at_campaign=73'}         | ${'SEC-73-----'}
              ${'with the value of the "at_platform" field, wrapped in square brackets'}                        | ${'https://www.bbc.com/mundo?at_medium=sl&at_platform=google'}     | ${'SEC--[google]----'}
              ${'the value of the "at_creation" field, wrapped in square brackets'}                             | ${'https://www.bbc.com/mundo?at_medium=sl&at_creation=my_adgroup'} | ${'SEC---[my_adgroup]---'}
      Severity: Major
      Found in src/app/lib/analyticsUtils/index.test.js and 2 other locations - About 2 hrs to fix
      src/app/hooks/useImageColour/index.test.js on lines 63..71
      src/app/lib/utilities/filterPopularStaleData/isDataStale.test.js on lines 25..35

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

      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

        it('should return branded image for test', () => {
          process.env.SIMORGH_ICHEF_BASE_URL = 'https://ichef.test.bbci.co.uk';
      
          const locator = '729E/test/_63724392_gettyimages-1098075358.jpg';
          const service = 'pidgin';
      Severity: Major
      Found in src/app/lib/utilities/getBrandedImage/index.test.js and 2 other locations - About 2 hrs to fix
      src/app/lib/utilities/getBrandedImage/index.test.js on lines 20..30
      src/app/lib/utilities/getBrandedImage/index.test.js on lines 32..42

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

      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

        it('should return branded image for local', () => {
          process.env.SIMORGH_ICHEF_BASE_URL = 'https://ichef.test.bbci.co.uk';
      
          const locator = '729E/test/_63724392_gettyimages-1098075358.jpg';
          const service = 'igbo';
      Severity: Major
      Found in src/app/lib/utilities/getBrandedImage/index.test.js and 2 other locations - About 2 hrs to fix
      src/app/lib/utilities/getBrandedImage/index.test.js on lines 8..18
      src/app/lib/utilities/getBrandedImage/index.test.js on lines 32..42

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

      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

        it('should return branded image for production', () => {
          process.env.SIMORGH_ICHEF_BASE_URL = 'https://ichef.bbci.co.uk';
      
          const locator = '729E/test/_63724392_gettyimages-1098075358.jpg';
          const service = 'korean';
      Severity: Major
      Found in src/app/lib/utilities/getBrandedImage/index.test.js and 2 other locations - About 2 hrs to fix
      src/app/lib/utilities/getBrandedImage/index.test.js on lines 8..18
      src/app/lib/utilities/getBrandedImage/index.test.js on lines 20..30

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

      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 P = styled.p`
        ${({ service }) => getSansRegular(service)}
        ${({ script }) => getBodyCopy(script)}
        color: ${props => props.theme.palette.EBON}
      `;
      Severity: Major
      Found in src/app/legacy/components/Promo/body.jsx and 2 other locations - About 2 hrs to fix
      src/app/legacy/components/Promo/footer.jsx on lines 6..10
      src/app/legacy/containers/CpsRecommendations/RecommendationsPromo/index.jsx on lines 88..96

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 76.

      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 Footer = styled.footer`
        ${({ service }) => getSansRegular(service)}
        ${({ script }) => getBrevier(script)}
        color: ${props => props.theme.palette.RHINO}
      `;
      Severity: Major
      Found in src/app/legacy/components/Promo/footer.jsx and 2 other locations - About 2 hrs to fix
      src/app/legacy/components/Promo/body.jsx on lines 6..10
      src/app/legacy/containers/CpsRecommendations/RecommendationsPromo/index.jsx on lines 88..96

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 76.

      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

        relativeTime: {
          future: 'na %s',
          past: '%s gara aga',
          s: 'ntabịanya ole na ole',
          ss: 'ntabịanya %d',
      Severity: Major
      Found in src/app/legacy/psammead/psammead-locales/moment/ig.js and 1 other location - About 2 hrs to fix
      src/app/legacy/psammead/psammead-locales/moment/pcm.js on lines 32..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 76.

      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

          <Grid
            item
            columns={leadingStoryColumns}
            as={StoryPromoLi}
            parentColumns={parentColumns}
      Severity: Major
      Found in src/app/legacy/containers/FrontPageStoryRows/index.jsx and 1 other location - About 2 hrs to fix
      src/app/legacy/containers/FrontPageStoryRows/index.jsx on lines 72..80

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

      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

          <Grid
            item
            columns={topStoryColumns}
            as={StoryPromoLi}
            parentColumns={parentColumns}
      Severity: Major
      Found in src/app/legacy/containers/FrontPageStoryRows/index.jsx and 1 other location - About 2 hrs to fix
      src/app/legacy/containers/FrontPageStoryRows/index.jsx on lines 92..100

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

      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

        relativeTime: {
          future: 'inside %s',
          past: '%s wey don pass',
          s: 'just some seconds',
          ss: '%d seconds',
      Severity: Major
      Found in src/app/legacy/psammead/psammead-locales/moment/pcm.js and 1 other location - About 2 hrs to fix
      src/app/legacy/psammead/psammead-locales/moment/ig.js on lines 29..44

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

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

                  668: function(e, t, n) {
                      "use strict";
                      n.r(t),
                      n.d(t, {
                          fromUtf8: function() {
      Severity: Minor
      Found in public/vendor/cwr.js - About 2 hrs to fix

        Function render has 50 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          render() {
            const { clientSideEnvVariables, css, helmet, ids, isApp, isLite } =
              this.props;
        
            const htmlAttrs = helmet.htmlAttributes.toComponent();
        Severity: Minor
        Found in ws-nextjs-app/pages/_document.page.tsx - About 2 hrs to fix
          Severity
          Category
          Status
          Source
          Language