Showing 2,206 of 2,206 total issues

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'بعد 30 ثانية', 'prefix');
  assert.equal(moment(0).from(30000), '30 ثانية', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'za nekoliko sekundi', 'prefix');
  assert.equal(moment(0).from(30000), 'Pre nekoliko sekundi', 'prefix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'за декілька секунд', 'prefix');
  assert.equal(moment(0).from(30000), 'декілька секунд тому', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'Якин фурсат ичида', 'prefix');
  assert.equal(moment(0).from(30000), 'фурсат аввал', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'چند سیکنڈ بعد', 'prefix');
  assert.equal(moment(0).from(30000), 'چند سیکنڈ قبل', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'бирнече секунд ичинде', 'prefix');
  assert.equal(moment(0).from(30000), 'бирнече секунд мурда', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'ní ìṣẹ́jú aayá die', 'prefix');
  assert.equal(moment(0).from(30000), 'ìṣẹ́jú aayá die sẹ́yìn', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'कुछ ही क्षण में', 'prefix');
  assert.equal(moment(0).from(30000), 'कुछ ही क्षण पहले', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'en unos segundos', 'prefix');
  assert.equal(moment(0).from(30000), 'unos segundos', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'තත්පර කිහිපයකින්', 'prefix');
  assert.equal(moment(0).from(30000), 'තත්පර කිහිපය පෙර', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'na ntabịanya ole na ole', 'prefix');
  assert.equal(
    moment(0).from(30000),
    'ntabịanya ole na ole gara aga',
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'काही सेकंदांमध्ये', 'prefix');
  assert.equal(moment(0).from(30000), 'काही सेकंदांपूर्वी', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

  describe('suffix', () => {
    assert.equal(moment(30000).from(0), '幾秒後', 'prefix');
    assert.equal(moment(0).from(30000), '幾秒前', 'prefix');
  });
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'em poucos segundos', 'prefix');
  assert.equal(moment(0).from(30000), 'Há poucos segundos', 'prefix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'อีก ไม่กี่วินาที', 'prefix');
  assert.equal(moment(0).from(30000), 'เมื่อ ไม่กี่วินาที', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'केही क्षणमा', 'prefix');
  assert.equal(moment(0).from(30000), 'केही क्षण पहिले', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'અમુક પળો મા', 'prefix');
  assert.equal(moment(0).from(30000), 'અમુક પળો પહેલા', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'ਕੁਝ ਸਕਿੰਟ ਵਿੱਚ', 'prefix');
  assert.equal(moment(0).from(30000), 'ਕੁਝ ਸਕਿੰਟ ਪਹਿਲਾਂ', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

test('suffix', () => {
  assert.equal(moment(30000).from(0), 'hivi punde baadaye', 'prefix');
  assert.equal(moment(0).from(30000), 'sekunde chache zilizopita', 'suffix');
});
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 296..299
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 294..297
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 184..187
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 280..283
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 286..293
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 283..286
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 317..320
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 283..290
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 284..287
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 458..461
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 290..293
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 285..288
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 341..344
src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 249..252
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 326..329
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 254..257
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 287..290
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 284..287

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

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

    describe('episode has availability: notAvailable', () => {
      expect(testAvailability('notAvailable')).toEqual('expired');
      expect(loggerMock.info).toHaveBeenCalledWith(EPISODE_EXPIRED, {
        url: 'pashto/bbc_pashto_radio/w3ct0lz1',
        availability: 'notAvailable',
Severity: Major
Found in src/app/lib/utilities/episodeAvailability/index.test.js and 3 other locations - About 1 hr to fix
src/app/lib/utilities/episodeAvailability/index.test.js on lines 61..67
src/app/lib/utilities/episodeAvailability/index.test.js on lines 69..75
src/app/lib/utilities/episodeAvailability/index.test.js on lines 77..86

Duplicated Code

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

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

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

Tuning

This issue has a mass of 63.

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