Showing 2,206 of 2,206 total issues

File settings.js has 9119 lines of code (exceeds 250 allowed). Consider refactoring.
Open

module.exports = () => ({
  afaanoromoo: {
    name: 'afaanoromoo',
    font: undefined,
    isWorldService: true,
Severity: Major
Found in cypress/support/config/settings.js - About 3 wks to fix

    File cwr.js has 5146 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*! License information can be found in LICENSE and LICENSE-THIRD-PARTY */
    !function() {
        var e = {
                914: function(e, t, n) {
                    "use strict";
    Severity: Major
    Found in public/vendor/cwr.js - About 2 wks to fix

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'અમુક પળો',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'ìṣẹ́jú aayá die',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'бирнече секунд',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'nekoliko sekundi',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'a few seconds',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          '44 ثانية',
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'ஒரு சில விநாடிகள்',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'چند سیکنڈ',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        var start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'कुछ ही क्षण',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'just some seconds',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'ntabịanya ole na ole',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'poucos segundos',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'තත්පර කිහිපය',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'केही क्षण',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'काही सेकंद',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'неколико секунди',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'ไม่กี่วินาที',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 173..315
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

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

      test('from', () => {
        const start = moment([2007, 1, 28]);
        assert.equal(
          start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
          'ਕੁਝ ਸਕਿੰਟ',
      src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 152..294
      src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 142..284
      src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 139..281
      src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 140..282
      src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 146..288
      src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 141..283
      src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 136..278
      src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 197..339
      src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 105..247
      src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 110..252
      src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 143..285
      src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 143..285

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

      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