src/app/legacy/psammead/psammead-locales/moment/hi.test.js

Summary

Maintainability
F
3 wks
Test Coverage

File hi.test.js has 432 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* eslint-disable */
import moment from 'moment';
import './hi';

moment.locale('hi');
Severity: Minor
Found in src/app/legacy/psammead/psammead-locales/moment/hi.test.js - About 6 hrs to fix

    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 24 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 23 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

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

    test('meridiem', () => {
      assert.equal(moment([2011, 2, 23, 2, 30]).format('a'), 'रात', 'before dawn');
      assert.equal(moment([2011, 2, 23, 9, 30]).format('a'), 'सुबह', 'morning');
      assert.equal(
        moment([2011, 2, 23, 14, 30]).format('a'),
    Severity: Major
    Found in src/app/legacy/psammead/psammead-locales/moment/hi.test.js and 6 other locations - About 2 days to fix
    src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 306..336
    src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 403..429
    src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 409..455
    src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 402..432
    src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 111..141
    src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 111..165

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

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

    test('calendar day', () => {
      var a = moment().hours(12).minutes(0).seconds(0);
    
      assert.equal(
        moment(a).calendar(),
    Severity: Major
    Found in src/app/legacy/psammead/psammead-locales/moment/hi.test.js and 21 other locations - About 1 day to fix
    src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 318..351
    src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 316..349
    src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 206..239
    src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 312..345
    src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 303..336
    src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 312..341
    src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 305..338
    src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 309..342
    src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 303..336
    src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 339..372
    src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 309..342
    src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 298..331
    src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 312..345
    src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 307..340
    src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 307..340
    src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 322..354
    src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 367..392
    src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 271..304
    src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 276..305
    src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 313..346
    src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 309..342

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

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

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

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

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

    Refactorings

    Further Reading

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

    test('calendar last week', () => {
      var i, m;
    
      for (i = 2; i < 7; i += 1) {
        m = moment().subtract({ d: i });
    Severity: Major
    Found in src/app/legacy/psammead/psammead-locales/moment/hi.test.js and 1 other location - About 1 day to fix
    src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 341..363

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

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

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

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

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

    Refactorings

    Further Reading

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

    test('calendar next week', () => {
      var i, m;
      for (i = 2; i < 7; i += 1) {
        m = moment().add({ d: i });
        assert.equal(
    Severity: Major
    Found in src/app/legacy/psammead/psammead-locales/moment/hi.test.js and 1 other location - About 1 day to fix
    src/app/legacy/psammead/psammead-locales/moment/hi.test.js on lines 365..388

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

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

    test('weeks year starting sunday formatted', () => {
      assert.equal(
        moment([2012, 0, 1]).format('w ww wo'),
        '1 01 1',
        'Jan  1 2012 should be week 1'
    Severity: Major
    Found in src/app/legacy/psammead/psammead-locales/moment/hi.test.js and 23 other locations - About 6 hrs to fix
    src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 440..466
    src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 415..441
    src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 338..364
    src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js on lines 412..438
    src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 412..438
    src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 431..457
    src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 408..434
    src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 405..431
    src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 457..483
    src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 434..460
    src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 524..550
    src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 409..435
    src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 409..435
    src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 684..710
    src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 440..466
    src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 440..466
    src/app/legacy/psammead/psammead-locales/moment/sw.test.js on lines 421..447
    src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 544..570
    src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 370..396
    src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 462..488
    src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 372..398
    src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 413..439
    src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 410..436

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

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

    test('fromNow', () => {
      assert.equal(
        moment().add({ s: 30 }).fromNow(),
        'कुछ ही क्षण में',
        'कुछ ही क्षण में'
    Severity: Major
    Found in src/app/legacy/psammead/psammead-locales/moment/hi.test.js and 21 other locations - About 2 hrs to fix
    src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 309..316
    src/app/legacy/psammead/psammead-locales/moment/az.test.js on lines 307..314
    src/app/legacy/psammead/psammead-locales/moment/bn.test.js on lines 197..204
    src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 297..304
    src/app/legacy/psammead/psammead-locales/moment/gu.test.js on lines 298..301
    src/app/legacy/psammead/psammead-locales/moment/ig.test.js on lines 303..310
    src/app/legacy/psammead/psammead-locales/moment/ky.test.js on lines 296..303
    src/app/legacy/psammead/psammead-locales/moment/mr.test.js on lines 300..307
    src/app/legacy/psammead/psammead-locales/moment/ne.test.js on lines 298..301
    src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js on lines 330..337
    src/app/legacy/psammead/psammead-locales/moment/pcm.test.js on lines 300..307
    src/app/legacy/psammead/psammead-locales/moment/pt-br.test.js on lines 289..296
    src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 303..310
    src/app/legacy/psammead/psammead-locales/moment/sr-cyrl.test.js on lines 298..305
    src/app/legacy/psammead/psammead-locales/moment/sr.test.js on lines 298..305
    src/app/legacy/psammead/psammead-locales/moment/ta.test.js on lines 354..365
    src/app/legacy/psammead/psammead-locales/moment/th.test.js on lines 262..269
    src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 331..338
    src/app/legacy/psammead/psammead-locales/moment/ur.test.js on lines 267..274
    src/app/legacy/psammead/psammead-locales/moment/uz.test.js on lines 300..311
    src/app/legacy/psammead/psammead-locales/moment/yo.test.js on lines 300..307

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status