wikimedia/mediawiki-extensions-WikiLove

View on GitHub

Showing 51 of 81 total issues

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

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

        if ( currentTypeOrSubtype.fields.indexOf( 'header' ) !== -1 && $( '#mw-wikilove-header' ).val().length === 0 ) {
            $.wikiLove.showAddDetailsError( 'wikilove-err-header' );
            return false;
        }
Severity: Major
Found in resources/ext.wikiLove.startup/wikiLove.js and 1 other location - About 1 hr to fix
resources/ext.wikiLove.startup/wikiLove.js on lines 574..577

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

Severity
Category
Status
Source
Language