src/integration/common/SEO.js

Summary

Maintainability
D
1 day
Test Coverage

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

    it('OG site name', () => {
      const metaTagContent = getMetaTagContent('meta[property="og:site_name"]');

      expect(metaTagContent).toBeTruthy();
      expect(metaTagContent).toMatchSnapshot();
Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 151..158
src/integration/common/SEO.js on lines 160..165

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

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

    it('Twitter image src', () => {
      const metaTagContent = getMetaTagContent(
        'meta[name="twitter:image:src"]',
      );

Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 151..158
src/integration/common/SEO.js on lines 160..165

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

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

    it('Twitter creator', () => {
      const metaTagContent = getMetaTagContent('meta[name="twitter:creator"]');

      expect(metaTagContent).toBeTruthy();
      expect(metaTagContent).toMatchSnapshot();
Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 151..158
src/integration/common/SEO.js on lines 160..165

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

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

    it('OG type', () => {
      const metaTagContent = getMetaTagContent('meta[property="og:type"]');

      expect(metaTagContent).toBeTruthy();
      expect(metaTagContent).toMatchSnapshot();
Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 151..158
src/integration/common/SEO.js on lines 160..165

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

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

    it('Twitter description', () => {
      const metaTagContent = getMetaTagContent(
        'meta[name="twitter:description"]',
      );

Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 160..165

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

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

    it('Twitter site', () => {
      const metaTagContent = getMetaTagContent('meta[name="twitter:site"]');

      expect(metaTagContent).toBeTruthy();
      expect(metaTagContent).toMatchSnapshot();
Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 151..158
src/integration/common/SEO.js on lines 160..165

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

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

    it('Twitter image alt', () => {
      const metaTagContent = getMetaTagContent(
        'meta[name="twitter:image:alt"]',
      );

Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 151..158
src/integration/common/SEO.js on lines 160..165

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

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

    it('FB app ID', () => {
      const metaTagContent = getMetaTagContent('meta[property="fb:app_id"]');

      expect(metaTagContent).toBeTruthy();
      expect(metaTagContent).toMatchSnapshot();
Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 151..158
src/integration/common/SEO.js on lines 160..165

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

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

    it('OG image alt', () => {
      const metaTagContent = getMetaTagContent('meta[property="og:image:alt"]');

      expect(metaTagContent).toBeTruthy();
      expect(metaTagContent).toMatchSnapshot();
Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 151..158
src/integration/common/SEO.js on lines 160..165

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

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

    it('OG url', () => {
      const metaTagContent = getMetaTagContent('meta[property="og:url"]');

      expect(metaTagContent).toBeTruthy();
      expect(metaTagContent).toMatchSnapshot();
Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 151..158
src/integration/common/SEO.js on lines 160..165

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

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

    it('Twitter card', () => {
      const metaTagContent = getMetaTagContent('meta[name="twitter:card"]');

      expect(metaTagContent).toBeTruthy();
      expect(metaTagContent).toMatchSnapshot();
Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 151..158
src/integration/common/SEO.js on lines 160..165

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

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

    it('OG locale', () => {
      const metaTagContent = getMetaTagContent('meta[property="og:locale"]');

      expect(metaTagContent).toBeTruthy();
      expect(metaTagContent).toMatchSnapshot();
Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 151..158
src/integration/common/SEO.js on lines 160..165

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

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

    it('OG description', () => {
      const metaTagContent = getMetaTagContent(
        'meta[property="og:description"]',
      );

Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 151..158
src/integration/common/SEO.js on lines 160..165

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

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

    it('OG image', () => {
      const metaTagContent = getMetaTagContent('meta[property="og:image"]');

      expect(metaTagContent).toBeTruthy();
      expect(metaTagContent).toMatchSnapshot();
Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 151..158
src/integration/common/SEO.js on lines 160..165

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

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

    it('OG title', () => {
      const metaTagContent = getMetaTagContent('meta[property="og:title"]');

      expect(metaTagContent).toBeTruthy();
      expect(metaTagContent).toMatchSnapshot();
Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 151..158
src/integration/common/SEO.js on lines 160..165

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

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

    it('Twitter title', () => {
      const metaTagContent = getMetaTagContent('meta[name="twitter:title"]');

      expect(metaTagContent).toBeTruthy();
      expect(metaTagContent).toMatchSnapshot();
Severity: Major
Found in src/integration/common/SEO.js and 15 other locations - About 50 mins to fix
src/integration/common/SEO.js on lines 47..52
src/integration/common/SEO.js on lines 54..59
src/integration/common/SEO.js on lines 61..66
src/integration/common/SEO.js on lines 68..73
src/integration/common/SEO.js on lines 75..80
src/integration/common/SEO.js on lines 82..87
src/integration/common/SEO.js on lines 89..94
src/integration/common/SEO.js on lines 96..101
src/integration/common/SEO.js on lines 103..108
src/integration/common/SEO.js on lines 110..117
src/integration/common/SEO.js on lines 119..126
src/integration/common/SEO.js on lines 128..133
src/integration/common/SEO.js on lines 135..142
src/integration/common/SEO.js on lines 144..149
src/integration/common/SEO.js on lines 151..158

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

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

    it('Lang attribute', () => {
      const htmlEl = document.querySelector('html');

      expect(htmlEl.getAttribute('lang')).toMatchSnapshot();
    });
Severity: Major
Found in src/integration/common/SEO.js and 3 other locations - About 45 mins to fix
src/integration/common/SEO.amp.js on lines 3..7
src/integration/common/SEO.js on lines 22..26
src/integration/common/SEO.js on lines 41..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 50.

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

    it('Dir attribute', () => {
      const htmlEl = document.querySelector('html');

      expect(htmlEl.getAttribute('dir')).toMatchSnapshot();
    });
Severity: Major
Found in src/integration/common/SEO.js and 3 other locations - About 45 mins to fix
src/integration/common/SEO.amp.js on lines 3..7
src/integration/common/SEO.js on lines 22..26
src/integration/common/SEO.js on lines 35..39

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

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

    it('Canonical link', () => {
      const canonicalEl = document.querySelector('head link[rel="canonical"]');

      expect(canonicalEl.getAttribute('href')).toMatchSnapshot();
    });
Severity: Major
Found in src/integration/common/SEO.js and 3 other locations - About 45 mins to fix
src/integration/common/SEO.amp.js on lines 3..7
src/integration/common/SEO.js on lines 35..39
src/integration/common/SEO.js on lines 41..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 50.

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

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

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

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

Refactorings

Further Reading

There are no issues that match your filters.

Category
Status