Showing 2,206 of 2,206 total issues

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

const bengaliStyles = {
  sansRegular: `
    ${bengaliFontFamily}
    ${getFontStyleAndWeight('normal', 400)}
  `,
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 86..95
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 102..111
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 134..143
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 150..159
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 166..175
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 182..191
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 198..207
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 214..223
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 230..239
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 246..255
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 263..272
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 279..288
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 295..304
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 311..320
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 327..336
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 343..352

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

const tamilStyles = {
  sansRegular: `
    ${tamilFontFamily}
    ${getFontStyleAndWeight('normal', 400)}
  `,
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 86..95
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 102..111
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 118..127
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 134..143
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 150..159
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 166..175
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 182..191
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 198..207
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 214..223
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 230..239
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 246..255
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 263..272
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 279..288
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 311..320
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 327..336
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 343..352

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

  somali: {
    articles: 'Sept 2019',
    frontPage: '23rd April 2020',
    liveRadio: '30th Jan 2020',
    mediaAssetPage: '5th March 2020',
Severity: Major
Found in scripts/releaseInfo/launchDates.js and 10 other locations - About 1 hr to fix
scripts/releaseInfo/launchDates.js on lines 13..24
scripts/releaseInfo/launchDates.js on lines 68..79
scripts/releaseInfo/launchDates.js on lines 105..116
scripts/releaseInfo/launchDates.js on lines 168..179
scripts/releaseInfo/launchDates.js on lines 218..229
scripts/releaseInfo/launchDates.js on lines 230..241
scripts/releaseInfo/launchDates.js on lines 327..338
scripts/releaseInfo/launchDates.js on lines 339..350
scripts/releaseInfo/launchDates.js on lines 421..432
scripts/releaseInfo/launchDates.js on lines 433..444

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

const reithQalamStyles = {
  sansRegular: `
    ${reithQalamFontFamily}
    ${getFontStyleAndWeight('normal', 400)}
  `,
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 102..111
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 118..127
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 134..143
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 150..159
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 166..175
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 182..191
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 198..207
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 214..223
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 230..239
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 246..255
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 263..272
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 279..288
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 295..304
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 311..320
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 327..336
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 343..352

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

const japaneseStyles = {
  sansRegular: `
    ${japaneseFontFamily}
    ${getFontStyleAndWeight('normal', 400)}
  `,
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 86..95
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 102..111
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 118..127
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 134..143
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 150..159
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 166..175
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 182..191
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 214..223
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 230..239
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 246..255
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 263..272
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 279..288
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 295..304
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 311..320
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 327..336
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 343..352

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

  urdu: {
    articles: 'Sept 2019',
    frontPage: '3rd March 2020',
    liveRadio: '4th Feb 2020',
    mediaAssetPage: '5th March 2020',
Severity: Major
Found in scripts/releaseInfo/launchDates.js and 10 other locations - About 1 hr to fix
scripts/releaseInfo/launchDates.js on lines 13..24
scripts/releaseInfo/launchDates.js on lines 68..79
scripts/releaseInfo/launchDates.js on lines 105..116
scripts/releaseInfo/launchDates.js on lines 168..179
scripts/releaseInfo/launchDates.js on lines 218..229
scripts/releaseInfo/launchDates.js on lines 230..241
scripts/releaseInfo/launchDates.js on lines 311..322
scripts/releaseInfo/launchDates.js on lines 327..338
scripts/releaseInfo/launchDates.js on lines 339..350
scripts/releaseInfo/launchDates.js on lines 433..444

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

const hindiStyles = {
  sansRegular: `
    ${hindiFontFamily}
    ${getFontStyleAndWeight('normal', 400)}
  `,
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 86..95
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 102..111
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 118..127
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 134..143
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 150..159
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 166..175
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 198..207
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 214..223
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 230..239
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 246..255
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 263..272
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 279..288
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 295..304
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 311..320
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 327..336
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 343..352

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

const sinhalaStyles = {
  sansRegular: `
    ${sinhalaFontFamily}
    ${getFontStyleAndWeight('normal', 400)}
  `,
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 86..95
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 102..111
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 118..127
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 134..143
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 150..159
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 166..175
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 182..191
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 198..207
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 214..223
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 230..239
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 246..255
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 263..272
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 295..304
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 311..320
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 327..336
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 343..352

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

  afrique: {
    articles: 'Sept 2019',
    frontPage: '23rd April 2020',
    liveRadio: '10th Jan 2020',
    mediaAssetPage: '7th April 2020',
Severity: Major
Found in scripts/releaseInfo/launchDates.js and 10 other locations - About 1 hr to fix
scripts/releaseInfo/launchDates.js on lines 68..79
scripts/releaseInfo/launchDates.js on lines 105..116
scripts/releaseInfo/launchDates.js on lines 168..179
scripts/releaseInfo/launchDates.js on lines 218..229
scripts/releaseInfo/launchDates.js on lines 230..241
scripts/releaseInfo/launchDates.js on lines 311..322
scripts/releaseInfo/launchDates.js on lines 327..338
scripts/releaseInfo/launchDates.js on lines 339..350
scripts/releaseInfo/launchDates.js on lines 421..432
scripts/releaseInfo/launchDates.js on lines 433..444

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

  persian: {
    articles: 'Sept 2019',
    frontPage: '23rd April 2020',
    liveRadio: '4th Feb 2020',
    mediaAssetPage: '27th Feb 2020',
Severity: Major
Found in scripts/releaseInfo/launchDates.js and 10 other locations - About 1 hr to fix
scripts/releaseInfo/launchDates.js on lines 13..24
scripts/releaseInfo/launchDates.js on lines 68..79
scripts/releaseInfo/launchDates.js on lines 105..116
scripts/releaseInfo/launchDates.js on lines 168..179
scripts/releaseInfo/launchDates.js on lines 218..229
scripts/releaseInfo/launchDates.js on lines 311..322
scripts/releaseInfo/launchDates.js on lines 327..338
scripts/releaseInfo/launchDates.js on lines 339..350
scripts/releaseInfo/launchDates.js on lines 421..432
scripts/releaseInfo/launchDates.js on lines 433..444

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

  swahili: {
    articles: 'Sept 2019',
    frontPage: '23rd April 2020',
    liveRadio: '10th Jan 2020',
    mediaAssetPage: '5th March 2020',
Severity: Major
Found in scripts/releaseInfo/launchDates.js and 10 other locations - About 1 hr to fix
scripts/releaseInfo/launchDates.js on lines 13..24
scripts/releaseInfo/launchDates.js on lines 68..79
scripts/releaseInfo/launchDates.js on lines 105..116
scripts/releaseInfo/launchDates.js on lines 168..179
scripts/releaseInfo/launchDates.js on lines 218..229
scripts/releaseInfo/launchDates.js on lines 230..241
scripts/releaseInfo/launchDates.js on lines 311..322
scripts/releaseInfo/launchDates.js on lines 339..350
scripts/releaseInfo/launchDates.js on lines 421..432
scripts/releaseInfo/launchDates.js on lines 433..444

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

  tamil: {
    articles: 'Sept 2019',
    frontPage: '13th Jan 2020',
    liveRadio: '14th Jan 2020',
    mediaAssetPage: '5th March 2020',
Severity: Major
Found in scripts/releaseInfo/launchDates.js and 10 other locations - About 1 hr to fix
scripts/releaseInfo/launchDates.js on lines 13..24
scripts/releaseInfo/launchDates.js on lines 68..79
scripts/releaseInfo/launchDates.js on lines 105..116
scripts/releaseInfo/launchDates.js on lines 168..179
scripts/releaseInfo/launchDates.js on lines 218..229
scripts/releaseInfo/launchDates.js on lines 230..241
scripts/releaseInfo/launchDates.js on lines 311..322
scripts/releaseInfo/launchDates.js on lines 327..338
scripts/releaseInfo/launchDates.js on lines 421..432
scripts/releaseInfo/launchDates.js on lines 433..444

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

const marathiStyles = {
  sansRegular: `
    ${marathiFontFamily}
    ${getFontStyleAndWeight('normal', 400)}
  `,
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 86..95
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 102..111
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 118..127
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 134..143
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 150..159
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 166..175
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 182..191
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 198..207
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 214..223
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 246..255
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 263..272
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 279..288
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 295..304
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 311..320
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 327..336
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 343..352

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

  burmese: {
    articles: 'Sept 2019',
    frontPage: '19th Feb 2020',
    liveRadio: '10th Jan 2020',
    mediaAssetPage: '5th March 2020',
Severity: Major
Found in scripts/releaseInfo/launchDates.js and 10 other locations - About 1 hr to fix
scripts/releaseInfo/launchDates.js on lines 13..24
scripts/releaseInfo/launchDates.js on lines 105..116
scripts/releaseInfo/launchDates.js on lines 168..179
scripts/releaseInfo/launchDates.js on lines 218..229
scripts/releaseInfo/launchDates.js on lines 230..241
scripts/releaseInfo/launchDates.js on lines 311..322
scripts/releaseInfo/launchDates.js on lines 327..338
scripts/releaseInfo/launchDates.js on lines 339..350
scripts/releaseInfo/launchDates.js on lines 421..432
scripts/releaseInfo/launchDates.js on lines 433..444

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

const burmeseStyles = {
  sansRegular: `
    ${burmeseFontFamily}
    ${getFontStyleAndWeight('normal', 400)}
  `,
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 86..95
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 102..111
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 118..127
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 150..159
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 166..175
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 182..191
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 198..207
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 214..223
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 230..239
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 246..255
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 263..272
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 279..288
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 295..304
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 311..320
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 327..336
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 343..352

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

const nepaliStyles = {
  sansRegular: `
    ${nepaliFontFamily}
    ${getFontStyleAndWeight('normal', 400)}
  `,
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 86..95
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 102..111
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 118..127
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 134..143
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 150..159
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 166..175
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 182..191
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 198..207
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 214..223
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 230..239
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 263..272
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 279..288
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 295..304
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 311..320
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 327..336
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 343..352

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

  uzbek: {
    articles: 'Sept 2019',
    frontPage: '13th Jan 2020',
    liveRadio: '4th Feb 2020',
    mediaAssetPage: '26th March 2020',
Severity: Major
Found in scripts/releaseInfo/launchDates.js and 10 other locations - About 1 hr to fix
scripts/releaseInfo/launchDates.js on lines 13..24
scripts/releaseInfo/launchDates.js on lines 68..79
scripts/releaseInfo/launchDates.js on lines 105..116
scripts/releaseInfo/launchDates.js on lines 168..179
scripts/releaseInfo/launchDates.js on lines 218..229
scripts/releaseInfo/launchDates.js on lines 230..241
scripts/releaseInfo/launchDates.js on lines 311..322
scripts/releaseInfo/launchDates.js on lines 327..338
scripts/releaseInfo/launchDates.js on lines 339..350
scripts/releaseInfo/launchDates.js on lines 421..432

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

const gujaratiStyles = {
  sansRegular: `
    ${gujaratiFontFamily}
    ${getFontStyleAndWeight('normal', 400)}
  `,
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 86..95
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 102..111
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 118..127
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 134..143
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 150..159
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 182..191
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 198..207
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 214..223
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 230..239
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 246..255
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 263..272
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 279..288
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 295..304
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 311..320
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 327..336
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 343..352

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

const thaiStyles = {
  sansRegular: `
    ${thaiFontFamily}
    ${getFontStyleAndWeight('normal', 400)}
  `,
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 86..95
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 102..111
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 118..127
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 134..143
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 150..159
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 166..175
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 182..191
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 198..207
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 214..223
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 230..239
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 246..255
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 263..272
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 279..288
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 295..304
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 311..320
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 343..352

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

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

const amharicStyles = {
  sansRegular: `
    ${amharicFontFamily}
    ${getFontStyleAndWeight('normal', 400)}
  `,
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 86..95
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 118..127
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 134..143
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 150..159
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 166..175
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 182..191
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 198..207
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 214..223
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 230..239
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 246..255
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 263..272
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 279..288
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 295..304
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 311..320
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 327..336
src/app/legacy/psammead/psammead-styles/src/font-families.js on lines 343..352

Duplicated Code

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

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

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

Tuning

This issue has a mass of 56.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language