RubyLouvre/anu

View on GitHub
packages/render/server/__tests2__/index.js

Summary

Maintainability
F
1 wk
Test Coverage

File index.js has 563 lines of code (exceeds 250 allowed). Consider refactoring.
Open

const ReactDOMServerIntegrationUtils = require('./utils/ReactDOMServerIntegrationTestUtils');

let React;
let ReactDOM;
let ReactDOMServer;
Severity: Major
Found in packages/render/server/__tests2__/index.js - About 1 day to fix

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

          itRenders('no badly cased htmlfor', async render => {
            const e = await render(<div htmlfor="myFor" />, 1);
            expect(e.hasAttribute('for')).toBe(false);
            expect(e.getAttribute('htmlfor')).toBe('myFor');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 1 other location - About 2 hrs to fix
    packages/render/server/__tests2__/index.js on lines 474..481

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

    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

          itRenders(
            'badly cased aliased HTML attribute with a warning',
            async render => {
              const e = await render(<meta httpequiv="refresh" />, 1);
              expect(e.hasAttribute('http-equiv')).toBe(false);
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 1 other location - About 2 hrs to fix
    packages/render/server/__tests2__/index.js on lines 247..251

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

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

          itRenders('no boolean prop with function value', async render => {
            const e = await render(<div hidden={function() {}} />, 1);
            expect(e.hasAttribute('hidden')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 4 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 59..62
    packages/render/server/__tests2__/index.js on lines 181..184
    packages/render/server/__tests2__/index.js on lines 296..299
    packages/render/server/__tests2__/index.js on lines 306..312

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

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

          itRenders(
            'no positive numeric prop with function value',
            async render => {
              const e = await render(<input size={function() {}} />, 1);
              expect(e.hasAttribute('size')).toBe(false);
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 4 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 59..62
    packages/render/server/__tests2__/index.js on lines 129..132
    packages/render/server/__tests2__/index.js on lines 181..184
    packages/render/server/__tests2__/index.js on lines 296..299

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

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

          itRenders('no string prop with function value', async render => {
            const e = await render(<div width={function() {}} />, 1);
            expect(e.hasAttribute('width')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 4 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 129..132
    packages/render/server/__tests2__/index.js on lines 181..184
    packages/render/server/__tests2__/index.js on lines 296..299
    packages/render/server/__tests2__/index.js on lines 306..312

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

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

          itRenders('no numeric prop with function value', async render => {
            const e = await render(<ol start={function() {}} />, 1);
            expect(e.hasAttribute('start')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 4 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 59..62
    packages/render/server/__tests2__/index.js on lines 129..132
    packages/render/server/__tests2__/index.js on lines 181..184
    packages/render/server/__tests2__/index.js on lines 306..312

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

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

          itRenders('no download prop with function value', async render => {
            const e = await render(<div download={function() {}} />, 1);
            expect(e.hasAttribute('download')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 4 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 59..62
    packages/render/server/__tests2__/index.js on lines 129..132
    packages/render/server/__tests2__/index.js on lines 296..299
    packages/render/server/__tests2__/index.js on lines 306..312

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

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

          itRenders('no download prop with symbol value', async render => {
            const e = await render(<div download={Symbol('foo')} />, 1);
            expect(e.hasAttribute('download')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 4 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 64..67
    packages/render/server/__tests2__/index.js on lines 134..137
    packages/render/server/__tests2__/index.js on lines 301..304
    packages/render/server/__tests2__/index.js on lines 314..317

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

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

          itRenders('no numeric prop with symbol value', async render => {
            const e = await render(<ol start={Symbol('foo')} />, 1);
            expect(e.hasAttribute('start')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 4 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 64..67
    packages/render/server/__tests2__/index.js on lines 134..137
    packages/render/server/__tests2__/index.js on lines 186..189
    packages/render/server/__tests2__/index.js on lines 314..317

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

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

          itRenders('no positive numeric prop with symbol value', async render => {
            const e = await render(<input size={Symbol('foo')} />, 1);
            expect(e.hasAttribute('size')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 4 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 64..67
    packages/render/server/__tests2__/index.js on lines 134..137
    packages/render/server/__tests2__/index.js on lines 186..189
    packages/render/server/__tests2__/index.js on lines 301..304

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

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

          itRenders('no string prop with symbol value', async render => {
            const e = await render(<div width={Symbol('foo')} />, 1);
            expect(e.hasAttribute('width')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 4 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 134..137
    packages/render/server/__tests2__/index.js on lines 186..189
    packages/render/server/__tests2__/index.js on lines 301..304
    packages/render/server/__tests2__/index.js on lines 314..317

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

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

          itRenders('no boolean prop with symbol value', async render => {
            const e = await render(<div hidden={Symbol('foo')} />, 1);
            expect(e.hasAttribute('hidden')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 4 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 64..67
    packages/render/server/__tests2__/index.js on lines 186..189
    packages/render/server/__tests2__/index.js on lines 301..304
    packages/render/server/__tests2__/index.js on lines 314..317

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

    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

        itRenders('class for custom elements', async render => {
          const e = await render(<div is="custom-element" class="test" />, 0);
          expect(e.getAttribute('class')).toBe('test');
        });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 1 other location - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 641..644

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

    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

        itRenders('className for custom elements', async render => {
          const e = await render(<div is="custom-element" className="test" />, 0);
          expect(e.getAttribute('className')).toBe('test');
        });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 1 other location - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 636..639

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

    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

        itRenders('for attribute on custom elements', async render => {
          const e = await render(<div is="custom-element" for="test" />);
          expect(e.getAttribute('for')).toBe('test');
        });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 2 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 646..649
    packages/render/server/__tests2__/index.js on lines 684..690

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

    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

        itRenders(
          'unknown attributes for custom elements using is',
          async render => {
            const e = await render(<div is="custom-element" foo="bar" />);
            expect(e.getAttribute('foo')).toBe('bar');
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 2 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 646..649
    packages/render/server/__tests2__/index.js on lines 651..654

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

    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

        itRenders('htmlFor attribute on custom elements', async render => {
          const e = await render(<div is="custom-element" htmlFor="test" />);
          expect(e.getAttribute('htmlFor')).toBe('test');
        });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 2 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 651..654
    packages/render/server/__tests2__/index.js on lines 684..690

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

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

          itRenders('no string prop with false value', async render => {
            const e = await render(<a href={false} />, 1);
            expect(e.hasAttribute('href')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 5 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 44..47
    packages/render/server/__tests2__/index.js on lines 203..206
    packages/render/server/__tests2__/index.js on lines 208..211
    packages/render/server/__tests2__/index.js on lines 258..261
    packages/render/server/__tests2__/index.js on lines 263..266

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

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

          itRenders('no string prop with true value', async render => {
            const e = await render(<a href={true} />, 1);
            expect(e.hasAttribute('href')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 5 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 49..52
    packages/render/server/__tests2__/index.js on lines 203..206
    packages/render/server/__tests2__/index.js on lines 208..211
    packages/render/server/__tests2__/index.js on lines 258..261
    packages/render/server/__tests2__/index.js on lines 263..266

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

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

          itRenders('no className prop with false value', async render => {
            const e = await render(<div className={false} />, 1);
            expect(e.hasAttribute('class')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 5 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 44..47
    packages/render/server/__tests2__/index.js on lines 49..52
    packages/render/server/__tests2__/index.js on lines 203..206
    packages/render/server/__tests2__/index.js on lines 258..261
    packages/render/server/__tests2__/index.js on lines 263..266

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

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

          itRenders('no className prop with true value', async render => {
            const e = await render(<div className={true} />, 1);
            expect(e.hasAttribute('class')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 5 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 44..47
    packages/render/server/__tests2__/index.js on lines 49..52
    packages/render/server/__tests2__/index.js on lines 208..211
    packages/render/server/__tests2__/index.js on lines 258..261
    packages/render/server/__tests2__/index.js on lines 263..266

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

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

          itRenders('no htmlFor prop with true value', async render => {
            const e = await render(<div htmlFor={true} />, 1);
            expect(e.hasAttribute('for')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 5 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 44..47
    packages/render/server/__tests2__/index.js on lines 49..52
    packages/render/server/__tests2__/index.js on lines 203..206
    packages/render/server/__tests2__/index.js on lines 208..211
    packages/render/server/__tests2__/index.js on lines 263..266

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

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

          itRenders('no htmlFor prop with false value', async render => {
            const e = await render(<div htmlFor={false} />, 1);
            expect(e.hasAttribute('for')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 5 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 44..47
    packages/render/server/__tests2__/index.js on lines 49..52
    packages/render/server/__tests2__/index.js on lines 203..206
    packages/render/server/__tests2__/index.js on lines 208..211
    packages/render/server/__tests2__/index.js on lines 258..261

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

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

        itRenders(
          'no unknown attributes for custom elements with null value',
          async render => {
            const e = await render(<custom-element foo={null} />);
            expect(e.hasAttribute('foo')).toBe(false);
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 7 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 54..57
    packages/render/server/__tests2__/index.js on lines 124..127
    packages/render/server/__tests2__/index.js on lines 171..174
    packages/render/server/__tests2__/index.js on lines 213..216
    packages/render/server/__tests2__/index.js on lines 268..271
    packages/render/server/__tests2__/index.js on lines 461..464
    packages/render/server/__tests2__/index.js on lines 553..556

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('unknown data- attributes with boolean false', async render => {
            const e = await render(<div data-foobar={false} />);
            expect(e.getAttribute('data-foobar')).toBe('false');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 5 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 71..74
    packages/render/server/__tests2__/index.js on lines 141..144
    packages/render/server/__tests2__/index.js on lines 563..566
    packages/render/server/__tests2__/index.js on lines 666..669
    packages/render/server/__tests2__/index.js on lines 671..674

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('unknown data- attributes with boolean true', async render => {
            const e = await render(<div data-foobar={true} />);
            expect(e.getAttribute('data-foobar')).toBe('true');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 5 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 71..74
    packages/render/server/__tests2__/index.js on lines 141..144
    packages/render/server/__tests2__/index.js on lines 568..571
    packages/render/server/__tests2__/index.js on lines 666..669
    packages/render/server/__tests2__/index.js on lines 671..674

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

        itRenders('unknown boolean `true` attributes as strings', async render => {
          const e = await render(<custom-element foo={true} />);
          expect(e.getAttribute('foo')).toBe('true');
        });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 5 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 71..74
    packages/render/server/__tests2__/index.js on lines 141..144
    packages/render/server/__tests2__/index.js on lines 563..566
    packages/render/server/__tests2__/index.js on lines 568..571
    packages/render/server/__tests2__/index.js on lines 671..674

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('no download prop with null value', async render => {
            const e = await render(<div download={null} />);
            expect(e.hasAttribute('download')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 7 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 54..57
    packages/render/server/__tests2__/index.js on lines 124..127
    packages/render/server/__tests2__/index.js on lines 213..216
    packages/render/server/__tests2__/index.js on lines 268..271
    packages/render/server/__tests2__/index.js on lines 461..464
    packages/render/server/__tests2__/index.js on lines 553..556
    packages/render/server/__tests2__/index.js on lines 676..682

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('no aria prop with null value', async render => {
            const e = await render(<div aria-label={null} />);
            expect(e.hasAttribute('aria-label')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 7 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 54..57
    packages/render/server/__tests2__/index.js on lines 124..127
    packages/render/server/__tests2__/index.js on lines 171..174
    packages/render/server/__tests2__/index.js on lines 213..216
    packages/render/server/__tests2__/index.js on lines 268..271
    packages/render/server/__tests2__/index.js on lines 553..556
    packages/render/server/__tests2__/index.js on lines 676..682

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('no string prop with null value', async render => {
            const e = await render(<div width={null} />);
            expect(e.hasAttribute('width')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 7 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 124..127
    packages/render/server/__tests2__/index.js on lines 171..174
    packages/render/server/__tests2__/index.js on lines 213..216
    packages/render/server/__tests2__/index.js on lines 268..271
    packages/render/server/__tests2__/index.js on lines 461..464
    packages/render/server/__tests2__/index.js on lines 553..556
    packages/render/server/__tests2__/index.js on lines 676..682

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('numeric property with zero value', async render => {
            const e = await render(<ol start={0} />);
            expect(e.getAttribute('start')).toBe('0');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 3 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 34..37
    packages/render/server/__tests2__/index.js on lines 166..169
    packages/render/server/__tests2__/index.js on lines 275..281

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders(
            'positive numeric property with positive value',
            async render => {
              const e = await render(<input size={2} />);
              expect(e.getAttribute('size')).toBe('2');
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 3 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 34..37
    packages/render/server/__tests2__/index.js on lines 166..169
    packages/render/server/__tests2__/index.js on lines 283..286

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('boolean prop with false value', async render => {
            const e = await render(<div hidden={false} />);
            expect(e.getAttribute('hidden')).toBe(null);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 3 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 146..149
    packages/render/server/__tests2__/index.js on lines 348..351
    packages/render/server/__tests2__/index.js on lines 353..356

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('no suppressContentEditableWarning attribute', async render => {
            const e = await render(<div suppressContentEditableWarning={true} />);
            expect(e.getAttribute('suppressContentEditableWarning')).toBe(null);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 3 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 76..79
    packages/render/server/__tests2__/index.js on lines 146..149
    packages/render/server/__tests2__/index.js on lines 353..356

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('no suppressHydrationWarning attribute', async render => {
            const e = await render(<span suppressHydrationWarning={true} />);
            expect(e.getAttribute('suppressHydrationWarning')).toBe(null);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 3 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 76..79
    packages/render/server/__tests2__/index.js on lines 146..149
    packages/render/server/__tests2__/index.js on lines 348..351

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('download prop with false value', async render => {
            const e = await render(<a download={false} />);
            expect(e.getAttribute('download')).toBe(null);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 3 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 76..79
    packages/render/server/__tests2__/index.js on lines 348..351
    packages/render/server/__tests2__/index.js on lines 353..356

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('download prop with true value', async render => {
            const e = await render(<a download={true} />);
            expect(e.getAttribute('download')).toBe('');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 5 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 71..74
    packages/render/server/__tests2__/index.js on lines 563..566
    packages/render/server/__tests2__/index.js on lines 568..571
    packages/render/server/__tests2__/index.js on lines 666..669
    packages/render/server/__tests2__/index.js on lines 671..674

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('download prop with number 0 value', async render => {
            const e = await render(<a download={0} />);
            expect(e.getAttribute('download')).toBe('0');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 3 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 34..37
    packages/render/server/__tests2__/index.js on lines 275..281
    packages/render/server/__tests2__/index.js on lines 283..286

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('no boolean prop with null value', async render => {
            const e = await render(<div hidden={null} />);
            expect(e.hasAttribute('hidden')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 7 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 54..57
    packages/render/server/__tests2__/index.js on lines 171..174
    packages/render/server/__tests2__/index.js on lines 213..216
    packages/render/server/__tests2__/index.js on lines 268..271
    packages/render/server/__tests2__/index.js on lines 461..464
    packages/render/server/__tests2__/index.js on lines 553..556
    packages/render/server/__tests2__/index.js on lines 676..682

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('no className prop with null value', async render => {
            const e = await render(<div className={null} />);
            expect(e.hasAttribute('className')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 7 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 54..57
    packages/render/server/__tests2__/index.js on lines 124..127
    packages/render/server/__tests2__/index.js on lines 171..174
    packages/render/server/__tests2__/index.js on lines 268..271
    packages/render/server/__tests2__/index.js on lines 461..464
    packages/render/server/__tests2__/index.js on lines 553..556
    packages/render/server/__tests2__/index.js on lines 676..682

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('no unknown data- attributes with null value', async render => {
            const e = await render(<div data-foo={null} />);
            expect(e.hasAttribute('data-foo')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 7 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 54..57
    packages/render/server/__tests2__/index.js on lines 124..127
    packages/render/server/__tests2__/index.js on lines 171..174
    packages/render/server/__tests2__/index.js on lines 213..216
    packages/render/server/__tests2__/index.js on lines 268..271
    packages/render/server/__tests2__/index.js on lines 461..464
    packages/render/server/__tests2__/index.js on lines 676..682

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('boolean prop with true value', async render => {
            const e = await render(<div hidden={true} />);
            expect(e.getAttribute('hidden')).toBe('');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 5 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 141..144
    packages/render/server/__tests2__/index.js on lines 563..566
    packages/render/server/__tests2__/index.js on lines 568..571
    packages/render/server/__tests2__/index.js on lines 666..669
    packages/render/server/__tests2__/index.js on lines 671..674

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('no htmlFor prop with null value', async render => {
            const e = await render(<div htmlFor={null} />);
            expect(e.hasAttribute('htmlFor')).toBe(false);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 7 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 54..57
    packages/render/server/__tests2__/index.js on lines 124..127
    packages/render/server/__tests2__/index.js on lines 171..174
    packages/render/server/__tests2__/index.js on lines 213..216
    packages/render/server/__tests2__/index.js on lines 461..464
    packages/render/server/__tests2__/index.js on lines 553..556
    packages/render/server/__tests2__/index.js on lines 676..682

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

        itRenders('unknown boolean `false` attributes as strings', async render => {
          const e = await render(<custom-element foo={false} />);
          expect(e.getAttribute('foo')).toBe('false');
        });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 5 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 71..74
    packages/render/server/__tests2__/index.js on lines 141..144
    packages/render/server/__tests2__/index.js on lines 563..566
    packages/render/server/__tests2__/index.js on lines 568..571
    packages/render/server/__tests2__/index.js on lines 666..669

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('simple numbers', async render => {
            const e = await render(<div width={30} />);
            expect(e.getAttribute('width')).toBe('30');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 3 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 166..169
    packages/render/server/__tests2__/index.js on lines 275..281
    packages/render/server/__tests2__/index.js on lines 283..286

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('download prop with string "true" value', async render => {
            const e = await render(<a download={'true'} />);
            expect(e.getAttribute('download')).toBe('true');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 1 other location - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 39..42

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('simple strings', async render => {
            const e = await render(<div width={'30'} />);
            expect(e.getAttribute('width')).toBe('30');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 1 other location - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 161..164

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('badly cased reserved attributes', async render => {
            const e = await render(<div CHILDREN="5" />, 1);
            expect(e.getAttribute('CHILDREN')).toBe('5');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 2 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 558..561
    packages/render/server/__tests2__/index.js on lines 606..609

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

    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

          itRenders('cased custom attributes', async render => {
            const e = await render(<div fooBar="test" />, 1);
            expect(e.getAttribute('foobar')).toBe('test');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 2 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 542..545
    packages/render/server/__tests2__/index.js on lines 558..561

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

    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

          itRenders('unknown data- attributes with casing', async render => {
            const e = await render(<div data-fooBar="true" />, 1);
            expect(e.getAttribute('data-foobar')).toBe('true');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 2 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 542..545
    packages/render/server/__tests2__/index.js on lines 606..609

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

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('className prop with empty string value', async render => {
            const e = await render(<div className="" />);
            expect(e.getAttribute('class')).toBe('');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 10 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 151..154
    packages/render/server/__tests2__/index.js on lines 156..159
    packages/render/server/__tests2__/index.js on lines 193..196
    packages/render/server/__tests2__/index.js on lines 242..245
    packages/render/server/__tests2__/index.js on lines 253..256
    packages/render/server/__tests2__/index.js on lines 532..535
    packages/render/server/__tests2__/index.js on lines 537..540
    packages/render/server/__tests2__/index.js on lines 627..630
    packages/render/server/__tests2__/index.js on lines 656..659
    packages/render/server/__tests2__/index.js on lines 661..664

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

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('htmlFor with string value', async render => {
            const e = await render(<div htmlFor="myFor" />);
            expect(e.getAttribute('for')).toBe('myFor');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 10 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 151..154
    packages/render/server/__tests2__/index.js on lines 156..159
    packages/render/server/__tests2__/index.js on lines 193..196
    packages/render/server/__tests2__/index.js on lines 198..201
    packages/render/server/__tests2__/index.js on lines 253..256
    packages/render/server/__tests2__/index.js on lines 532..535
    packages/render/server/__tests2__/index.js on lines 537..540
    packages/render/server/__tests2__/index.js on lines 627..630
    packages/render/server/__tests2__/index.js on lines 656..659
    packages/render/server/__tests2__/index.js on lines 661..664

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

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

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

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

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

    Refactorings

    Further Reading

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

        itRenders('custom attribute named `on`', async render => {
          const e = await render(<div on="tap:do-something" />);
          expect(e.getAttribute('on')).toEqual('tap:do-something');
        });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 10 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 151..154
    packages/render/server/__tests2__/index.js on lines 156..159
    packages/render/server/__tests2__/index.js on lines 193..196
    packages/render/server/__tests2__/index.js on lines 198..201
    packages/render/server/__tests2__/index.js on lines 242..245
    packages/render/server/__tests2__/index.js on lines 253..256
    packages/render/server/__tests2__/index.js on lines 532..535
    packages/render/server/__tests2__/index.js on lines 537..540
    packages/render/server/__tests2__/index.js on lines 656..659
    packages/render/server/__tests2__/index.js on lines 661..664

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

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

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

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

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

    Refactorings

    Further Reading

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

        itRenders('unknown `on*` attributes for custom elements', async render => {
          const e = await render(<custom-element onunknown="bar" />);
          expect(e.getAttribute('onunknown')).toBe('bar');
        });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 10 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 151..154
    packages/render/server/__tests2__/index.js on lines 156..159
    packages/render/server/__tests2__/index.js on lines 193..196
    packages/render/server/__tests2__/index.js on lines 198..201
    packages/render/server/__tests2__/index.js on lines 242..245
    packages/render/server/__tests2__/index.js on lines 253..256
    packages/render/server/__tests2__/index.js on lines 532..535
    packages/render/server/__tests2__/index.js on lines 537..540
    packages/render/server/__tests2__/index.js on lines 627..630
    packages/render/server/__tests2__/index.js on lines 656..659

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

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

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

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

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

    Refactorings

    Further Reading

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

        itRenders('unknown attributes for custom elements', async render => {
          const e = await render(<custom-element foo="bar" />);
          expect(e.getAttribute('foo')).toBe('bar');
        });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 10 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 151..154
    packages/render/server/__tests2__/index.js on lines 156..159
    packages/render/server/__tests2__/index.js on lines 193..196
    packages/render/server/__tests2__/index.js on lines 198..201
    packages/render/server/__tests2__/index.js on lines 242..245
    packages/render/server/__tests2__/index.js on lines 253..256
    packages/render/server/__tests2__/index.js on lines 532..535
    packages/render/server/__tests2__/index.js on lines 537..540
    packages/render/server/__tests2__/index.js on lines 627..630
    packages/render/server/__tests2__/index.js on lines 661..664

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

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('download prop with string value', async render => {
            const e = await render(<a download="myfile" />);
            expect(e.getAttribute('download')).toBe('myfile');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 10 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 156..159
    packages/render/server/__tests2__/index.js on lines 193..196
    packages/render/server/__tests2__/index.js on lines 198..201
    packages/render/server/__tests2__/index.js on lines 242..245
    packages/render/server/__tests2__/index.js on lines 253..256
    packages/render/server/__tests2__/index.js on lines 532..535
    packages/render/server/__tests2__/index.js on lines 537..540
    packages/render/server/__tests2__/index.js on lines 627..630
    packages/render/server/__tests2__/index.js on lines 656..659
    packages/render/server/__tests2__/index.js on lines 661..664

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

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('download prop with string "false" value', async render => {
            const e = await render(<a download="false" />);
            expect(e.getAttribute('download')).toBe('false');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 10 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 151..154
    packages/render/server/__tests2__/index.js on lines 193..196
    packages/render/server/__tests2__/index.js on lines 198..201
    packages/render/server/__tests2__/index.js on lines 242..245
    packages/render/server/__tests2__/index.js on lines 253..256
    packages/render/server/__tests2__/index.js on lines 532..535
    packages/render/server/__tests2__/index.js on lines 537..540
    packages/render/server/__tests2__/index.js on lines 627..630
    packages/render/server/__tests2__/index.js on lines 656..659
    packages/render/server/__tests2__/index.js on lines 661..664

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

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('unknown data- attributes', async render => {
            const e = await render(<div data-foo="bar" />);
            expect(e.getAttribute('data-foo')).toBe('bar');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 10 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 151..154
    packages/render/server/__tests2__/index.js on lines 156..159
    packages/render/server/__tests2__/index.js on lines 193..196
    packages/render/server/__tests2__/index.js on lines 198..201
    packages/render/server/__tests2__/index.js on lines 242..245
    packages/render/server/__tests2__/index.js on lines 253..256
    packages/render/server/__tests2__/index.js on lines 532..535
    packages/render/server/__tests2__/index.js on lines 627..630
    packages/render/server/__tests2__/index.js on lines 656..659
    packages/render/server/__tests2__/index.js on lines 661..664

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

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('className prop with string value', async render => {
            const e = await render(<div className="myClassName" />);
            expect(e.getAttribute('class')).toBe('myClassName');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 10 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 151..154
    packages/render/server/__tests2__/index.js on lines 156..159
    packages/render/server/__tests2__/index.js on lines 198..201
    packages/render/server/__tests2__/index.js on lines 242..245
    packages/render/server/__tests2__/index.js on lines 253..256
    packages/render/server/__tests2__/index.js on lines 532..535
    packages/render/server/__tests2__/index.js on lines 537..540
    packages/render/server/__tests2__/index.js on lines 627..630
    packages/render/server/__tests2__/index.js on lines 656..659
    packages/render/server/__tests2__/index.js on lines 661..664

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

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('htmlFor with an empty string', async render => {
            const e = await render(<div htmlFor="" />);
            expect(e.getAttribute('for')).toBe('');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 10 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 151..154
    packages/render/server/__tests2__/index.js on lines 156..159
    packages/render/server/__tests2__/index.js on lines 193..196
    packages/render/server/__tests2__/index.js on lines 198..201
    packages/render/server/__tests2__/index.js on lines 242..245
    packages/render/server/__tests2__/index.js on lines 532..535
    packages/render/server/__tests2__/index.js on lines 537..540
    packages/render/server/__tests2__/index.js on lines 627..630
    packages/render/server/__tests2__/index.js on lines 656..659
    packages/render/server/__tests2__/index.js on lines 661..664

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

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

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

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

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

    Refactorings

    Further Reading

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

          itRenders('unknown attributes', async render => {
            const e = await render(<div foo="bar" />);
            expect(e.getAttribute('foo')).toBe('bar');
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 10 other locations - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 151..154
    packages/render/server/__tests2__/index.js on lines 156..159
    packages/render/server/__tests2__/index.js on lines 193..196
    packages/render/server/__tests2__/index.js on lines 198..201
    packages/render/server/__tests2__/index.js on lines 242..245
    packages/render/server/__tests2__/index.js on lines 253..256
    packages/render/server/__tests2__/index.js on lines 537..540
    packages/render/server/__tests2__/index.js on lines 627..630
    packages/render/server/__tests2__/index.js on lines 656..659
    packages/render/server/__tests2__/index.js on lines 661..664

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

    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

          itRenders('no key attribute', async render => {
            const e = await render(<div key="foo" />);
            expect(e.getAttribute('key')).toBe(null);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 1 other location - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 89..92

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

    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

          itRenders('boolean prop with "" value', async render => {
            const e = await render(<div hidden="" />);
            expect(e.getAttribute('hidden')).toBe(null);
          });
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 1 other location - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 336..339

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

    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

          itRenders(
            'className prop when given a badly cased alias',
            async render => {
              const e = await render(<div cLASs="test" />, 1);
              expect(e.className).toBe('test');
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 1 other location - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 224..230

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

    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

          itRenders(
            'className prop when given the alias with a warning',
            async render => {
              const e = await render(<div class="test" />, 1);
              expect(e.className).toBe('test');
    Severity: Major
    Found in packages/render/server/__tests2__/index.js and 1 other location - About 1 hr to fix
    packages/render/server/__tests2__/index.js on lines 232..238

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

    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