Showing 2,206 of 2,206 total issues

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

test('format ordinal', () => {
  assert.equal(moment([2011, 0, 1]).format('DDDo'), '1', '1');
  assert.equal(moment([2011, 0, 2]).format('DDDo'), '2', '2');
  assert.equal(moment([2011, 0, 3]).format('DDDo'), '3', '3');
  assert.equal(moment([2011, 0, 4]).format('DDDo'), '4', '4');
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/ur.test.js and 24 other locations - About 5 days to fix
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 91..126
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 88..123
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 8..43
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 75..110
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 108..143
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 78..113

Duplicated Code

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

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

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

Tuning

This issue has a mass of 912.

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

test('format ordinal', () => {
  assert.equal(moment([2011, 0, 1]).format('DDDo'), '1 වැනි', '1 වැනි');
  assert.equal(moment([2011, 0, 2]).format('DDDo'), '2 වැනි', '2 වැනි');
  assert.equal(moment([2011, 0, 3]).format('DDDo'), '3 වැනි', '3 වැනි');
  assert.equal(moment([2011, 0, 4]).format('DDDo'), '4 වැනි', '4 වැනි');
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/si.test.js and 24 other locations - About 5 days to fix
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 91..126
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 88..123
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 8..43
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 75..110
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 108..143
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 63..98
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 78..113

Duplicated Code

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

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

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

Tuning

This issue has a mass of 912.

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

test('format ordinal', () => {
  assert.equal(moment([2011, 0, 1]).format('DDDo'), '1º', '1º');
  assert.equal(moment([2011, 0, 2]).format('DDDo'), '2º', '2º');
  assert.equal(moment([2011, 0, 3]).format('DDDo'), '3º', '3º');
  assert.equal(moment([2011, 0, 4]).format('DDDo'), '4º', '4º');
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 91..126
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 88..123
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 8..43
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 75..110
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 108..143
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 63..98
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 78..113

Duplicated Code

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

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

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

Tuning

This issue has a mass of 912.

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

test('format ordinal', () => {
  assert.equal(moment([2011, 0, 1]).format('DDDo'), '1', '1');
  assert.equal(moment([2011, 0, 2]).format('DDDo'), '2', '2');
  assert.equal(moment([2011, 0, 3]).format('DDDo'), '3', '3');
  assert.equal(moment([2011, 0, 4]).format('DDDo'), '4', '4');
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/hi.test.js and 24 other locations - About 5 days to fix
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 91..126
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 88..123
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 8..43
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 75..110
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 108..143
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 63..98
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 78..113

Duplicated Code

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

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

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

Tuning

This issue has a mass of 912.

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

test('format ordinal', () => {
  assert.equal(moment([2011, 0, 1]).format('DDDo'), '1st', '1st');
  assert.equal(moment([2011, 0, 2]).format('DDDo'), '2nd', '2nd');
  assert.equal(moment([2011, 0, 3]).format('DDDo'), '3rd', '3rd');
  assert.equal(moment([2011, 0, 4]).format('DDDo'), '4th', '4th');
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/pcm.test.js and 24 other locations - About 5 days to fix
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 91..126
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 88..123
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 8..43
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 75..110
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 108..143
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 63..98
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 78..113

Duplicated Code

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

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

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

Tuning

This issue has a mass of 912.

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

test('format ordinal', () => {
  assert.equal(moment([2011, 0, 1]).format('DDDo'), '1', '1');
  assert.equal(moment([2011, 0, 2]).format('DDDo'), '2', '2');
  assert.equal(moment([2011, 0, 3]).format('DDDo'), '3', '3');
  assert.equal(moment([2011, 0, 4]).format('DDDo'), '4', '4');
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/mr.test.js and 24 other locations - About 5 days to fix
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 91..126
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 88..123
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 8..43
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 75..110
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 108..143
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 63..98
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 78..113

Duplicated Code

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

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

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

Tuning

This issue has a mass of 912.

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

test('format ordinal', () => {
  assert.equal(moment([2011, 0, 1]).format('DDDo'), '1-й', '1-й');
  assert.equal(moment([2011, 0, 2]).format('DDDo'), '2-й', '2-й');
  assert.equal(moment([2011, 0, 3]).format('DDDo'), '3-й', '3-й');
  assert.equal(moment([2011, 0, 4]).format('DDDo'), '4-й', '4-й');
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/uk.test.js and 24 other locations - About 5 days to fix
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 91..126
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 88..123
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 8..43
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 75..110
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 108..143
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 63..98
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 78..113

Duplicated Code

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

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

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

Tuning

This issue has a mass of 912.

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

test('format ordinal', () => {
  assert.equal(moment([2011, 0, 1]).format('DDDo'), '১', '১');
  assert.equal(moment([2011, 0, 2]).format('DDDo'), '২', '২');
  assert.equal(moment([2011, 0, 3]).format('DDDo'), '৩', '৩');
  assert.equal(moment([2011, 0, 4]).format('DDDo'), '৪', '৪');
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/bn.test.js and 24 other locations - About 5 days to fix
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 91..126
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 88..123
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 75..110
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 108..143
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 63..98
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 78..113

Duplicated Code

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

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

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

Tuning

This issue has a mass of 912.

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

test('format ordinal', () => {
  assert.equal(moment([2011, 0, 1]).format('DDDo'), '1', '1');
  assert.equal(moment([2011, 0, 2]).format('DDDo'), '2', '2');
  assert.equal(moment([2011, 0, 3]).format('DDDo'), '3', '3');
  assert.equal(moment([2011, 0, 4]).format('DDDo'), '4', '4');
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/sw.test.js and 24 other locations - About 5 days to fix
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 91..126
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 88..123
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 8..43
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 75..110
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 108..143
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 63..98
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 78..113

Duplicated Code

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

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

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

Tuning

This issue has a mass of 912.

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

test('format ordinal', () => {
  assert.equal(moment([2011, 0, 1]).format('DDDo'), '1-й', '1-й');
  assert.equal(moment([2011, 0, 2]).format('DDDo'), '2-й', '2-й');
  assert.equal(moment([2011, 0, 3]).format('DDDo'), '3-й', '3-й');
  assert.equal(moment([2011, 0, 4]).format('DDDo'), '4-й', '4-й');
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/ru.test.js and 24 other locations - About 5 days to fix
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 91..126
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 88..123
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 8..43
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 75..110
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 63..98
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 78..113

Duplicated Code

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

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

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

Tuning

This issue has a mass of 912.

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

test('format ordinal', () => {
  assert.equal(moment([2011, 0, 1]).format('DDDo'), '1.', '1.');
  assert.equal(moment([2011, 0, 2]).format('DDDo'), '2.', '2.');
  assert.equal(moment([2011, 0, 3]).format('DDDo'), '3.', '3.');
  assert.equal(moment([2011, 0, 4]).format('DDDo'), '4.', '4.');
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 91..126
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 88..123
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 8..43
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 75..110
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 108..143
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 63..98
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 78..113

Duplicated Code

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

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

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

Tuning

This issue has a mass of 912.

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

test('format ordinal', () => {
  assert.equal(moment([2011, 0, 1]).format('DDDo'), '1º', '1º');
  assert.equal(moment([2011, 0, 2]).format('DDDo'), '2º', '2º');
  assert.equal(moment([2011, 0, 3]).format('DDDo'), '3º', '3º');
  assert.equal(moment([2011, 0, 4]).format('DDDo'), '4º', '4º');
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/es.test.js and 24 other locations - About 5 days to fix
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 91..126
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 88..123
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 8..43
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 75..110
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 108..143
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 63..98
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 78..113

Duplicated Code

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

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

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

Tuning

This issue has a mass of 912.

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

test('format ordinal', () => {
  assert.equal(moment([2011, 0, 1]).format('DDDo'), '1', '1');
  assert.equal(moment([2011, 0, 2]).format('DDDo'), '2', '2');
  assert.equal(moment([2011, 0, 3]).format('DDDo'), '3', '3');
  assert.equal(moment([2011, 0, 4]).format('DDDo'), '4', '4');
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/ar.test.js and 24 other locations - About 5 days to fix
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 88..123
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 8..43
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 75..110
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 108..143
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 63..98
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 78..113

Duplicated Code

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

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

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

Tuning

This issue has a mass of 912.

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

test('format ordinal', () => {
  assert.equal(moment([2011, 0, 1]).format('DDDo'), '१', '१');
  assert.equal(moment([2011, 0, 2]).format('DDDo'), '२', '२');
  assert.equal(moment([2011, 0, 3]).format('DDDo'), '३', '३');
  assert.equal(moment([2011, 0, 4]).format('DDDo'), '४', '४');
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/ne.test.js and 24 other locations - About 5 days to fix
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 91..126
src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 88..123
src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 8..43
src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 75..110
src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 72..107
src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 73..108
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 108..143
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 69..104
src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 74..109
src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 79..114
src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 63..98
src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 76..111
src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js on lines 78..113

Duplicated Code

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

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

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

Tuning

This issue has a mass of 912.

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

            jn = function(e, t) {
                var n,
                    r,
                    o,
                    i,
Severity: Major
Found in public/vendor/cwr.js and 7 other locations - About 5 days to fix
public/vendor/cwr.js on lines 1107..1196
public/vendor/cwr.js on lines 1485..1574
public/vendor/cwr.js on lines 1643..1732
public/vendor/cwr.js on lines 1841..1930
public/vendor/cwr.js on lines 3290..3379
public/vendor/cwr.js on lines 3586..3675
public/vendor/cwr.js on lines 4825..4914

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

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

            }, bt = function(e, t) {
                var n,
                    r,
                    o,
                    i,
Severity: Major
Found in public/vendor/cwr.js and 7 other locations - About 5 days to fix
public/vendor/cwr.js on lines 1107..1196
public/vendor/cwr.js on lines 1485..1574
public/vendor/cwr.js on lines 1643..1732
public/vendor/cwr.js on lines 1841..1930
public/vendor/cwr.js on lines 3290..3379
public/vendor/cwr.js on lines 4825..4914
public/vendor/cwr.js on lines 4983..5072

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

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

            L = function(e, t) {
                var n,
                    r,
                    o,
                    i,
Severity: Major
Found in public/vendor/cwr.js and 7 other locations - About 5 days to fix
public/vendor/cwr.js on lines 1107..1196
public/vendor/cwr.js on lines 1485..1574
public/vendor/cwr.js on lines 1643..1732
public/vendor/cwr.js on lines 3290..3379
public/vendor/cwr.js on lines 3586..3675
public/vendor/cwr.js on lines 4825..4914
public/vendor/cwr.js on lines 4983..5072

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

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

            C = function(e, t) {
                var n,
                    r,
                    o,
                    i,
Severity: Major
Found in public/vendor/cwr.js and 7 other locations - About 5 days to fix
public/vendor/cwr.js on lines 1107..1196
public/vendor/cwr.js on lines 1643..1732
public/vendor/cwr.js on lines 1841..1930
public/vendor/cwr.js on lines 3290..3379
public/vendor/cwr.js on lines 3586..3675
public/vendor/cwr.js on lines 4825..4914
public/vendor/cwr.js on lines 4983..5072

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

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

            kn = function(e, t) {
                var n,
                    r,
                    o,
                    i,
Severity: Major
Found in public/vendor/cwr.js and 7 other locations - About 5 days to fix
public/vendor/cwr.js on lines 1107..1196
public/vendor/cwr.js on lines 1485..1574
public/vendor/cwr.js on lines 1643..1732
public/vendor/cwr.js on lines 1841..1930
public/vendor/cwr.js on lines 3290..3379
public/vendor/cwr.js on lines 3586..3675
public/vendor/cwr.js on lines 4983..5072

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

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

            }, lt = function(e, t) {
                var n,
                    r,
                    o,
                    i,
Severity: Major
Found in public/vendor/cwr.js and 7 other locations - About 5 days to fix
public/vendor/cwr.js on lines 1107..1196
public/vendor/cwr.js on lines 1485..1574
public/vendor/cwr.js on lines 1643..1732
public/vendor/cwr.js on lines 1841..1930
public/vendor/cwr.js on lines 3586..3675
public/vendor/cwr.js on lines 4825..4914
public/vendor/cwr.js on lines 4983..5072

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

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