JohnMunsch/ClearAndDraw

View on GitHub

Showing 273 of 273 total issues

File Dicemasters.js has 4585 lines of code (exceeds 250 allowed). Consider refactoring.
Open

var dicemastersCardData = [
  {
    id: 1,
    dieId: 1,
    setAbbr: "AVX",
Severity: Major
Found in app/scripts/Dicemasters.js - About 1 wk to fix

    Function exports has 282 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = function (grunt) {
    
      // Load grunt tasks automatically
      require('load-grunt-tasks')(grunt);
    
    
    Severity: Major
    Found in Gruntfile.js - About 1 day to fix

      File Gruntfile.js has 285 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      // Generated on 2014-05-13 using generator-angular 0.8.0
      'use strict';
      
      // # Globbing
      // for performance reasons we're only matching one level down:
      Severity: Minor
      Found in Gruntfile.js - About 2 hrs to fix

        Function filteredCards has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              this.filteredCards = function (cardList, team) {
                var setsList = _.compact(this.sets);
                var affiliationsList = _.compact(this.affiliations);
                var costsList = _.compact(_.map(this.costs, function (cost) { return parseInt(cost); }));
                var typesList = _.compact(this.types);
        Severity: Minor
        Found in app/scripts/data.service.js - About 1 hr to fix

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

            {
              id: 19,
              dieId: 7,
              setAbbr: "AVX",
              name: "Storm",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 28,
              dieId: 9,
              setAbbr: "AVX",
              name: "Basic Action Card",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 36,
              dieId: 11,
              setAbbr: "AVX",
              name: "Black Widow",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 75,
              dieId: 19,
              setAbbr: "AVX",
              name: "Ghost Rider",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 78,
              dieId: 4,
              setAbbr: "AVX",
              name: "Human Torch",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 2,
              dieId: 1,
              setAbbr: "AVX",
              name: "Beast",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 13,
              dieId: 5,
              setAbbr: "AVX",
              name: "Iron Man",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 27,
              dieId: 9,
              setAbbr: "AVX",
              name: "Basic Action Card",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 8,
              dieId: 3,
              setAbbr: "AVX",
              name: "Hulk",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 23,
              dieId: 8,
              setAbbr: "AVX",
              name: "Thor",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 43,
              dieId: 18,
              setAbbr: "AVX",
              name: "Gambit",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 38,
              dieId: 13,
              setAbbr: "AVX",
              name: "Cyclops",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 42,
              dieId: 17,
              setAbbr: "AVX",
              name: "Doctor Strange",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 57,
              dieId: 32,
              setAbbr: "AVX",
              name: "Rogue",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 55,
              dieId: 30,
              setAbbr: "AVX",
              name: "Professor X",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1010..1025
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

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

            {
              id: 64,
              dieId: 39,
              setAbbr: "AVX",
              name: "Vibranium Shield",
          Severity: Major
          Found in app/scripts/Dicemasters.js and 254 other locations - About 1 hr to fix
          app/scripts/Dicemasters.js on lines 2..17
          app/scripts/Dicemasters.js on lines 18..33
          app/scripts/Dicemasters.js on lines 34..49
          app/scripts/Dicemasters.js on lines 50..65
          app/scripts/Dicemasters.js on lines 66..81
          app/scripts/Dicemasters.js on lines 82..97
          app/scripts/Dicemasters.js on lines 98..113
          app/scripts/Dicemasters.js on lines 114..129
          app/scripts/Dicemasters.js on lines 130..145
          app/scripts/Dicemasters.js on lines 146..161
          app/scripts/Dicemasters.js on lines 162..177
          app/scripts/Dicemasters.js on lines 178..193
          app/scripts/Dicemasters.js on lines 194..209
          app/scripts/Dicemasters.js on lines 210..225
          app/scripts/Dicemasters.js on lines 226..241
          app/scripts/Dicemasters.js on lines 242..257
          app/scripts/Dicemasters.js on lines 258..273
          app/scripts/Dicemasters.js on lines 274..289
          app/scripts/Dicemasters.js on lines 290..305
          app/scripts/Dicemasters.js on lines 306..321
          app/scripts/Dicemasters.js on lines 322..337
          app/scripts/Dicemasters.js on lines 338..353
          app/scripts/Dicemasters.js on lines 354..369
          app/scripts/Dicemasters.js on lines 370..385
          app/scripts/Dicemasters.js on lines 386..401
          app/scripts/Dicemasters.js on lines 402..417
          app/scripts/Dicemasters.js on lines 418..433
          app/scripts/Dicemasters.js on lines 434..449
          app/scripts/Dicemasters.js on lines 450..465
          app/scripts/Dicemasters.js on lines 466..481
          app/scripts/Dicemasters.js on lines 482..497
          app/scripts/Dicemasters.js on lines 498..513
          app/scripts/Dicemasters.js on lines 514..529
          app/scripts/Dicemasters.js on lines 530..545
          app/scripts/Dicemasters.js on lines 546..561
          app/scripts/Dicemasters.js on lines 562..577
          app/scripts/Dicemasters.js on lines 578..593
          app/scripts/Dicemasters.js on lines 594..609
          app/scripts/Dicemasters.js on lines 610..625
          app/scripts/Dicemasters.js on lines 626..641
          app/scripts/Dicemasters.js on lines 642..657
          app/scripts/Dicemasters.js on lines 658..673
          app/scripts/Dicemasters.js on lines 674..689
          app/scripts/Dicemasters.js on lines 690..705
          app/scripts/Dicemasters.js on lines 706..721
          app/scripts/Dicemasters.js on lines 722..737
          app/scripts/Dicemasters.js on lines 738..753
          app/scripts/Dicemasters.js on lines 754..769
          app/scripts/Dicemasters.js on lines 770..785
          app/scripts/Dicemasters.js on lines 786..801
          app/scripts/Dicemasters.js on lines 802..817
          app/scripts/Dicemasters.js on lines 818..833
          app/scripts/Dicemasters.js on lines 834..849
          app/scripts/Dicemasters.js on lines 850..865
          app/scripts/Dicemasters.js on lines 866..881
          app/scripts/Dicemasters.js on lines 882..897
          app/scripts/Dicemasters.js on lines 898..913
          app/scripts/Dicemasters.js on lines 914..929
          app/scripts/Dicemasters.js on lines 930..945
          app/scripts/Dicemasters.js on lines 946..961
          app/scripts/Dicemasters.js on lines 962..977
          app/scripts/Dicemasters.js on lines 978..993
          app/scripts/Dicemasters.js on lines 994..1009
          app/scripts/Dicemasters.js on lines 1026..1041
          app/scripts/Dicemasters.js on lines 1042..1057
          app/scripts/Dicemasters.js on lines 1058..1073
          app/scripts/Dicemasters.js on lines 1074..1089
          app/scripts/Dicemasters.js on lines 1090..1105
          app/scripts/Dicemasters.js on lines 1106..1121
          app/scripts/Dicemasters.js on lines 1122..1137
          app/scripts/Dicemasters.js on lines 1138..1153
          app/scripts/Dicemasters.js on lines 1154..1169
          app/scripts/Dicemasters.js on lines 1170..1185
          app/scripts/Dicemasters.js on lines 1186..1201
          app/scripts/Dicemasters.js on lines 1202..1217
          app/scripts/Dicemasters.js on lines 1218..1233
          app/scripts/Dicemasters.js on lines 1234..1249
          app/scripts/Dicemasters.js on lines 1250..1265
          app/scripts/Dicemasters.js on lines 1266..1281
          app/scripts/Dicemasters.js on lines 1282..1297
          app/scripts/Dicemasters.js on lines 1298..1313
          app/scripts/Dicemasters.js on lines 1314..1329
          app/scripts/Dicemasters.js on lines 1330..1345
          app/scripts/Dicemasters.js on lines 1346..1361
          app/scripts/Dicemasters.js on lines 1362..1377
          app/scripts/Dicemasters.js on lines 1378..1393
          app/scripts/Dicemasters.js on lines 1394..1409
          app/scripts/Dicemasters.js on lines 1410..1425
          app/scripts/Dicemasters.js on lines 1426..1441
          app/scripts/Dicemasters.js on lines 1442..1457
          app/scripts/Dicemasters.js on lines 1458..1473
          app/scripts/Dicemasters.js on lines 1474..1489
          app/scripts/Dicemasters.js on lines 1490..1505
          app/scripts/Dicemasters.js on lines 1506..1521
          app/scripts/Dicemasters.js on lines 1522..1537
          app/scripts/Dicemasters.js on lines 1538..1553
          app/scripts/Dicemasters.js on lines 1554..1569
          app/scripts/Dicemasters.js on lines 1570..1585
          app/scripts/Dicemasters.js on lines 1586..1601
          app/scripts/Dicemasters.js on lines 1602..1617
          app/scripts/Dicemasters.js on lines 1618..1633
          app/scripts/Dicemasters.js on lines 1634..1649
          app/scripts/Dicemasters.js on lines 1650..1665
          app/scripts/Dicemasters.js on lines 1666..1681
          app/scripts/Dicemasters.js on lines 1682..1697
          app/scripts/Dicemasters.js on lines 1698..1713
          app/scripts/Dicemasters.js on lines 1714..1729
          app/scripts/Dicemasters.js on lines 1730..1745
          app/scripts/Dicemasters.js on lines 1746..1761
          app/scripts/Dicemasters.js on lines 1762..1777
          app/scripts/Dicemasters.js on lines 1778..1793
          app/scripts/Dicemasters.js on lines 1794..1809
          app/scripts/Dicemasters.js on lines 1810..1825
          app/scripts/Dicemasters.js on lines 1826..1841
          app/scripts/Dicemasters.js on lines 1842..1857
          app/scripts/Dicemasters.js on lines 1875..1890
          app/scripts/Dicemasters.js on lines 1891..1906
          app/scripts/Dicemasters.js on lines 1907..1922
          app/scripts/Dicemasters.js on lines 1923..1938
          app/scripts/Dicemasters.js on lines 1939..1954
          app/scripts/Dicemasters.js on lines 1955..1970
          app/scripts/Dicemasters.js on lines 1971..1986
          app/scripts/Dicemasters.js on lines 1987..2002
          app/scripts/Dicemasters.js on lines 2003..2018
          app/scripts/Dicemasters.js on lines 2019..2034
          app/scripts/Dicemasters.js on lines 2035..2050
          app/scripts/Dicemasters.js on lines 2051..2066
          app/scripts/Dicemasters.js on lines 2067..2082
          app/scripts/Dicemasters.js on lines 2083..2098
          app/scripts/Dicemasters.js on lines 2099..2114
          app/scripts/Dicemasters.js on lines 2115..2130
          app/scripts/Dicemasters.js on lines 2131..2146
          app/scripts/Dicemasters.js on lines 2147..2162
          app/scripts/Dicemasters.js on lines 2163..2178
          app/scripts/Dicemasters.js on lines 2179..2194
          app/scripts/Dicemasters.js on lines 2195..2210
          app/scripts/Dicemasters.js on lines 2211..2226
          app/scripts/Dicemasters.js on lines 2227..2242
          app/scripts/Dicemasters.js on lines 2243..2258
          app/scripts/Dicemasters.js on lines 2259..2274
          app/scripts/Dicemasters.js on lines 2275..2290
          app/scripts/Dicemasters.js on lines 2291..2306
          app/scripts/Dicemasters.js on lines 2307..2322
          app/scripts/Dicemasters.js on lines 2323..2338
          app/scripts/Dicemasters.js on lines 2339..2354
          app/scripts/Dicemasters.js on lines 2355..2370
          app/scripts/Dicemasters.js on lines 2371..2386
          app/scripts/Dicemasters.js on lines 2387..2402
          app/scripts/Dicemasters.js on lines 2403..2418
          app/scripts/Dicemasters.js on lines 2419..2434
          app/scripts/Dicemasters.js on lines 2435..2450
          app/scripts/Dicemasters.js on lines 2451..2466
          app/scripts/Dicemasters.js on lines 2467..2482
          app/scripts/Dicemasters.js on lines 2483..2498
          app/scripts/Dicemasters.js on lines 2499..2514
          app/scripts/Dicemasters.js on lines 2515..2530
          app/scripts/Dicemasters.js on lines 2531..2546
          app/scripts/Dicemasters.js on lines 2547..2562
          app/scripts/Dicemasters.js on lines 2563..2578
          app/scripts/Dicemasters.js on lines 2579..2594
          app/scripts/Dicemasters.js on lines 2595..2610
          app/scripts/Dicemasters.js on lines 2611..2626
          app/scripts/Dicemasters.js on lines 2627..2642
          app/scripts/Dicemasters.js on lines 2643..2658
          app/scripts/Dicemasters.js on lines 2659..2674
          app/scripts/Dicemasters.js on lines 2675..2690
          app/scripts/Dicemasters.js on lines 2691..2706
          app/scripts/Dicemasters.js on lines 2707..2722
          app/scripts/Dicemasters.js on lines 2723..2738
          app/scripts/Dicemasters.js on lines 2739..2754
          app/scripts/Dicemasters.js on lines 2755..2770
          app/scripts/Dicemasters.js on lines 2771..2786
          app/scripts/Dicemasters.js on lines 2787..2802
          app/scripts/Dicemasters.js on lines 2803..2818
          app/scripts/Dicemasters.js on lines 2819..2834
          app/scripts/Dicemasters.js on lines 2835..2850
          app/scripts/Dicemasters.js on lines 2851..2866
          app/scripts/Dicemasters.js on lines 2867..2882
          app/scripts/Dicemasters.js on lines 2883..2898
          app/scripts/Dicemasters.js on lines 2899..2914
          app/scripts/Dicemasters.js on lines 2915..2930
          app/scripts/Dicemasters.js on lines 2931..2946
          app/scripts/Dicemasters.js on lines 2947..2962
          app/scripts/Dicemasters.js on lines 2963..2978
          app/scripts/Dicemasters.js on lines 2979..2994
          app/scripts/Dicemasters.js on lines 2995..3010
          app/scripts/Dicemasters.js on lines 3011..3026
          app/scripts/Dicemasters.js on lines 3027..3042
          app/scripts/Dicemasters.js on lines 3043..3058
          app/scripts/Dicemasters.js on lines 3059..3074
          app/scripts/Dicemasters.js on lines 3075..3090
          app/scripts/Dicemasters.js on lines 3091..3106
          app/scripts/Dicemasters.js on lines 3107..3122
          app/scripts/Dicemasters.js on lines 3123..3138
          app/scripts/Dicemasters.js on lines 3139..3154
          app/scripts/Dicemasters.js on lines 3155..3170
          app/scripts/Dicemasters.js on lines 3171..3186
          app/scripts/Dicemasters.js on lines 3187..3202
          app/scripts/Dicemasters.js on lines 3203..3218
          app/scripts/Dicemasters.js on lines 3219..3234
          app/scripts/Dicemasters.js on lines 3235..3250
          app/scripts/Dicemasters.js on lines 3251..3266
          app/scripts/Dicemasters.js on lines 3267..3282
          app/scripts/Dicemasters.js on lines 3283..3298
          app/scripts/Dicemasters.js on lines 3299..3314
          app/scripts/Dicemasters.js on lines 3329..3344
          app/scripts/Dicemasters.js on lines 3345..3360
          app/scripts/Dicemasters.js on lines 3361..3376
          app/scripts/Dicemasters.js on lines 3377..3392
          app/scripts/Dicemasters.js on lines 3393..3408
          app/scripts/Dicemasters.js on lines 3409..3424
          app/scripts/Dicemasters.js on lines 3425..3440
          app/scripts/Dicemasters.js on lines 3441..3456
          app/scripts/Dicemasters.js on lines 3457..3472
          app/scripts/Dicemasters.js on lines 3473..3488
          app/scripts/Dicemasters.js on lines 3489..3504
          app/scripts/Dicemasters.js on lines 3505..3520
          app/scripts/Dicemasters.js on lines 3521..3536
          app/scripts/Dicemasters.js on lines 3537..3552
          app/scripts/Dicemasters.js on lines 3553..3568
          app/scripts/Dicemasters.js on lines 3569..3584
          app/scripts/Dicemasters.js on lines 3585..3600
          app/scripts/Dicemasters.js on lines 3601..3616
          app/scripts/Dicemasters.js on lines 3617..3632
          app/scripts/Dicemasters.js on lines 3633..3648
          app/scripts/Dicemasters.js on lines 3649..3664
          app/scripts/Dicemasters.js on lines 3665..3680
          app/scripts/Dicemasters.js on lines 3681..3696
          app/scripts/Dicemasters.js on lines 3697..3712
          app/scripts/Dicemasters.js on lines 3713..3728
          app/scripts/Dicemasters.js on lines 3729..3744
          app/scripts/Dicemasters.js on lines 3745..3760
          app/scripts/Dicemasters.js on lines 3761..3776
          app/scripts/Dicemasters.js on lines 3777..3792
          app/scripts/Dicemasters.js on lines 3793..3808
          app/scripts/Dicemasters.js on lines 3823..3838
          app/scripts/Dicemasters.js on lines 3839..3854
          app/scripts/Dicemasters.js on lines 3855..3870
          app/scripts/Dicemasters.js on lines 3871..3886
          app/scripts/Dicemasters.js on lines 3887..3902
          app/scripts/Dicemasters.js on lines 3903..3918
          app/scripts/Dicemasters.js on lines 3919..3934
          app/scripts/Dicemasters.js on lines 3935..3950
          app/scripts/Dicemasters.js on lines 3951..3966
          app/scripts/Dicemasters.js on lines 3967..3982
          app/scripts/Dicemasters.js on lines 3983..3998
          app/scripts/Dicemasters.js on lines 3999..4014
          app/scripts/Dicemasters.js on lines 4015..4030
          app/scripts/Dicemasters.js on lines 4031..4046
          app/scripts/Dicemasters.js on lines 4047..4062
          app/scripts/Dicemasters.js on lines 4063..4078
          app/scripts/Dicemasters.js on lines 4079..4094
          app/scripts/Dicemasters.js on lines 4095..4110
          app/scripts/Dicemasters.js on lines 4111..4126

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

          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