suitmedia/suitcoda

View on GitHub

Showing 232 of 784 total issues

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

gulp.task('style', function () {
    var options = {
        style: 'compressed'
    };

Severity: Major
Found in _frontend/gulpfile.js and 1 other location - About 2 hrs to fix
_frontend/gulpfile.js on lines 138..147

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

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

gulp.task('copy-JS', function () {
    var options = {
        suffix: '.min'
    };

Severity: Major
Found in _frontend/gulpfile.js and 1 other location - About 2 hrs to fix
_frontend/gulpfile.js on lines 108..117

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

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

    public function testCallHtmlResultReader()
    {
        $jobFaker = factory(JobInspect::class)->create([
            'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
            'scope_id' => Scope::where('id', 3)->first()->id
Severity: Major
Found in tests/Supports/ResultReaderTest.php and 8 other locations - About 2 hrs to fix
tests/Supports/ResultReaderTest.php on lines 44..59
tests/Supports/ResultReaderTest.php on lines 66..81
tests/Supports/ResultReaderTest.php on lines 110..125
tests/Supports/ResultReaderTest.php on lines 132..147
tests/Supports/ResultReaderTest.php on lines 154..169
tests/Supports/ResultReaderTest.php on lines 176..191
tests/Supports/ResultReaderTest.php on lines 198..213
tests/Supports/ResultReaderTest.php on lines 220..235

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

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

    public function testCallJsResultReader()
    {
        $jobFaker = factory(JobInspect::class)->create([
            'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
            'scope_id' => Scope::where('id', 5)->first()->id
Severity: Major
Found in tests/Supports/ResultReaderTest.php and 8 other locations - About 2 hrs to fix
tests/Supports/ResultReaderTest.php on lines 44..59
tests/Supports/ResultReaderTest.php on lines 66..81
tests/Supports/ResultReaderTest.php on lines 88..103
tests/Supports/ResultReaderTest.php on lines 110..125
tests/Supports/ResultReaderTest.php on lines 154..169
tests/Supports/ResultReaderTest.php on lines 176..191
tests/Supports/ResultReaderTest.php on lines 198..213
tests/Supports/ResultReaderTest.php on lines 220..235

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

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

    public function testCallPagespeedResultReaderForMobile()
    {
        $jobFaker = factory(JobInspect::class)->create([
            'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
            'scope_id' => Scope::where('id', 8)->first()->id
Severity: Major
Found in tests/Supports/ResultReaderTest.php and 8 other locations - About 2 hrs to fix
tests/Supports/ResultReaderTest.php on lines 44..59
tests/Supports/ResultReaderTest.php on lines 66..81
tests/Supports/ResultReaderTest.php on lines 88..103
tests/Supports/ResultReaderTest.php on lines 110..125
tests/Supports/ResultReaderTest.php on lines 132..147
tests/Supports/ResultReaderTest.php on lines 154..169
tests/Supports/ResultReaderTest.php on lines 176..191
tests/Supports/ResultReaderTest.php on lines 220..235

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

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

    public function testCallSeoResultReaderForSeo()
    {
        $jobFaker = factory(JobInspect::class)->create([
            'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
            'scope_id' => Scope::where('id', 1)->first()->id
Severity: Major
Found in tests/Supports/ResultReaderTest.php and 8 other locations - About 2 hrs to fix
tests/Supports/ResultReaderTest.php on lines 66..81
tests/Supports/ResultReaderTest.php on lines 88..103
tests/Supports/ResultReaderTest.php on lines 110..125
tests/Supports/ResultReaderTest.php on lines 132..147
tests/Supports/ResultReaderTest.php on lines 154..169
tests/Supports/ResultReaderTest.php on lines 176..191
tests/Supports/ResultReaderTest.php on lines 198..213
tests/Supports/ResultReaderTest.php on lines 220..235

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

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

    public function testCallCssResultReader()
    {
        $jobFaker = factory(JobInspect::class)->create([
            'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
            'scope_id' => Scope::where('id', 4)->first()->id
Severity: Major
Found in tests/Supports/ResultReaderTest.php and 8 other locations - About 2 hrs to fix
tests/Supports/ResultReaderTest.php on lines 44..59
tests/Supports/ResultReaderTest.php on lines 66..81
tests/Supports/ResultReaderTest.php on lines 88..103
tests/Supports/ResultReaderTest.php on lines 132..147
tests/Supports/ResultReaderTest.php on lines 154..169
tests/Supports/ResultReaderTest.php on lines 176..191
tests/Supports/ResultReaderTest.php on lines 198..213
tests/Supports/ResultReaderTest.php on lines 220..235

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

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

    public function testCallYslowResultReader()
    {
        $jobFaker = factory(JobInspect::class)->create([
            'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
            'scope_id' => Scope::where('id', 9)->first()->id
Severity: Major
Found in tests/Supports/ResultReaderTest.php and 8 other locations - About 2 hrs to fix
tests/Supports/ResultReaderTest.php on lines 44..59
tests/Supports/ResultReaderTest.php on lines 66..81
tests/Supports/ResultReaderTest.php on lines 88..103
tests/Supports/ResultReaderTest.php on lines 110..125
tests/Supports/ResultReaderTest.php on lines 132..147
tests/Supports/ResultReaderTest.php on lines 154..169
tests/Supports/ResultReaderTest.php on lines 176..191
tests/Supports/ResultReaderTest.php on lines 198..213

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

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

    public function testCallSocialMediaResultReader()
    {
        $jobFaker = factory(JobInspect::class)->create([
            'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
            'scope_id' => Scope::where('id', 6)->first()->id
Severity: Major
Found in tests/Supports/ResultReaderTest.php and 8 other locations - About 2 hrs to fix
tests/Supports/ResultReaderTest.php on lines 44..59
tests/Supports/ResultReaderTest.php on lines 66..81
tests/Supports/ResultReaderTest.php on lines 88..103
tests/Supports/ResultReaderTest.php on lines 110..125
tests/Supports/ResultReaderTest.php on lines 132..147
tests/Supports/ResultReaderTest.php on lines 176..191
tests/Supports/ResultReaderTest.php on lines 198..213
tests/Supports/ResultReaderTest.php on lines 220..235

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

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

    public function testCallPagespeedResultReaderForDesktop()
    {
        $jobFaker = factory(JobInspect::class)->create([
            'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
            'scope_id' => Scope::where('id', 7)->first()->id
Severity: Major
Found in tests/Supports/ResultReaderTest.php and 8 other locations - About 2 hrs to fix
tests/Supports/ResultReaderTest.php on lines 44..59
tests/Supports/ResultReaderTest.php on lines 66..81
tests/Supports/ResultReaderTest.php on lines 88..103
tests/Supports/ResultReaderTest.php on lines 110..125
tests/Supports/ResultReaderTest.php on lines 132..147
tests/Supports/ResultReaderTest.php on lines 154..169
tests/Supports/ResultReaderTest.php on lines 198..213
tests/Supports/ResultReaderTest.php on lines 220..235

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

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

    public function testCallSeoResultReaderForBackendSeo()
    {
        $jobFaker = factory(JobInspect::class)->create([
            'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
            'scope_id' => Scope::where('id', 2)->first()->id
Severity: Major
Found in tests/Supports/ResultReaderTest.php and 8 other locations - About 2 hrs to fix
tests/Supports/ResultReaderTest.php on lines 44..59
tests/Supports/ResultReaderTest.php on lines 88..103
tests/Supports/ResultReaderTest.php on lines 110..125
tests/Supports/ResultReaderTest.php on lines 132..147
tests/Supports/ResultReaderTest.php on lines 154..169
tests/Supports/ResultReaderTest.php on lines 176..191
tests/Supports/ResultReaderTest.php on lines 198..213
tests/Supports/ResultReaderTest.php on lines 220..235

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

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

        for ( var j = 0; j < w3ResultWarning.warningMsg.length; j++ ) {
            resultHTMLLinter.checking.push({
                type    : 'Warning',
                desc    : w3ResultWarning.warningMsg[j],
                line    : w3ResultWarning.warningLine[j],
Severity: Major
Found in linter/htmlHorseman.js and 1 other location - About 2 hrs to fix
linter/htmlHorseman.js on lines 100..107

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

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 (YSLOW.doc) {
                            if (YSLOW.doc.tools_desc) {
                                v = YSLOW.doc.tools_desc
                            }
                            if (YSLOW.doc.view_names && YSLOW.doc.view_names.tools) {
Severity: Major
Found in performance/yslow.js and 1 other location - About 2 hrs to fix
performance/yslow.js on lines 5508..5515

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

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 (YSLOW.doc) {
                            if (YSLOW.doc.rulesettings_desc) {
                                x = YSLOW.doc.rulesettings_desc
                            }
                            if (YSLOW.doc.view_names && YSLOW.doc.view_names.rulesetedit) {
Severity: Major
Found in performance/yslow.js and 1 other location - About 2 hrs to fix
performance/yslow.js on lines 5486..5493

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

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

        for ( var i = 0; i < w3ResultError.errorMsg.length; i++ ) {
            resultHTMLLinter.checking.push({
                type    : 'Error',
                desc    : w3ResultError.errorMsg[i],
                line    : w3ResultError.errorLine[i],
Severity: Major
Found in linter/htmlHorseman.js and 1 other location - About 2 hrs to fix
linter/htmlHorseman.js on lines 109..116

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

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 (q === "peel") {
                                u = this.getElementByTagNameAndId(z, "div", "peelprogress");
                                x = this.getElementByTagNameAndId(z, "div", "progbar");
                                y = this.getElementByTagNameAndId(z, "div", "progtext");
                                A = v.message;
Severity: Major
Found in performance/yslow.js and 1 other location - About 2 hrs to fix
performance/yslow.js on lines 3757..3773

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

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 (q === "fetch") {
                                    u = this.getElementByTagNameAndId(z, "div", "fetchprogress");
                                    x = this.getElementByTagNameAndId(z, "div", "progbar2");
                                    y = this.getElementByTagNameAndId(z, "div", "progtext2");
                                    A = v.last_component_url;
Severity: Major
Found in performance/yslow.js and 1 other location - About 2 hrs to fix
performance/yslow.js on lines 3750..3774

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

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

FastClick.prototype.focus = function(targetElement) {
    'use strict';
    var length;

    if (this.deviceIsIOS && targetElement.setSelectionRange) {
Severity: Major
Found in _frontend/dev/js/vendor/fastclick.js and 1 other location - About 2 hrs to fix
_frontend/assets/js/vendor/fastclick.min.js on lines 297..307

Duplicated Code

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

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

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

Tuning

This issue has a mass of 89.

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

FastClick.prototype.focus = function(targetElement) {
    'use strict';
    var length;

    if (this.deviceIsIOS && targetElement.setSelectionRange) {
Severity: Major
Found in _frontend/assets/js/vendor/fastclick.min.js and 1 other location - About 2 hrs to fix
_frontend/dev/js/vendor/fastclick.js on lines 297..307

Duplicated Code

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

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

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

Tuning

This issue has a mass of 89.

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

                        for (w = 0, z = v.length; w < z; w += 1) {
                            u = v[w];
                            q = u.src || u.getAttribute("src");
                            if (q) {
                                r[q] = 1
Severity: Major
Found in performance/yslow.js and 3 other locations - About 2 hrs to fix
performance/yslow.js on lines 2387..2393
performance/yslow.js on lines 2395..2401
performance/yslow.js on lines 2403..2409

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

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