Showing 2,206 of 2,206 total issues

Function renderContainer has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const renderContainer = (service: Services, pageData: Article) => {
  const toggleState = {
    cpsRecommendations: {
      enabled: true,
    },
Severity: Minor
Found in src/app/components/OptimizelyRecommendations/index.test.tsx - About 1 hr to fix

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

                    }, e.prototype.disable = function() {
                        this.dispatchManager.disable(),
                        this.pluginManager.disable(),
                        this.eventCache.disable()
                    }, e.prototype.allowCookies = function(e) {
    Severity: Major
    Found in public/vendor/cwr.js and 1 other location - About 1 hr to fix
    public/vendor/cwr.js on lines 4734..4738

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

    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

        canonicalLive: [
          ...bbcDomains,
          'https://chartbeat.com',
          'https://*.chartbeat.com',
          'https://www.youtube.com', // Social Embeds
    Severity: Major
    Found in src/server/utilities/cspHeader/directives.js and 1 other location - About 1 hr to fix
    src/server/utilities/cspHeader/directives.js on lines 101..120

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

    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

        canonicalNonLive: [
          ...bbcDomains,
          'https://chartbeat.com',
          'https://*.chartbeat.com',
          'https://www.youtube.com', // Social Embeds
    Severity: Major
    Found in src/server/utilities/cspHeader/directives.js and 1 other location - About 1 hr to fix
    src/server/utilities/cspHeader/directives.js on lines 67..86

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

    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

                    }, e.prototype.enable = function() {
                        this.eventCache.enable(),
                        this.pluginManager.enable(),
                        this.dispatchManager.enable()
                    }, e.prototype.disable = function() {
    Severity: Major
    Found in public/vendor/cwr.js and 1 other location - About 1 hr to fix
    public/vendor/cwr.js on lines 4738..4742

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

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

                            }, e.prototype.hashBuffer = function() {
                                for (var e = this.buffer, t = this.state, n = t[0], o = t[1], i = t[2], s = t[3], a = t[4], c = t[5], u = t[6], l = t[7], d = 0; d < r.BLOCK_SIZE; d++) {
                                    if (d < 16)
                                        this.temp[d] = (255 & e[4 * d]) << 24 | (255 & e[4 * d + 1]) << 16 | (255 & e[4 * d + 2]) << 8 | 255 & e[4 * d + 3];
                                    else {
    Severity: Minor
    Found in public/vendor/cwr.js - About 1 hr to fix

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

      export const getServerSideProps: GetServerSideProps = async context => {
        const {
          resolvedUrl,
          query: { service, variant },
          req: { headers: reqHeaders },
      Severity: Minor
      Found in ws-nextjs-app/pages/[service]/[[...]].page.tsx - About 1 hr to fix

        Function Component has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const Component = () => {
          return (
            <RequestContextProvider
              pathname="/pathname"
              pageType="avEmbeds"
        Severity: Minor
        Found in ws-nextjs-app/pages/[service]/av-embeds/avembeds.stories.tsx - About 1 hr to fix

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

              p08pxjzf: [
                {
                  linkText: 'Spotify',
                  linkUrl: 'https://open.spotify.com/show/0g5kVHIpOM8V4qtgCqFppm',
                  linkType: 'spotify',
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 51..69
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 223..240
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 41..59
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 60..78
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 92..109
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 52..70
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 3..21
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 22..39
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 104..122

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 57.

          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

              p076qqzl: [
                {
                  linkText: 'Spotify',
                  linkUrl: 'https://open.spotify.com/show/2CR7Wn6IzBVXPxQ5uzkkz1',
                  linkType: 'spotify',
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 51..69
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 223..240
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 41..59
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 60..78
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 92..109
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 52..70
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 3..21
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 40..57
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 104..122

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 57.

          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

              p0703hz7: [
                {
                  linkText: 'Spotify',
                  linkUrl: 'https://open.spotify.com/show/5oMeCbKkRkqx8X7IKpAZzB',
                  linkType: 'spotify',
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 51..69
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 223..240
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 60..78
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 92..109
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 52..70
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 3..21
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 22..39
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 40..57
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 104..122

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 57.

          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

              p0cx5pt6: [
                {
                  linkText: 'Spotify',
                  linkUrl: 'https://open.spotify.com/show/5OZrG0afS38YHeaCnBQbBz',
                  linkType: 'spotify',
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 51..69
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 223..240
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 41..59
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 60..78
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 92..109
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 3..21
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 22..39
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 40..57
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 104..122

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 57.

          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

              p0bw80rj: [
                {
                  linkText: 'Spotify',
                  linkUrl: 'https://open.spotify.com/show/4kInUtgdsMnUxlA7sBKxLL',
                  linkType: 'spotify',
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 51..69
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 223..240
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 41..59
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 60..78
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 52..70
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 3..21
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 22..39
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 40..57
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 104..122

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 57.

          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

              p082h9l8: [
                {
                  linkText: 'Spotify',
                  linkUrl: 'https://open.spotify.com/show/0gNOG2xiadfkRrBJnubfHT',
                  linkType: 'spotify',
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 51..69
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 223..240
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 41..59
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 60..78
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 92..109
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 52..70
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 3..21
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 22..39
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 40..57
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 71..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 57.

          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

              p0fmrg25: [
                {
                  linkText: 'Spotify',
                  linkUrl: 'https://open.spotify.com/show/5SaqjHgniLJIlPKGum79ia',
                  linkType: 'spotify',
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 51..69
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 41..59
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 60..78
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 92..109
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 52..70
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 3..21
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 22..39
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 40..57
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 104..122

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 57.

          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

              p0cyhvny: [
                {
                  linkText: 'Spotify',
                  linkUrl: 'https://open.spotify.com/show/4909a8iZAdJ01DLyJxiwcd',
                  linkType: 'spotify',
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 51..69
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 223..240
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 41..59
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 60..78
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 92..109
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 52..70
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 3..21
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 22..39
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 40..57
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 104..122

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 57.

          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

              p05607v8: [
                {
                  linkText: 'Spotify',
                  linkUrl: 'https://open.spotify.com/show/4J0FwkJYlSvkqZrJWdG9nt',
                  linkType: 'spotify',
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 51..69
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 223..240
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 41..59
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 60..78
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 92..109
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 52..70
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 22..39
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 40..57
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 104..122

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 57.

          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

              p05528hs: [
                {
                  linkText: 'Spotify',
                  linkUrl: 'https://open.spotify.com/show/1izS1hnTt4hDVwysWQ8HYi',
                  linkType: 'spotify',
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 223..240
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 41..59
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 60..78
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 92..109
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 52..70
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 3..21
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 22..39
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 40..57
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 104..122

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 57.

          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

              p08l9l66: [
                {
                  linkText: 'Spotify',
                  linkUrl: 'https://open.spotify.com/show/1mflnDxXdhrxp2BKC782Im',
                  linkType: 'spotify',
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 51..69
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 223..240
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 41..59
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 60..78
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 92..109
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 52..70
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 3..21
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 22..39
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 40..57
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 104..122

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 57.

          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

              p02pc9mc: [
                {
                  linkText: 'Spotify',
                  linkUrl: 'https://open.spotify.com/show/0cHK9mp72ixQv8PVd7Bb3N',
                  linkType: 'spotify',
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 51..69
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/hindi.js on lines 223..240
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 41..59
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/persian.js on lines 92..109
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 52..70
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/portuguese.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 3..21
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 22..39
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 40..57
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 71..89
          src/app/routes/onDemandAudio/tempData/podcastExternalLinks/russian.js on lines 104..122

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 57.

          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