CaffGeek/MBACNationals

View on GitHub

Showing 1,938 of 7,504 total issues

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

        switch (f.media_type.options[f.media_type.selectedIndex].value) {
            case "flash":
                h += ' class="mceItemFlash"';
                break;

Web.Admin/2014/wordpress/wp-includes/js/tinymce/plugins/media/js/media.js on lines 21..45

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

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

        switch (ed.dom.getAttrib(fe, 'class')) {
            case 'mceItemFlash':
                type = 'flash';
                break;

Web.Admin/2014/wordpress/wp-includes/js/tinymce/plugins/media/js/media.js on lines 233..257

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

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

                if ( isDown ) {
                    if ( isSearchFocused ) {
                        selected = firstVisible;
                    } else if ( this.selected && this.selected.nextAll( '.widget-tpl:visible' ).length !== 0 ) {
                        selected = this.selected.nextAll( '.widget-tpl:visible:first' );
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/js/customize-widgets.js and 1 other location - About 1 hr to fix
Web.Admin/2014/wordpress/wp-admin/js/customize-widgets.js on lines 331..337

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

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

        [HttpGet]
        [OutputCache(NoStore = true, Duration = 0, VaryByParam = "None")]
        public JsonResult TravelPlans(string year, string province)
        {
            if (string.IsNullOrWhiteSpace(province))
Severity: Major
Found in Web.Admin/Controllers/ContingentController.cs and 2 other locations - About 1 hr to fix
Web.Admin/Controllers/ContingentController.cs on lines 118..132
Web.Admin/Controllers/ContingentController.cs on lines 134..149

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

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

        [HttpGet]
        [OutputCache(NoStore = true, Duration = 0, VaryByParam = "None")]
        public JsonResult PracticePlan(string year, string province)
        {

Severity: Major
Found in Web.Admin/Controllers/ContingentController.cs and 2 other locations - About 1 hr to fix
Web.Admin/Controllers/ContingentController.cs on lines 102..116
Web.Admin/Controllers/ContingentController.cs on lines 118..132

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

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

        [HttpGet]
        [OutputCache(NoStore = true, Duration = 0, VaryByParam = "None")]
        public JsonResult Rooms(string year, string province)
        {
            if (string.IsNullOrWhiteSpace(province))
Severity: Major
Found in Web.Admin/Controllers/ContingentController.cs and 2 other locations - About 1 hr to fix
Web.Admin/Controllers/ContingentController.cs on lines 102..116
Web.Admin/Controllers/ContingentController.cs on lines 134..149

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

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 (agg.Name != command.Name)
            {
                yield return new ParticipantRenamed
                {
                    Id = command.Id,
Severity: Major
Found in Aggregates/Participant/ParticipantCommandHandlers.cs and 1 other location - About 1 hr to fix
Aggregates/Participant/ParticipantCommandHandlers.cs on lines 89..99

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

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 (agg.Name != command.Name)
            {
                yield return new ParticipantRenamed
                {
                    Id = command.Id,
Severity: Major
Found in Aggregates/Participant/ParticipantCommandHandlers.cs and 1 other location - About 1 hr to fix
Aggregates/Participant/ParticipantCommandHandlers.cs on lines 230..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 142.

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

    function get_category_permastruct() {
        if (isset($this->category_structure)) {
            return $this->category_structure;
        }

Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/rewrite.php and 1 other location - About 1 hr to fix
Web.Admin/2014/wordpress/wp-includes/rewrite.php on lines 1033..1051

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

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

    function get_tag_permastruct() {
        if (isset($this->tag_structure)) {
            return $this->tag_structure;
        }

Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/rewrite.php and 1 other location - About 1 hr to fix
Web.Admin/2014/wordpress/wp-includes/rewrite.php on lines 1000..1018

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

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

        elseif (substr($data, 0, 10) === "\x3C\x00\x3F\x00\x78\x00\x6D\x00\x6C\x00")
        {
            if ($pos = strpos($data, "\x3F\x00\x3E\x00"))
            {
                $parser = $registry->create('XML_Declaration_Parser', array(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 10), 'UTF-16LE', 'UTF-8')));
Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php and 3 other locations - About 1 hr to fix
Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php on lines 2052..2063
Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php on lines 2065..2076
Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php on lines 2078..2089

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

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

        elseif (substr($data, 0, 20) === "\x00\x00\x00\x3C\x00\x00\x00\x3F\x00\x00\x00\x78\x00\x00\x00\x6D\x00\x00\x00\x6C")
        {
            if ($pos = strpos($data, "\x00\x00\x00\x3F\x00\x00\x00\x3E"))
            {
                $parser = $registry->create('XML_Declaration_Parser', array(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 20), 'UTF-32BE', 'UTF-8')));
Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php and 3 other locations - About 1 hr to fix
Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php on lines 2065..2076
Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php on lines 2078..2089
Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php on lines 2091..2102

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

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

        elseif (substr($data, 0, 10) === "\x00\x3C\x00\x3F\x00\x78\x00\x6D\x00\x6C")
        {
            if ($pos = strpos($data, "\x00\x3F\x00\x3E"))
            {
                $parser = $registry->create('XML_Declaration_Parser', array(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 10), 'UTF-16BE', 'UTF-8')));
Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php and 3 other locations - About 1 hr to fix
Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php on lines 2052..2063
Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php on lines 2065..2076
Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php on lines 2091..2102

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

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

        elseif (substr($data, 0, 20) === "\x3C\x00\x00\x00\x3F\x00\x00\x00\x78\x00\x00\x00\x6D\x00\x00\x00\x6C\x00\x00\x00")
        {
            if ($pos = strpos($data, "\x3F\x00\x00\x00\x3E\x00\x00\x00"))
            {
                $parser = $registry->create('XML_Declaration_Parser', array(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 20), 'UTF-32LE', 'UTF-8')));
Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php and 3 other locations - About 1 hr to fix
Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php on lines 2052..2063
Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php on lines 2078..2089
Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php on lines 2091..2102

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

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

Language.complete = [
    { input : '\'',output : '\'$0\'' },
    { input : '"', output : '"$0"' },
    { input : '(', output : '\($0\)' },
    { input : '[', output : '\[$0\]' },
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/css.js on lines 15..21
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/generic.js on lines 17..23
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/html.js on lines 51..57
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/java.js on lines 16..22
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/javascript.js on lines 22..28
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/php.js on lines 48..54
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/ruby.js on lines 18..24
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/sql.js on lines 19..25

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

Language.complete = [
    { input : '\'',output : '\'$0\'' },
    { input : '"', output : '"$0"' },
    { input : '(', output : '\($0\)' },
    { input : '[', output : '\[$0\]' },
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/css.js on lines 15..21
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/generic.js on lines 17..23
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/html.js on lines 51..57
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/java.js on lines 16..22
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/perl.js on lines 19..25
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/php.js on lines 48..54
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/ruby.js on lines 18..24
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/sql.js on lines 19..25

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

Language.complete = [
    { input : '\'', output : '\'$0\'' },
    { input : '"', output : '"$0"' },
    { input : '(', output : '\($0\)' },
    { input : '[', output : '\[$0\]' },
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/css.js on lines 15..21
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/html.js on lines 51..57
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/java.js on lines 16..22
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/javascript.js on lines 22..28
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/perl.js on lines 19..25
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/php.js on lines 48..54
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/ruby.js on lines 18..24
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/sql.js on lines 19..25

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

Language.complete = [
    { input : '\'', output : '\'$0\'' },
    { input : '"', output : '"$0"' },
    { input : '(', output : '\($0\)' },
    { input : '[', output : '\[$0\]' },
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/css.js on lines 15..21
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/generic.js on lines 17..23
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/html.js on lines 51..57
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/java.js on lines 16..22
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/javascript.js on lines 22..28
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/perl.js on lines 19..25
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/php.js on lines 48..54
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/ruby.js on lines 18..24

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

Language.complete = [
    { input : '\'', output : '\'$0\'' },
    { input : '"', output : '"$0"' },
    { input : '(', output : '\($0\)' },
    { input : '[', output : '\[$0\]' },
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/css.js on lines 15..21
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/generic.js on lines 17..23
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/html.js on lines 51..57
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/java.js on lines 16..22
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/javascript.js on lines 22..28
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/perl.js on lines 19..25
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/ruby.js on lines 18..24
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/sql.js on lines 19..25

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

Language.complete = [
    { input : '\'',output : '\'$0\'' },
    { input : '"', output : '"$0"' },
    { input : '(', output : '\($0\)' },
    { input : '[', output : '\[$0\]' },
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/css.js on lines 15..21
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/generic.js on lines 17..23
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/html.js on lines 51..57
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/javascript.js on lines 22..28
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/perl.js on lines 19..25
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/php.js on lines 48..54
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/ruby.js on lines 18..24
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/sql.js on lines 19..25

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language