nexxtway/react-rainbow

View on GitHub

Showing 2,739 of 2,739 total issues

Function Item has 74 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function Item(props) {
    const {
        label,
        icon,
        name,
Severity: Major
Found in src/components/VerticalItem/index.js - About 2 hrs to fix

    Function CarouselCard has 74 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const CarouselCard = props => {
        const {
            children,
            id,
            className,
    Severity: Major
    Found in src/components/CarouselCard/index.js - About 2 hrs to fix

      File users.js has 290 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      module.exports = [
          {
              name: 'Leandro Torres',
              company: 'Nexxtway',
              email: 'leandro@gmail.com',
      Severity: Minor
      Found in library/data/users.js - About 2 hrs to fix

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

            it('should expand the node when its button icon is focused, press space and the node was initially expanded', async () => {
                const tree = new PageTree(TREE);
                const node = await tree.getNode([2]);
                await node.clickExpandButton();
                await browser.keys(SPACE_KEY);
        Severity: Major
        Found in integration/specs/Tree/tree-1.spec.js and 3 other locations - About 2 hrs to fix
        integration/specs/Tree/tree-1.spec.js on lines 36..42
        integration/specs/Tree/tree-1.spec.js on lines 43..49
        integration/specs/Tree/tree-1.spec.js on lines 57..63

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

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

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

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

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

        Refactorings

        Further Reading

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

            it('should expand the node when its button icon is focused, press enter and the node was initially expanded', async () => {
                const tree = new PageTree(TREE);
                const node = await tree.getNode([2]);
                await node.clickExpandButton();
                await browser.keys(ENTER_KEY);
        Severity: Major
        Found in integration/specs/Tree/tree-1.spec.js and 3 other locations - About 2 hrs to fix
        integration/specs/Tree/tree-1.spec.js on lines 43..49
        integration/specs/Tree/tree-1.spec.js on lines 50..56
        integration/specs/Tree/tree-1.spec.js on lines 57..63

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

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

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

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

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

        Refactorings

        Further Reading

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

                const component = mount(
                    <Table data={data} keyField="id" showCheckboxColumn showRowNumberColumn>
                        <Column field="name" header="Name" />
                        <Column field="email" header="Email" />
                        <Column field="id" header="User Id" />
        Severity: Major
        Found in src/components/Table/__test__/table.spec.js and 1 other location - About 2 hrs to fix
        src/components/Table/__test__/table.spec.js on lines 1446..1452

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

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

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

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

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

        Refactorings

        Further Reading

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

            it('should collapse the node when its button icon is focused, press enter and the node was initially collapse', async () => {
                const tree = new PageTree(TREE);
                const node = await tree.getNode([3]);
                await node.clickExpandButton();
                await browser.keys(ENTER_KEY);
        Severity: Major
        Found in integration/specs/Tree/tree-1.spec.js and 3 other locations - About 2 hrs to fix
        integration/specs/Tree/tree-1.spec.js on lines 36..42
        integration/specs/Tree/tree-1.spec.js on lines 50..56
        integration/specs/Tree/tree-1.spec.js on lines 57..63

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

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

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

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

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

        Refactorings

        Further Reading

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

            it('should collapse the node when its button icon is focused, press space and the node was initially collapse', async () => {
                const tree = new PageTree(TREE);
                const node = await tree.getNode([3]);
                await node.clickExpandButton();
                await browser.keys(SPACE_KEY);
        Severity: Major
        Found in integration/specs/Tree/tree-1.spec.js and 3 other locations - About 2 hrs to fix
        integration/specs/Tree/tree-1.spec.js on lines 36..42
        integration/specs/Tree/tree-1.spec.js on lines 43..49
        integration/specs/Tree/tree-1.spec.js on lines 50..56

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

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

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

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

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

        Refactorings

        Further Reading

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

                const component = mount(
                    <Table data={data} keyField="id" showCheckboxColumn showRowNumberColumn>
                        <Column field="name" header="Name" />
                        <Column field="email" header="Email" />
                        <Column field="id" header="User Id" />
        Severity: Major
        Found in src/components/Table/__test__/table.spec.js and 1 other location - About 2 hrs to fix
        src/components/Table/__test__/table.spec.js on lines 1301..1307

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

        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

                it('should return 0 when any children in tabset has width', () => {
                    const tabsetChildren = [
                        { name: 'pizza', ref: { offsetWidth: 0 } },
                        { name: 'onion', ref: { offsetWidth: 0 } },
                        { name: 'tomato', ref: { offsetWidth: 0 } },
        Severity: Major
        Found in src/components/Tabset/__test__/utils.spec.js and 1 other location - About 2 hrs to fix
        src/components/Tabset/__test__/utils.spec.js on lines 96..103

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

        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

                it('should return the right total children width in tabset', () => {
                    const tabsetChildren = [
                        { name: 'pizza', ref: { offsetWidth: 1 } },
                        { name: 'onion', ref: { offsetWidth: 2 } },
                        { name: 'tomato', ref: { offsetWidth: 3 } },
        Severity: Major
        Found in src/components/Tabset/__test__/utils.spec.js and 1 other location - About 2 hrs to fix
        src/components/Tabset/__test__/utils.spec.js on lines 84..91

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

        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

        Function WeekDayPicker has 73 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const WeekDayPicker = React.forwardRef((props, ref) => {
            const {
                id,
                name,
                value,
        Severity: Major
        Found in src/components/WeekDayPicker/index.js - About 2 hrs to fix

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

                  expect(component.state().rows).toEqual([
                      {
                          inputType: 'checkbox',
                          isDisabled: false,
                          isSelected: false,
          Severity: Major
          Found in src/components/Table/__test__/table.spec.js and 14 other locations - About 2 hrs to fix
          src/components/Table/__test__/table.spec.js on lines 419..438
          src/components/Table/__test__/table.spec.js on lines 446..465
          src/components/Table/__test__/table.spec.js on lines 508..527
          src/components/Table/__test__/table.spec.js on lines 532..551
          src/components/Table/__test__/table.spec.js on lines 560..579
          src/components/Table/__test__/table.spec.js on lines 584..603
          src/components/Table/__test__/table.spec.js on lines 647..666
          src/components/Table/__test__/table.spec.js on lines 671..690
          src/components/Table/__test__/table.spec.js on lines 705..724
          src/components/Table/__test__/table.spec.js on lines 729..748
          src/components/Table/__test__/table.spec.js on lines 785..804
          src/components/Table/__test__/table.spec.js on lines 843..862
          src/components/Table/__test__/table.spec.js on lines 899..918
          src/components/Table/__test__/table.spec.js on lines 945..964

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 93.

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

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

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

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

          Refactorings

          Further Reading

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

                  expect(component.state().rows).toEqual([
                      {
                          inputType: 'radio',
                          isDisabled: false,
                          isSelected: false,
          Severity: Major
          Found in src/components/Table/__test__/table.spec.js and 14 other locations - About 2 hrs to fix
          src/components/Table/__test__/table.spec.js on lines 386..405
          src/components/Table/__test__/table.spec.js on lines 419..438
          src/components/Table/__test__/table.spec.js on lines 508..527
          src/components/Table/__test__/table.spec.js on lines 532..551
          src/components/Table/__test__/table.spec.js on lines 560..579
          src/components/Table/__test__/table.spec.js on lines 584..603
          src/components/Table/__test__/table.spec.js on lines 647..666
          src/components/Table/__test__/table.spec.js on lines 671..690
          src/components/Table/__test__/table.spec.js on lines 705..724
          src/components/Table/__test__/table.spec.js on lines 729..748
          src/components/Table/__test__/table.spec.js on lines 785..804
          src/components/Table/__test__/table.spec.js on lines 843..862
          src/components/Table/__test__/table.spec.js on lines 899..918
          src/components/Table/__test__/table.spec.js on lines 945..964

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 93.

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

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

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

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

          Refactorings

          Further Reading

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

                  expect(component.state().rows).toEqual([
                      {
                          inputType: 'checkbox',
                          isDisabled: true,
                          isSelected: false,
          Severity: Major
          Found in src/components/Table/__test__/table.spec.js and 14 other locations - About 2 hrs to fix
          src/components/Table/__test__/table.spec.js on lines 386..405
          src/components/Table/__test__/table.spec.js on lines 446..465
          src/components/Table/__test__/table.spec.js on lines 508..527
          src/components/Table/__test__/table.spec.js on lines 532..551
          src/components/Table/__test__/table.spec.js on lines 560..579
          src/components/Table/__test__/table.spec.js on lines 584..603
          src/components/Table/__test__/table.spec.js on lines 647..666
          src/components/Table/__test__/table.spec.js on lines 671..690
          src/components/Table/__test__/table.spec.js on lines 705..724
          src/components/Table/__test__/table.spec.js on lines 729..748
          src/components/Table/__test__/table.spec.js on lines 785..804
          src/components/Table/__test__/table.spec.js on lines 843..862
          src/components/Table/__test__/table.spec.js on lines 899..918
          src/components/Table/__test__/table.spec.js on lines 945..964

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 93.

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

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

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

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

          Refactorings

          Further Reading

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

                  expect(component.state().rows).toEqual([
                      {
                          inputType: 'checkbox',
                          isDisabled: false,
                          isSelected: true,
          Severity: Major
          Found in src/components/Table/__test__/table.spec.js and 14 other locations - About 2 hrs to fix
          src/components/Table/__test__/table.spec.js on lines 386..405
          src/components/Table/__test__/table.spec.js on lines 419..438
          src/components/Table/__test__/table.spec.js on lines 446..465
          src/components/Table/__test__/table.spec.js on lines 508..527
          src/components/Table/__test__/table.spec.js on lines 532..551
          src/components/Table/__test__/table.spec.js on lines 584..603
          src/components/Table/__test__/table.spec.js on lines 647..666
          src/components/Table/__test__/table.spec.js on lines 671..690
          src/components/Table/__test__/table.spec.js on lines 705..724
          src/components/Table/__test__/table.spec.js on lines 729..748
          src/components/Table/__test__/table.spec.js on lines 785..804
          src/components/Table/__test__/table.spec.js on lines 843..862
          src/components/Table/__test__/table.spec.js on lines 899..918
          src/components/Table/__test__/table.spec.js on lines 945..964

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 93.

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

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

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

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

          Refactorings

          Further Reading

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

                  expect(component.state().rows).toEqual([
                      {
                          inputType: 'checkbox',
                          isDisabled: false,
                          isSelected: true,
          Severity: Major
          Found in src/components/Table/__test__/table.spec.js and 14 other locations - About 2 hrs to fix
          src/components/Table/__test__/table.spec.js on lines 386..405
          src/components/Table/__test__/table.spec.js on lines 419..438
          src/components/Table/__test__/table.spec.js on lines 446..465
          src/components/Table/__test__/table.spec.js on lines 508..527
          src/components/Table/__test__/table.spec.js on lines 532..551
          src/components/Table/__test__/table.spec.js on lines 560..579
          src/components/Table/__test__/table.spec.js on lines 647..666
          src/components/Table/__test__/table.spec.js on lines 671..690
          src/components/Table/__test__/table.spec.js on lines 705..724
          src/components/Table/__test__/table.spec.js on lines 729..748
          src/components/Table/__test__/table.spec.js on lines 785..804
          src/components/Table/__test__/table.spec.js on lines 843..862
          src/components/Table/__test__/table.spec.js on lines 899..918
          src/components/Table/__test__/table.spec.js on lines 945..964

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 93.

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

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

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

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

          Refactorings

          Further Reading

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

                  expect(component.state().rows).toEqual([
                      {
                          inputType: 'checkbox',
                          isDisabled: false,
                          isSelected: true,
          Severity: Major
          Found in src/components/Table/__test__/table.spec.js and 14 other locations - About 2 hrs to fix
          src/components/Table/__test__/table.spec.js on lines 386..405
          src/components/Table/__test__/table.spec.js on lines 419..438
          src/components/Table/__test__/table.spec.js on lines 446..465
          src/components/Table/__test__/table.spec.js on lines 508..527
          src/components/Table/__test__/table.spec.js on lines 560..579
          src/components/Table/__test__/table.spec.js on lines 584..603
          src/components/Table/__test__/table.spec.js on lines 647..666
          src/components/Table/__test__/table.spec.js on lines 671..690
          src/components/Table/__test__/table.spec.js on lines 705..724
          src/components/Table/__test__/table.spec.js on lines 729..748
          src/components/Table/__test__/table.spec.js on lines 785..804
          src/components/Table/__test__/table.spec.js on lines 843..862
          src/components/Table/__test__/table.spec.js on lines 899..918
          src/components/Table/__test__/table.spec.js on lines 945..964

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 93.

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

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

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

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

          Refactorings

          Further Reading

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

                  expect(component.state().rows).toEqual([
                      {
                          inputType: 'checkbox',
                          isDisabled: false,
                          isSelected: true,
          Severity: Major
          Found in src/components/Table/__test__/table.spec.js and 14 other locations - About 2 hrs to fix
          src/components/Table/__test__/table.spec.js on lines 386..405
          src/components/Table/__test__/table.spec.js on lines 419..438
          src/components/Table/__test__/table.spec.js on lines 446..465
          src/components/Table/__test__/table.spec.js on lines 508..527
          src/components/Table/__test__/table.spec.js on lines 532..551
          src/components/Table/__test__/table.spec.js on lines 560..579
          src/components/Table/__test__/table.spec.js on lines 584..603
          src/components/Table/__test__/table.spec.js on lines 671..690
          src/components/Table/__test__/table.spec.js on lines 705..724
          src/components/Table/__test__/table.spec.js on lines 729..748
          src/components/Table/__test__/table.spec.js on lines 785..804
          src/components/Table/__test__/table.spec.js on lines 843..862
          src/components/Table/__test__/table.spec.js on lines 899..918
          src/components/Table/__test__/table.spec.js on lines 945..964

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 93.

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

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

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

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

          Refactorings

          Further Reading

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

                  expect(component.state().rows).toEqual([
                      {
                          inputType: 'checkbox',
                          isDisabled: false,
                          isSelected: false,
          Severity: Major
          Found in src/components/Table/__test__/table.spec.js and 14 other locations - About 2 hrs to fix
          src/components/Table/__test__/table.spec.js on lines 386..405
          src/components/Table/__test__/table.spec.js on lines 419..438
          src/components/Table/__test__/table.spec.js on lines 446..465
          src/components/Table/__test__/table.spec.js on lines 508..527
          src/components/Table/__test__/table.spec.js on lines 532..551
          src/components/Table/__test__/table.spec.js on lines 560..579
          src/components/Table/__test__/table.spec.js on lines 584..603
          src/components/Table/__test__/table.spec.js on lines 647..666
          src/components/Table/__test__/table.spec.js on lines 705..724
          src/components/Table/__test__/table.spec.js on lines 729..748
          src/components/Table/__test__/table.spec.js on lines 785..804
          src/components/Table/__test__/table.spec.js on lines 843..862
          src/components/Table/__test__/table.spec.js on lines 899..918
          src/components/Table/__test__/table.spec.js on lines 945..964

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 93.

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

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

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

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

          Refactorings

          Further Reading

          Severity
          Category
          Status
          Source
          Language