wikimedia/mediawiki-extensions-WikiLove

View on GitHub
resources/ext.wikiLove.startup/defaultOptions.js

Summary

Maintainability
F
1 wk
Test Coverage

File defaultOptions.js has 412 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// See https://www.mediawiki.org/wiki/Extension:WikiLove for basic documentation on configuration.

module.exports = {
    defaultText:
        '{| style="background-color: $5; border: 1px solid $6;"\n' +
Severity: Minor
Found in resources/ext.wikiLove.startup/defaultOptions.js - About 5 hrs to fix

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

            goat: {
                name: mw.msg( 'wikilove-type-goats' ),
                fields: [ 'header', 'message' ],
                header: mw.msg( 'wikilove-goats-header' ),
                text: '[[$3|left|150px]]\n$1\n\n~~~~\n<br style="clear: both;"/>', // $3 is the image filename
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 1 other location - About 3 hrs to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 396..413

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

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

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

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

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

    Refactorings

    Further Reading

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

            fox: {
                name: mw.msg( 'wikilove-type-foxes' ),
                fields: [ 'header', 'message' ],
                header: mw.msg( 'wikilove-foxes-header' ),
                text: '[[$3|left|150px]]\n$1\n\n~~~~\n<br style="clear: both;"/>', // $3 is the image filename
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 1 other location - About 3 hrs to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 378..395

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

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

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

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

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

    Refactorings

    Further Reading

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

                    diligence: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-diligence-option' ),
                        descr: mw.msg( 'wikilove-barnstar-diligence-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    special: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-special-option' ),
                        descr: mw.msg( 'wikilove-barnstar-special-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    antispam: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-antispam-option' ),
                        descr: mw.msg( 'wikilove-barnstar-antispam-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    civility: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-civility-option' ),
                        descr: mw.msg( 'wikilove-barnstar-civility-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    rosetta: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-rosetta-option' ),
                        descr: mw.msg( 'wikilove-barnstar-rosetta-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    editors: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-editors-option' ),
                        descr: mw.msg( 'wikilove-barnstar-editors-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    photographers: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-photographers-option' ),
                        descr: mw.msg( 'wikilove-barnstar-photographers-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    goodhumor: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-goodhumor-option' ),
                        descr: mw.msg( 'wikilove-barnstar-goodhumor-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    copyeditor: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-copyeditor-option' ),
                        descr: mw.msg( 'wikilove-barnstar-copyeditor-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    kindness: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-kindness-option' ),
                        descr: mw.msg( 'wikilove-barnstar-kindness-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    writers: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-writers-option' ),
                        descr: mw.msg( 'wikilove-barnstar-writers-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232

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

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

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

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

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

    Refactorings

    Further Reading

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

                    teamwork: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-teamwork-option' ),
                        descr: mw.msg( 'wikilove-barnstar-teamwork-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    admins: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-admins-option' ),
                        descr: mw.msg( 'wikilove-barnstar-admins-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    technical: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-technical-option' ),
                        descr: mw.msg( 'wikilove-barnstar-technical-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    reallife: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-reallife-option' ),
                        descr: mw.msg( 'wikilove-barnstar-reallife-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    minor: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-minor-option' ),
                        descr: mw.msg( 'wikilove-barnstar-minor-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    antivandalism: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-antivandalism-option' ),
                        descr: mw.msg( 'wikilove-barnstar-antivandalism-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    citation: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-citation-option' ),
                        descr: mw.msg( 'wikilove-barnstar-citation-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    resilient: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-resilient-option' ),
                        descr: mw.msg( 'wikilove-barnstar-resilient-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    brilliant: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-brilliant-option' ),
                        descr: mw.msg( 'wikilove-barnstar-brilliant-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    defender: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-defender-option' ),
                        descr: mw.msg( 'wikilove-barnstar-defender-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    designers: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-designers-option' ),
                        descr: mw.msg( 'wikilove-barnstar-designers-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    diplomacy: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-diplomacy-option' ),
                        descr: mw.msg( 'wikilove-barnstar-diplomacy-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    tireless: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-tireless-option' ),
                        descr: mw.msg( 'wikilove-barnstar-tireless-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 201..208
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

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

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

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

    Refactorings

    Further Reading

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

                    surreal: {
                        fields: [ 'message' ],
                        option: mw.msg( 'wikilove-barnstar-surreal-option' ),
                        descr: mw.msg( 'wikilove-barnstar-surreal-desc' ),
                        header: mw.msg( 'wikilove-barnstar-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 24 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 32..39
    resources/ext.wikiLove.startup/defaultOptions.js on lines 40..47
    resources/ext.wikiLove.startup/defaultOptions.js on lines 48..55
    resources/ext.wikiLove.startup/defaultOptions.js on lines 56..63
    resources/ext.wikiLove.startup/defaultOptions.js on lines 64..71
    resources/ext.wikiLove.startup/defaultOptions.js on lines 72..79
    resources/ext.wikiLove.startup/defaultOptions.js on lines 80..87
    resources/ext.wikiLove.startup/defaultOptions.js on lines 88..95
    resources/ext.wikiLove.startup/defaultOptions.js on lines 96..103
    resources/ext.wikiLove.startup/defaultOptions.js on lines 104..111
    resources/ext.wikiLove.startup/defaultOptions.js on lines 112..119
    resources/ext.wikiLove.startup/defaultOptions.js on lines 120..127
    resources/ext.wikiLove.startup/defaultOptions.js on lines 137..144
    resources/ext.wikiLove.startup/defaultOptions.js on lines 145..152
    resources/ext.wikiLove.startup/defaultOptions.js on lines 153..160
    resources/ext.wikiLove.startup/defaultOptions.js on lines 161..168
    resources/ext.wikiLove.startup/defaultOptions.js on lines 169..176
    resources/ext.wikiLove.startup/defaultOptions.js on lines 177..184
    resources/ext.wikiLove.startup/defaultOptions.js on lines 185..192
    resources/ext.wikiLove.startup/defaultOptions.js on lines 193..200
    resources/ext.wikiLove.startup/defaultOptions.js on lines 209..216
    resources/ext.wikiLove.startup/defaultOptions.js on lines 217..224
    resources/ext.wikiLove.startup/defaultOptions.js on lines 225..232
    resources/ext.wikiLove.startup/defaultOptions.js on lines 233..240

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

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

                    brownie: {
                        fields: [ 'header', 'message' ],
                        option: mw.msg( 'wikilove-food-brownie-option' ),
                        descr: mw.msg( 'wikilove-food-brownie-desc' ),
                        header: mw.msg( 'wikilove-food-brownie-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 10 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 265..272
    resources/ext.wikiLove.startup/defaultOptions.js on lines 281..288
    resources/ext.wikiLove.startup/defaultOptions.js on lines 289..296
    resources/ext.wikiLove.startup/defaultOptions.js on lines 297..304
    resources/ext.wikiLove.startup/defaultOptions.js on lines 305..312
    resources/ext.wikiLove.startup/defaultOptions.js on lines 313..320
    resources/ext.wikiLove.startup/defaultOptions.js on lines 321..328
    resources/ext.wikiLove.startup/defaultOptions.js on lines 329..336
    resources/ext.wikiLove.startup/defaultOptions.js on lines 337..344
    resources/ext.wikiLove.startup/defaultOptions.js on lines 345..352

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

                    stroopwafels: {
                        fields: [ 'header', 'message' ],
                        option: mw.msg( 'wikilove-food-stroopwafels-option' ),
                        descr: mw.msg( 'wikilove-food-stroopwafels-desc' ),
                        header: mw.msg( 'wikilove-food-stroopwafels-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 10 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 265..272
    resources/ext.wikiLove.startup/defaultOptions.js on lines 273..280
    resources/ext.wikiLove.startup/defaultOptions.js on lines 281..288
    resources/ext.wikiLove.startup/defaultOptions.js on lines 289..296
    resources/ext.wikiLove.startup/defaultOptions.js on lines 297..304
    resources/ext.wikiLove.startup/defaultOptions.js on lines 305..312
    resources/ext.wikiLove.startup/defaultOptions.js on lines 313..320
    resources/ext.wikiLove.startup/defaultOptions.js on lines 321..328
    resources/ext.wikiLove.startup/defaultOptions.js on lines 329..336
    resources/ext.wikiLove.startup/defaultOptions.js on lines 337..344

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

                    bubbletea: {
                        fields: [ 'header', 'message' ],
                        option: mw.msg( 'wikilove-food-bubbletea-option' ),
                        descr: mw.msg( 'wikilove-food-bubbletea-desc' ),
                        header: mw.msg( 'wikilove-food-bubbletea-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 10 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 265..272
    resources/ext.wikiLove.startup/defaultOptions.js on lines 273..280
    resources/ext.wikiLove.startup/defaultOptions.js on lines 289..296
    resources/ext.wikiLove.startup/defaultOptions.js on lines 297..304
    resources/ext.wikiLove.startup/defaultOptions.js on lines 305..312
    resources/ext.wikiLove.startup/defaultOptions.js on lines 313..320
    resources/ext.wikiLove.startup/defaultOptions.js on lines 321..328
    resources/ext.wikiLove.startup/defaultOptions.js on lines 329..336
    resources/ext.wikiLove.startup/defaultOptions.js on lines 337..344
    resources/ext.wikiLove.startup/defaultOptions.js on lines 345..352

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

                    beer: {
                        fields: [ 'header', 'message' ],
                        option: mw.msg( 'wikilove-food-beer-option' ),
                        descr: mw.msg( 'wikilove-food-beer-desc' ),
                        header: mw.msg( 'wikilove-food-beer-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 10 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 273..280
    resources/ext.wikiLove.startup/defaultOptions.js on lines 281..288
    resources/ext.wikiLove.startup/defaultOptions.js on lines 289..296
    resources/ext.wikiLove.startup/defaultOptions.js on lines 297..304
    resources/ext.wikiLove.startup/defaultOptions.js on lines 305..312
    resources/ext.wikiLove.startup/defaultOptions.js on lines 313..320
    resources/ext.wikiLove.startup/defaultOptions.js on lines 321..328
    resources/ext.wikiLove.startup/defaultOptions.js on lines 329..336
    resources/ext.wikiLove.startup/defaultOptions.js on lines 337..344
    resources/ext.wikiLove.startup/defaultOptions.js on lines 345..352

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

                    coffee: {
                        fields: [ 'header', 'message' ],
                        option: mw.msg( 'wikilove-food-coffee-option' ),
                        descr: mw.msg( 'wikilove-food-coffee-desc' ),
                        header: mw.msg( 'wikilove-food-coffee-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 10 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 265..272
    resources/ext.wikiLove.startup/defaultOptions.js on lines 273..280
    resources/ext.wikiLove.startup/defaultOptions.js on lines 281..288
    resources/ext.wikiLove.startup/defaultOptions.js on lines 289..296
    resources/ext.wikiLove.startup/defaultOptions.js on lines 297..304
    resources/ext.wikiLove.startup/defaultOptions.js on lines 313..320
    resources/ext.wikiLove.startup/defaultOptions.js on lines 321..328
    resources/ext.wikiLove.startup/defaultOptions.js on lines 329..336
    resources/ext.wikiLove.startup/defaultOptions.js on lines 337..344
    resources/ext.wikiLove.startup/defaultOptions.js on lines 345..352

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

                    cheeseburger: {
                        fields: [ 'header', 'message' ],
                        option: mw.msg( 'wikilove-food-cheeseburger-option' ),
                        descr: mw.msg( 'wikilove-food-cheeseburger-desc' ),
                        header: mw.msg( 'wikilove-food-cheeseburger-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 10 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 265..272
    resources/ext.wikiLove.startup/defaultOptions.js on lines 273..280
    resources/ext.wikiLove.startup/defaultOptions.js on lines 281..288
    resources/ext.wikiLove.startup/defaultOptions.js on lines 297..304
    resources/ext.wikiLove.startup/defaultOptions.js on lines 305..312
    resources/ext.wikiLove.startup/defaultOptions.js on lines 313..320
    resources/ext.wikiLove.startup/defaultOptions.js on lines 321..328
    resources/ext.wikiLove.startup/defaultOptions.js on lines 329..336
    resources/ext.wikiLove.startup/defaultOptions.js on lines 337..344
    resources/ext.wikiLove.startup/defaultOptions.js on lines 345..352

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

                    pie: {
                        fields: [ 'header', 'message' ],
                        option: mw.msg( 'wikilove-food-pie-option' ),
                        descr: mw.msg( 'wikilove-food-pie-desc' ),
                        header: mw.msg( 'wikilove-food-pie-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 10 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 265..272
    resources/ext.wikiLove.startup/defaultOptions.js on lines 273..280
    resources/ext.wikiLove.startup/defaultOptions.js on lines 281..288
    resources/ext.wikiLove.startup/defaultOptions.js on lines 289..296
    resources/ext.wikiLove.startup/defaultOptions.js on lines 297..304
    resources/ext.wikiLove.startup/defaultOptions.js on lines 305..312
    resources/ext.wikiLove.startup/defaultOptions.js on lines 313..320
    resources/ext.wikiLove.startup/defaultOptions.js on lines 321..328
    resources/ext.wikiLove.startup/defaultOptions.js on lines 337..344
    resources/ext.wikiLove.startup/defaultOptions.js on lines 345..352

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

                    cupcake: {
                        fields: [ 'header', 'message' ],
                        option: mw.msg( 'wikilove-food-cupcake-option' ),
                        descr: mw.msg( 'wikilove-food-cupcake-desc' ),
                        header: mw.msg( 'wikilove-food-cupcake-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 10 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 265..272
    resources/ext.wikiLove.startup/defaultOptions.js on lines 273..280
    resources/ext.wikiLove.startup/defaultOptions.js on lines 281..288
    resources/ext.wikiLove.startup/defaultOptions.js on lines 289..296
    resources/ext.wikiLove.startup/defaultOptions.js on lines 297..304
    resources/ext.wikiLove.startup/defaultOptions.js on lines 305..312
    resources/ext.wikiLove.startup/defaultOptions.js on lines 313..320
    resources/ext.wikiLove.startup/defaultOptions.js on lines 329..336
    resources/ext.wikiLove.startup/defaultOptions.js on lines 337..344
    resources/ext.wikiLove.startup/defaultOptions.js on lines 345..352

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

                    tea: {
                        fields: [ 'header', 'message' ],
                        option: mw.msg( 'wikilove-food-tea-option' ),
                        descr: mw.msg( 'wikilove-food-tea-desc' ),
                        header: mw.msg( 'wikilove-food-tea-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 10 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 265..272
    resources/ext.wikiLove.startup/defaultOptions.js on lines 273..280
    resources/ext.wikiLove.startup/defaultOptions.js on lines 281..288
    resources/ext.wikiLove.startup/defaultOptions.js on lines 289..296
    resources/ext.wikiLove.startup/defaultOptions.js on lines 297..304
    resources/ext.wikiLove.startup/defaultOptions.js on lines 305..312
    resources/ext.wikiLove.startup/defaultOptions.js on lines 321..328
    resources/ext.wikiLove.startup/defaultOptions.js on lines 329..336
    resources/ext.wikiLove.startup/defaultOptions.js on lines 337..344
    resources/ext.wikiLove.startup/defaultOptions.js on lines 345..352

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

                    strawberries: {
                        fields: [ 'header', 'message' ],
                        option: mw.msg( 'wikilove-food-strawberries-option' ),
                        descr: mw.msg( 'wikilove-food-strawberries-desc' ),
                        header: mw.msg( 'wikilove-food-strawberries-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 10 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 265..272
    resources/ext.wikiLove.startup/defaultOptions.js on lines 273..280
    resources/ext.wikiLove.startup/defaultOptions.js on lines 281..288
    resources/ext.wikiLove.startup/defaultOptions.js on lines 289..296
    resources/ext.wikiLove.startup/defaultOptions.js on lines 297..304
    resources/ext.wikiLove.startup/defaultOptions.js on lines 305..312
    resources/ext.wikiLove.startup/defaultOptions.js on lines 313..320
    resources/ext.wikiLove.startup/defaultOptions.js on lines 321..328
    resources/ext.wikiLove.startup/defaultOptions.js on lines 329..336
    resources/ext.wikiLove.startup/defaultOptions.js on lines 345..352

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

                    cookie: {
                        fields: [ 'header', 'message' ],
                        option: mw.msg( 'wikilove-food-cookie-option' ),
                        descr: mw.msg( 'wikilove-food-cookie-desc' ),
                        header: mw.msg( 'wikilove-food-cookie-header' ),
    Severity: Major
    Found in resources/ext.wikiLove.startup/defaultOptions.js and 10 other locations - About 1 hr to fix
    resources/ext.wikiLove.startup/defaultOptions.js on lines 265..272
    resources/ext.wikiLove.startup/defaultOptions.js on lines 273..280
    resources/ext.wikiLove.startup/defaultOptions.js on lines 281..288
    resources/ext.wikiLove.startup/defaultOptions.js on lines 289..296
    resources/ext.wikiLove.startup/defaultOptions.js on lines 305..312
    resources/ext.wikiLove.startup/defaultOptions.js on lines 313..320
    resources/ext.wikiLove.startup/defaultOptions.js on lines 321..328
    resources/ext.wikiLove.startup/defaultOptions.js on lines 329..336
    resources/ext.wikiLove.startup/defaultOptions.js on lines 337..344
    resources/ext.wikiLove.startup/defaultOptions.js on lines 345..352

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status