Showing 2,206 of 2,206 total issues

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

    it.each`
      typography
      ${'atlas'}
      ${'bodyCopy'}
      ${'brevier'}
src/app/lib/analyticsUtils/index.test.js on lines 757..769

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

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

  it('should call the click tracking hook with the correct params', () => {
    const clickTrackerSpy = jest.spyOn(clickTracking, 'default');
    render(<Component links={links} />);

    expect(clickTrackerSpy).toHaveBeenCalledWith({
src/app/legacy/containers/PodcastExternalLinks/index.test.jsx on lines 105..113

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

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

      it.each`
        expectation                                                          | href                                                                | expectedValue
        ${'the value of the "at_campaign" field'}                            | ${'https://www.bbc.com/mundo?at_medium=custom123&at_campaign=56'}   | ${'CS123-56----'}
        ${'the value of the "at_custom1" field, wrapped in square brackets'} | ${'https://www.bbc.com/mundo?at_medium=custom123&at_custom1=var_1'} | ${'CS123--[var_1]---'}
        ${'the value of the "at_custom2" field, wrapped in square brackets'} | ${'https://www.bbc.com/mundo?at_medium=custom123&at_custom2=var_2'} | ${'CS123---[var_2]--'}
Severity: Major
Found in src/app/lib/analyticsUtils/index.test.js and 1 other location - About 2 hrs to fix
src/app/legacy/psammead/gel-foundations/tests/getTypeSizes.test.js on lines 32..54

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

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 getCookieBannerRejectInManageSettings = (service, variant) =>
  cy
    .get('[data-testid=amp-cookie-banner-manage-settings]')
    .find('button')
    .contains(
cypress/e2e/specialFeatures/utilities/cookiePrivacyBanner/index.js on lines 82..89

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

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

    jest.isolateModules(() => {
      try {
        // eslint-disable-next-line global-require
        require('./generateTimeFormats');
      } catch (e) {
src/app/legacy/containers/ArticleTimestamp/timeFormatTests/generateTimeFormats.test.js on lines 35..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 75.

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

    jest.isolateModules(() => {
      try {
        // eslint-disable-next-line global-require
        require('./generateTimeFormats');
      } catch (e) {
src/app/legacy/containers/ArticleTimestamp/timeFormatTests/generateTimeFormats.test.js on lines 18..27

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

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

  it('should call the view tracking hook with the correct params', () => {
    const viewTrackerSpy = jest.spyOn(viewTracking, 'default');
    render(<Component links={links} />);

    expect(viewTrackerSpy).toHaveBeenCalledWith({
src/app/legacy/containers/PodcastExternalLinks/index.test.jsx on lines 115..123

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

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 getCookieBannerAcceptInManageSettings = (service, variant) =>
  cy
    .get('[data-testid=amp-cookie-banner-manage-settings]')
    .find('button')
    .contains(
cypress/e2e/specialFeatures/utilities/cookiePrivacyBanner/index.js on lines 91..98

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

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

const customRender = (
  ui: ReactElement,
  options?: Omit<RenderOptions, 'wrapper'> & Omit<Props, 'children'>,
) => {
  const {
Severity: Minor
Found in src/app/components/react-testing-library-with-providers.tsx - About 1 hr to fix

    Function getServerSideProps has 49 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const getServerSideProps: GetServerSideProps = async context => {
      context.res.setHeader(
        'Cache-Control',
        'public, stale-if-error=300, stale-while-revalidate=120, max-age=30',
      );
    Severity: Minor
    Found in ws-nextjs-app/pages/[service]/send/[id]/[[...variant]].page.tsx - About 1 hr to fix

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

          p09ds7zx: [
            {
              linkText: 'Spotify',
              linkUrl:
                'https://open.spotify.com/show/6BGVmN2D82U8hGgDBA4N07?si=9_IClv8KTQyFS4N9jQiSpw',
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 3..26
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 27..50
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 83..106
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 107..130
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 186..209
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 3..25
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 26..48
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 49..72
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 3..27
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 28..51
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/urdu.js on lines 3..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 74.

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

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

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

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

      Refactorings

      Further Reading

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

                <Grid
                  dir={dir}
                  item
                  columns={{
                    group0: 6,
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1315..1328
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1385..1398
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1399..1412
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1413..1426
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1427..1440

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

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

          p0clc83k: [
            {
              linkText: 'Spotify',
              linkUrl: 'https://open.spotify.com/show/0sgucaqSDSOg30tyDdq960',
              linkType: 'spotify',
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 3..26
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 27..50
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 83..106
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 107..130
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 131..155
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 3..25
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 26..48
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 49..72
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 3..27
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 28..51
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/urdu.js on lines 3..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 74.

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

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

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

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

      Refactorings

      Further Reading

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

                <Grid
                  dir={dir}
                  item
                  columns={{
                    group0: 6,
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1371..1384
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1385..1398
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1399..1412
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1413..1426
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1427..1440

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

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

          p0552909: [
            {
              linkText: 'Spotify',
              linkUrl: 'https://open.spotify.com/show/1eqTGd8QFThO8jOOl7zWoY',
              linkType: 'spotify',
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 27..50
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 83..106
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 107..130
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 131..155
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 186..209
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 3..25
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 26..48
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 49..72
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 3..27
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 28..51
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/urdu.js on lines 3..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 74.

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

          p09431p4: [
            {
              linkText: 'Spotify',
              linkUrl: 'https://open.spotify.com/show/4f0yoffmGYYqaTAwI4Ngal',
              linkType: 'spotify',
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 3..26
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 27..50
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 83..106
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 107..130
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 131..155
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 186..209
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 26..48
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 49..72
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 3..27
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 28..51
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/urdu.js on lines 3..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 74.

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

          p09437hm: [
            {
              linkText: 'Spotify',
              linkUrl: 'https://open.spotify.com/show/0LK47dXlIqm0Gm1DLeYAIS',
              linkType: 'spotify',
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 3..26
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 27..50
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 83..106
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 107..130
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 131..155
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 186..209
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 3..25
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 49..72
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 3..27
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 28..51
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/urdu.js on lines 3..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 74.

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

          p0b1s4nm: [
            {
              linkText: 'Spotify',
              linkUrl: 'https://open.spotify.com/show/2HlWdNCZ3DpwUMXL4FlHs6',
              linkType: 'spotify',
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 3..26
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 27..50
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 83..106
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 107..130
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 131..155
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 186..209
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 3..25
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/marathi.js on lines 26..48
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 3..27
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 28..51
      src/app/routes/onDemandAudio/tempData/podcastExternalLinks/urdu.js on lines 3..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 74.

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

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

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

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

      Refactorings

      Further Reading

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

                <Grid
                  dir={dir}
                  item
                  columns={{
                    group0: 6,
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1315..1328
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1371..1384
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1399..1412
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1413..1426
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1427..1440

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

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

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

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

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

      Refactorings

      Further Reading

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

                <Grid
                  dir={dir}
                  item
                  columns={{
                    group0: 6,
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1315..1328
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1371..1384
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1385..1398
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1413..1426
      src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1427..1440

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

      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