bbc/psammead

View on GitHub

Showing 168 of 201 total issues

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

  kyrgyz: {
    text: 'Казакстан Назарбаевден башка президентти көрө',
    longText:
      'Кыргыз Республикасынын Жогорку Кеңешинин депутаты Каныбек Иманалиевдин Чыңгыз Айтматовдун 90 жылдыгына арналган илимий-практикалык конференцияда сүйлөгөн сөзү.',
    script: 'cyrillic',
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 7..19
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 20..32
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 33..45
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 60..72
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 73..85
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 86..98
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 99..111
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 112..124
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 125..137
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 138..150
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 151..163
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 164..176
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 177..190
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 191..203
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 204..216
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 230..242
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 243..255
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 256..268
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 269..281
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 282..294
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 308..320
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 351..363
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 364..376
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 377..389
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 390..402
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 433..445
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 446..459
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 473..485
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 486..499
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 500..513
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 514..526
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 527..539
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 540..552
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 583..596
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 611..624
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 625..637
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 638..650

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

  portuguese: {
    text: 'Como dormir melhor (e em menos tempo)',
    longText:
      'Medidas anunciadas no encontro entre Bolsonaro e Trump celebram aproximação com o governo americano - mas elas agora precisam passar pelo teste da concretização',
    script: 'latinDiacritics',
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 7..19
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 20..32
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 33..45
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 60..72
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 73..85
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 86..98
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 99..111
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 112..124
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 125..137
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 138..150
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 151..163
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 164..176
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 177..190
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 191..203
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 204..216
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 217..229
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 230..242
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 243..255
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 256..268
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 269..281
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 282..294
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 308..320
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 351..363
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 377..389
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 390..402
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 433..445
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 446..459
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 473..485
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 486..499
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 500..513
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 514..526
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 527..539
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 540..552
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 583..596
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 611..624
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 625..637
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 638..650

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

  sinhala: {
    text: 'සිවිල් යුද ගැටුම් හමුවේ කොටු වී සිටි සිවිල් වැසියන්',
    longText:
      'ජනාධිපතිවරණයට පෙර එම ගිවිසුමට අනිවාර්යයෙන්ම අත්සන් තබන බවට නව ප්‍රජාතන්ත්‍රවාදී පෙරමුණ අවධාරණය කළ අතර, ශ්‍රී ලංකා පොදුජන පෙරමුණ චෝදනා කළේ, එය "ඇමෙරිකානු මර උගුලක්" වන අතර ඒ හරහා ඇමෙරිකාවට ශ්‍රී ලංකාවේ ඉඩම් "කුණු කොල්ලයට" විකිණෙන බවටය.',
    script: 'sinhalese',
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 7..19
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 20..32
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 33..45
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 60..72
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 73..85
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 86..98
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 99..111
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 112..124
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 125..137
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 138..150
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 151..163
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 164..176
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 177..190
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 191..203
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 204..216
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 217..229
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 230..242
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 243..255
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 256..268
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 269..281
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 282..294
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 308..320
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 351..363
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 364..376
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 377..389
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 390..402
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 446..459
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 473..485
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 486..499
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 500..513
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 514..526
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 527..539
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 540..552
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 583..596
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 611..624
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 625..637
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 638..650

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

  swahili: {
    text: 'Tetesi za soka Ulaya Jumatano tarehe 27.11.2019',
    longText:
      'Rais aliyechaguliwa na wengi atahitaji washirika wangi bungeni kuhakikisha kwamba kuna upitishwaji wa haraka wa miswada mbali na kuidhinisha maswala muhimu ya biashara za serikali iwapo mapendekezo ya BBI yatakubalika.',
    script: 'latin',
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 7..19
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 20..32
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 33..45
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 60..72
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 73..85
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 86..98
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 99..111
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 112..124
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 125..137
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 138..150
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 151..163
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 164..176
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 177..190
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 191..203
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 204..216
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 217..229
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 230..242
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 243..255
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 256..268
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 269..281
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 282..294
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 308..320
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 351..363
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 364..376
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 377..389
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 390..402
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 433..445
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 446..459
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 486..499
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 500..513
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 514..526
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 527..539
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 540..552
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 583..596
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 611..624
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 625..637
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 638..650

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

  burmese: {
    text: 'အောက်စဖို့ဒ် ဆရာတော် ပါမောက္ခ ဒေါက်တာအရှင်ဓမ္မသာမိ',
    longText:
      'တပ်မတော်နဲ့ ကရင်နယ်ခြားစောင့်တပ် BGF ပူးပေါင်းတပ်ဖွဲ့က MNLA ရဲ့ မြို့နယ်ခွဲရုံး ဖြစ်တဲ့ ဟင်္သာတိုင် ဂိတ်စခန်းနဲ့ ဂျပန်ရေတွင်းတို့ကို ထိန်းချုပ်ထားတယ်လို့ ဆိုပါတယ်။',
    script: 'burmese',
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 7..19
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 20..32
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 33..45
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 60..72
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 73..85
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 99..111
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 112..124
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 125..137
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 138..150
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 151..163
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 164..176
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 177..190
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 191..203
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 204..216
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 217..229
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 230..242
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 243..255
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 256..268
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 269..281
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 282..294
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 308..320
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 351..363
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 364..376
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 377..389
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 390..402
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 433..445
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 446..459
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 473..485
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 486..499
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 500..513
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 514..526
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 527..539
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 540..552
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 583..596
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 611..624
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 625..637
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 638..650

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

  naidheachdan: {
    text: 'Bana-chroitear òg sna Hearadh agus an turas sònraichte aice',
    longText:
      "Bha i riamh airson a dhol a Phabaigh airson obair chudromach a bhios croitearan na sgìre a' dèanamh a h-uile bliadhna, agus am bliadhna fhuair i an cothrom a dhol còmhla riutha.",
    script: 'latin',
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 7..19
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 20..32
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 33..45
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 60..72
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 73..85
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 86..98
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 99..111
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 112..124
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 125..137
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 138..150
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 151..163
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 164..176
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 177..190
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 191..203
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 204..216
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 217..229
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 230..242
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 243..255
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 269..281
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 282..294
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 308..320
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 351..363
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 364..376
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 377..389
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 390..402
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 433..445
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 446..459
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 473..485
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 486..499
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 500..513
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 514..526
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 527..539
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 540..552
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 583..596
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 611..624
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 625..637
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 638..650

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

  telugu: {
    text:
      'నల్లగొండ ఫ్లోరైడ్ సమస్య గురించి నాటి ప్రధాని అటల్ బిహారీ వాజపేయికి దుశ్చర్ల సత్యనారాయణ వివరించారు',
    longText:
      'చైనా ప్రభుత్వం ఈ కాన్సంట్రేషన్ క్యాంపులను విద్య, శిక్షణ కేంద్రాలుగా చెబుతోంది. చైనా ప్రభుత్వం వీగర్ ముస్లింల విషయంలో వ్యవహరిస్తున్న తీరుపై ఫిరోజా ఆది, సోమవారాల్లో మూడు వీడియోలు పోస్ట్ చేశారు.',
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 7..19
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 20..32
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 33..45
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 60..72
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 73..85
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 86..98
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 99..111
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 112..124
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 125..137
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 138..150
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 151..163
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 164..176
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 177..190
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 191..203
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 204..216
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 217..229
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 230..242
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 243..255
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 256..268
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 269..281
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 282..294
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 308..320
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 351..363
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 364..376
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 377..389
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 390..402
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 433..445
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 446..459
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 473..485
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 486..499
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 514..526
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 527..539
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 540..552
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 583..596
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 611..624
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 625..637
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 638..650

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 tigrinyaStyles = {
  sansRegular: `
    ${tigrinyaFontFamily}
    ${getFontStyleAndWeight('normal', 400)}
  `,
Severity: Major
Found in packages/utilities/psammead-styles/src/font-families.js and 16 other locations - About 1 hr to fix
packages/utilities/psammead-styles/src/font-families.js on lines 85..94
packages/utilities/psammead-styles/src/font-families.js on lines 101..110
packages/utilities/psammead-styles/src/font-families.js on lines 117..126
packages/utilities/psammead-styles/src/font-families.js on lines 133..142
packages/utilities/psammead-styles/src/font-families.js on lines 149..158
packages/utilities/psammead-styles/src/font-families.js on lines 165..174
packages/utilities/psammead-styles/src/font-families.js on lines 181..190
packages/utilities/psammead-styles/src/font-families.js on lines 197..206
packages/utilities/psammead-styles/src/font-families.js on lines 213..222
packages/utilities/psammead-styles/src/font-families.js on lines 229..238
packages/utilities/psammead-styles/src/font-families.js on lines 245..254
packages/utilities/psammead-styles/src/font-families.js on lines 262..271
packages/utilities/psammead-styles/src/font-families.js on lines 278..287
packages/utilities/psammead-styles/src/font-families.js on lines 294..303
packages/utilities/psammead-styles/src/font-families.js on lines 310..319
packages/utilities/psammead-styles/src/font-families.js on lines 326..335

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

  afaanoromoo: {
    text: "Gammadoo ta'uun akkanumaan hin dhufu.",
    longText:
      "MM Abiy Ahimed paartii isaanii ADWUI jedhamuun waggoota 28'f biyya bulchaa ture walitti baqsuun paartii Badhaadhinaa [PP] jedhamu hundeessaa jiru.",
    script: 'latin',
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 20..32
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 33..45
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 60..72
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 73..85
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 86..98
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 99..111
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 112..124
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 125..137
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 138..150
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 151..163
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 164..176
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 177..190
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 191..203
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 204..216
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 217..229
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 230..242
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 243..255
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 256..268
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 269..281
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 282..294
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 308..320
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 351..363
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 364..376
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 377..389
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 390..402
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 433..445
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 446..459
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 473..485
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 486..499
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 500..513
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 514..526
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 527..539
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 540..552
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 583..596
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 611..624
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 625..637
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 638..650

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

  indonesia: {
    text:
      'Ratu kripto: Bagaimana Ruja Ignatova menipu dunia kemudian menghilang',
    longText:
      'Seorang perempuan yang menyebut dirinya ratu kripto dan meraup US$4 miliar atau Rp56 triliun dengan menjual mata uang digital palsu dan kemudian menghilang.',
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 7..19
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 20..32
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 33..45
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 60..72
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 73..85
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 86..98
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 99..111
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 112..124
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 125..137
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 138..150
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 151..163
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 164..176
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 191..203
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 204..216
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 217..229
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 230..242
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 243..255
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 256..268
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 269..281
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 282..294
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 308..320
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 351..363
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 364..376
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 377..389
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 390..402
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 433..445
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 446..459
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 473..485
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 486..499
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 500..513
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 514..526
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 527..539
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 540..552
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 583..596
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 611..624
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 625..637
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 638..650

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

  marathi: {
    text: 'तो फोटो मुंबईकर आजही विसरू शकलेले नाहीत.',
    longText:
      "तो फोटो मुंबईकर आजही विसरू शकलेले नाहीत. पण त्या फोटोनं मिळालेल्या प्रसिद्धीपासून डि'सुझा यांनी दूर राहणंच पसंत केलं. पण त्या फोटोनं मिळालेल्या प्रसिद्धीपासून डि'सुझा यांनी दूर राहणंच पसंत केलं.",
    script: 'hindi',
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 7..19
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 20..32
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 33..45
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 60..72
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 73..85
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 86..98
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 99..111
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 112..124
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 125..137
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 138..150
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 151..163
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 164..176
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 177..190
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 191..203
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 204..216
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 217..229
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 243..255
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 256..268
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 269..281
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 282..294
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 308..320
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 351..363
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 364..376
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 377..389
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 390..402
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 433..445
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 446..459
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 473..485
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 486..499
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 500..513
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 514..526
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 527..539
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 540..552
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 583..596
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 611..624
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 625..637
packages/utilities/psammead-storybook-helpers/src/text-variants.js on lines 638..650

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

const yorubaNavData = [
  {
    title: 'Ìròyìn',
    url: '/yoruba',
  },
packages/components/psammead-navigation/testHelpers/igbo.js on lines 1..18

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

export const F_NOTO_SERIF_BENGALI_REGULAR = baseUrlOverride => `
  @font-face {
    font-family: "Noto Serif Bengali";
    font-weight: 400;
    font-style: normal;
Severity: Major
Found in packages/utilities/psammead-styles/src/fonts.js and 2 other locations - About 55 mins to fix
packages/utilities/psammead-styles/src/fonts.js on lines 297..312
packages/utilities/psammead-styles/src/fonts.js on lines 333..348

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

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

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

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

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

Refactorings

Further Reading

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

export const F_NOTO_SANS_TAMIL_BOLD = baseUrlOverride => `
  @font-face {
    font-family: "Noto Sans Tamil";
    font-weight: 700;
    font-style: normal;
Severity: Major
Found in packages/utilities/psammead-styles/src/fonts.js and 2 other locations - About 55 mins to fix
packages/utilities/psammead-styles/src/fonts.js on lines 314..330
packages/utilities/psammead-styles/src/fonts.js on lines 468..484

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

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

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

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

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

Refactorings

Further Reading

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

export const F_NOTO_SANS_TAMIL_REGULAR = baseUrlOverride => `
  @font-face {
    font-family: "Noto Sans Tamil";
    font-weight: 400;
    font-style: normal;
Severity: Major
Found in packages/utilities/psammead-styles/src/fonts.js and 2 other locations - About 55 mins to fix
packages/utilities/psammead-styles/src/fonts.js on lines 297..312
packages/utilities/psammead-styles/src/fonts.js on lines 451..466

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

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

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

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

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

Refactorings

Further Reading

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

export const F_NOTO_SERIF_SINHALA_BOLD = baseUrlOverride => `
  @font-face {
    font-family: "Noto Serif Sinhala";
    font-weight: 700;
    font-style: normal;
Severity: Major
Found in packages/utilities/psammead-styles/src/fonts.js and 2 other locations - About 55 mins to fix
packages/utilities/psammead-styles/src/fonts.js on lines 350..366
packages/utilities/psammead-styles/src/fonts.js on lines 468..484

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

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

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

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

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

Refactorings

Further Reading

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

export const F_NOTO_SERIF_SINHALA_REGULAR = baseUrlOverride => `
  @font-face {
    font-family: "Noto Serif Sinhala";
    font-weight: 400;
    font-style: normal;
Severity: Major
Found in packages/utilities/psammead-styles/src/fonts.js and 2 other locations - About 55 mins to fix
packages/utilities/psammead-styles/src/fonts.js on lines 333..348
packages/utilities/psammead-styles/src/fonts.js on lines 451..466

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

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

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

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

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

Refactorings

Further Reading

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

export const F_NOTO_SERIF_BENGALI_BOLD = baseUrlOverride => `
  @font-face {
    font-family: "Noto Serif Bengali";
    font-weight: 700;
    font-style: normal;
Severity: Major
Found in packages/utilities/psammead-styles/src/fonts.js and 2 other locations - About 55 mins to fix
packages/utilities/psammead-styles/src/fonts.js on lines 314..330
packages/utilities/psammead-styles/src/fonts.js on lines 350..366

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

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

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

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

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

Refactorings

Further Reading

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

const ltrStyles = `
  margin-left: ${GEL_MARGIN_BELOW_400PX};
  border-left: 1px solid ${C_METAL};

  @media (min-width: ${GEL_GROUP_2_SCREEN_WIDTH_MIN}) and (max-width: ${GEL_GROUP_3_SCREEN_WIDTH_MAX}) {
Severity: Minor
Found in packages/components/psammead-caption/src/index.jsx and 1 other location - About 50 mins to fix
packages/components/psammead-caption/src/index.jsx on lines 19..34

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

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

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

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

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

Refactorings

Further Reading

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

const rtlStyles = `
  margin-right: ${GEL_MARGIN_BELOW_400PX};
  border-right: 1px solid ${C_METAL};

  @media (min-width: ${GEL_GROUP_2_SCREEN_WIDTH_MIN}) and (max-width: ${GEL_GROUP_3_SCREEN_WIDTH_MAX}) {
Severity: Minor
Found in packages/components/psammead-caption/src/index.jsx and 1 other location - About 50 mins to fix
packages/components/psammead-caption/src/index.jsx on lines 36..51

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

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