glittershark/reactable

View on GitHub
tests/reactable_test.jsx

Summary

Maintainability
F
2 mos
Test Coverage

File reactable_test.jsx has 2261 lines of code (exceeds 250 allowed). Consider refactoring.
Open

var ReactTestUtils = React.addons.TestUtils;
var expect = chai.expect;

var ReactableTestUtils = {
    resetTestEnvironment:  function() {
Severity: Major
Found in tests/reactable_test.jsx - About 6 days to fix

    Function render has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                        render: function() {
                          return (
                            <div>
                              <input type="text" ref="customFilterInput" id="customFilterInput" value={this.state.customFilterText} onChange={this.handleChange}/>
                              <Reactable.Table className="table" id="table"
    Severity: Minor
    Found in tests/reactable_test.jsx - About 1 hr to fix

      Function render has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                          render: function() {
                            return (
                              <div>
                                <input type="text" ref="customFilterInput" id="customFilterInput" value={this.state.customFilterText} onChange={this.handleChange}/>
                                <Reactable.Table className="table" id="table"
      Severity: Minor
      Found in tests/reactable_test.jsx - About 1 hr to fix

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

                describe('yen sort', function(){
                    before(function() {
                        ReactDOM.render(
                            <Reactable.Table className="table" id="table" data={[
                                { Price: '1.25'},
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 2 days to fix
        tests/reactable_test.jsx on lines 1755..1798

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

        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

                describe('currency sort', function(){
                    before(function() {
                        ReactDOM.render(
                            <Reactable.Table className="table" id="table" data={[
                                { Price: '1.25'},
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 2 days to fix
        tests/reactable_test.jsx on lines 1800..1843

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

        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

                                  <Reactable.Table className="table" id="table"
                                      filterable={['State', 'Tag']}
                                      filterPlaceholder="Filter Results"
                                      filterBy={this.state.customFilterText}
                                      columns={['State', 'Description', 'Tag']}>
        Severity: Major
        Found in tests/reactable_test.jsx and 4 other locations - About 2 days to fix
        tests/reactable_test.jsx on lines 2036..2062
        tests/reactable_test.jsx on lines 2266..2302
        tests/reactable_test.jsx on lines 2361..2398
        tests/reactable_test.jsx on lines 2602..2630

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

        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

                            <Reactable.Table className="table" id="table"
                                filterable={[
                                    {
                                        column: 'Tag',
                                        filterFunction: function(contents, filter) {
        Severity: Major
        Found in tests/reactable_test.jsx and 4 other locations - About 2 days to fix
        tests/reactable_test.jsx on lines 2036..2062
        tests/reactable_test.jsx on lines 2119..2146
        tests/reactable_test.jsx on lines 2361..2398
        tests/reactable_test.jsx on lines 2602..2630

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

        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

                        <Reactable.Table className="table" id="table"
                            filterable={['State', 'Tag']}
                            filterPlaceholder="Filter Results"
                            filterBy='xxxxx'
                            noDataText="No matching records found."
        Severity: Major
        Found in tests/reactable_test.jsx and 4 other locations - About 2 days to fix
        tests/reactable_test.jsx on lines 2036..2062
        tests/reactable_test.jsx on lines 2119..2146
        tests/reactable_test.jsx on lines 2266..2302
        tests/reactable_test.jsx on lines 2361..2398

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

        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

                            <Reactable.Table className="table" id="table"
                                filterable={['State', 'Tag']}
                                filterPlaceholder="Filter Results"
                                columns={['State', 'Description', 'Tag']}>
                                <Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 4 other locations - About 2 days to fix
        tests/reactable_test.jsx on lines 2119..2146
        tests/reactable_test.jsx on lines 2266..2302
        tests/reactable_test.jsx on lines 2361..2398
        tests/reactable_test.jsx on lines 2602..2630

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

        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

                                  <Reactable.Table className="table" id="table"
                                      filterable={[
                                          {
                                              column: 'Tag',
                                              filterFunction: function(contents, filter) {
        Severity: Major
        Found in tests/reactable_test.jsx and 4 other locations - About 2 days to fix
        tests/reactable_test.jsx on lines 2036..2062
        tests/reactable_test.jsx on lines 2119..2146
        tests/reactable_test.jsx on lines 2266..2302
        tests/reactable_test.jsx on lines 2602..2630

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

        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

                describe('case insensitive sorting', function(){
                    before(function() {
                        ReactDOM.render(
                            <Reactable.Table className="table" id="table" data={[
                                { 'Name': 'Lee Salminen'},
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 1 day to fix
        tests/reactable_test.jsx on lines 1845..1876

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

        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

                describe('date sort', function(){
                    before(function() {
                        ReactDOM.render(
                            <Reactable.Table className="table" id="table" data={[
                                { 'Date': '1/1/2014 11:00 AM'},
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 1 day to fix
        tests/reactable_test.jsx on lines 1878..1909

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

        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

            describe('handleClick callbacks', function(){
                before(function() {
                    this.clicked = false
        
                    ReactDOM.render(
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 1 day to fix
        tests/reactable_test.jsx on lines 2540..2565

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

        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

            describe('onContextMenu callbacks on <Td> elements', function(){
                before(function() {
                    this.rightClicked = false
        
                    ReactDOM.render(
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 1 day to fix
        tests/reactable_test.jsx on lines 2514..2538

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

        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

                    before(function() {
                        ReactDOM.render(
                            <Reactable.Table className="table" id="table" data={[
                                {'Name': 'Griffin Smith', 'Age': '18'},
                                {'Age': '23', 'Name': 'Lee Salminen'},
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 7 hrs to fix
        tests/reactable_test.jsx on lines 1015..1030

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

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

                    it('renders the HTML in the table cells', function() {
                        var griffins_name = $('span#griffins-name');
                        expect(griffins_name.length).to.equal(1);
                        expect(griffins_name).to.have.text('Griffin Smith');
        
        
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 7 hrs to fix
        tests/reactable_test.jsx on lines 756..768
        tests/reactable_test.jsx on lines 826..838

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

        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

                    before(function() {
                        ReactDOM.render(
                            <Reactable.Table className="table" id="table" data={[
                                {'Name': 'Griffin Smith', 'Age': '18'},
                                {'Age': '23', 'Name': 'Lee Salminen'},
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 7 hrs to fix
        tests/reactable_test.jsx on lines 1078..1093

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

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

                    it('renders the HTML in the table cells', function() {
                        var griffins_name = $('span#griffins-name');
                        expect(griffins_name.length).to.equal(1);
                        expect(griffins_name).to.have.text('Griffin Smith');
        
        
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 7 hrs to fix
        tests/reactable_test.jsx on lines 826..838
        tests/reactable_test.jsx on lines 864..876

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

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

                    it('renders the HTML in the table cells', function() {
                        var griffins_name = $('span#griffins-name');
                        expect(griffins_name.length).to.equal(1);
                        expect(griffins_name).to.have.text('Griffin Smith');
        
        
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 7 hrs to fix
        tests/reactable_test.jsx on lines 756..768
        tests/reactable_test.jsx on lines 864..876

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

        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('filters case insensitive on specified columns', function() {
                          ReactableTestUtils.expectRowText(0, ['New York', 'this is some text', 'new']);
                          ReactableTestUtils.expectRowText(1, ['New Mexico', 'lorem ipsum', 'old']);
                          ReactableTestUtils.expectRowText(2, ['Alaska', 'bacon', 'renewed']);
                          var $builtInFilter = $('#table thead tr.reactable-filterer input.reactable-filter-input');
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 7 hrs to fix
        tests/reactable_test.jsx on lines 2407..2421

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

        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('filters using the custom filter on specified columns', function() {
                          ReactableTestUtils.expectRowText(0, ['Alaska', 'bacon', 'new']);
                          ReactableTestUtils.expectRowText(1, ['New Mexico', 'lorem ipsum', 'old x']);
                          ReactableTestUtils.expectRowText(2, ['Colorado', 'lol', 'renewed x']);
                          var $builtInFilter = $('#table thead tr.reactable-filterer input.reactable-filter-input');
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 7 hrs to fix
        tests/reactable_test.jsx on lines 2155..2169

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

        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

                    context('from the filterer field', function() {
                        it('filters case insensitive on specified columns', function() {
                            var $filter = $('#table thead tr.reactable-filterer input.reactable-filter-input');
        
                            $filter.val('new');
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 6 hrs to fix
        tests/reactable_test.jsx on lines 2309..2325

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

        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

                    context('from the filterer field', function() {
                        it('filters case insensitive on specified columns', function() {
                            var $filter = $('#table thead tr.reactable-filterer input.reactable-filter-input');
        
                            $filter.val('l');
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 6 hrs to fix
        tests/reactable_test.jsx on lines 2069..2085

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

        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

                    it('sorts columns numerically', function(){
                        var sortHeader = $('#table thead tr.reactable-column-header th')[0];
                        ReactTestUtils.Simulate.click(sortHeader);
        
                        ReactableTestUtils.expectRowText(0, ['1.23']);
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 5 hrs to fix
        tests/reactable_test.jsx on lines 1638..1649
        tests/reactable_test.jsx on lines 1741..1752

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

        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

                        it('sorts columns numerically', function(){
                            var sortHeader = $('#table thead tr.reactable-column-header th')[0];
                            ReactTestUtils.Simulate.click(sortHeader);
        
                            ReactableTestUtils.expectRowText(0, ['1.23']);
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 5 hrs to fix
        tests/reactable_test.jsx on lines 1690..1701
        tests/reactable_test.jsx on lines 1741..1752

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

        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

                    it('sorts columns numerically', function(){
                        var sortHeader = $('#table thead tr.reactable-column-header th')[0];
                        ReactTestUtils.Simulate.click(sortHeader);
        
                        ReactableTestUtils.expectRowText(0, ['one point two three']);
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 5 hrs to fix
        tests/reactable_test.jsx on lines 1638..1649
        tests/reactable_test.jsx on lines 1690..1701

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

        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('does not sort on non-enter keydown', function(){
                        var nameHeader = $('#table thead tr.reactable-column-header th')[0];
                        ReactTestUtils.Simulate.keyDown(nameHeader, {keyCode: 10});
        
                        ReactableTestUtils.expectRowText(0, ['Lee Salminen', '23', 'Programmer']);
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 4 hrs to fix
        tests/reactable_test.jsx on lines 1279..1289

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

        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('sorts by last name in ascending order by enter keydown', function(){
                        var nameHeader = $('#table thead tr.reactable-column-header th')[0];
                        ReactTestUtils.Simulate.keyDown(nameHeader, {keyCode: 13});
        
                        ReactableTestUtils.expectRowText(0, ['Lee Salminen', '23', 'Programmer']);
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 4 hrs to fix
        tests/reactable_test.jsx on lines 1291..1301

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

        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

                    it('sorts by the second column in descending order', function(){
                        var nameHeader = $('#table thead tr.reactable-column-header th')[1];
                        ReactTestUtils.Simulate.click(nameHeader);
        
                        ReactableTestUtils.expectRowText(0, ['Ian Zhang', '28', 'Developer']);
        Severity: Major
        Found in tests/reactable_test.jsx and 10 other locations - About 4 hrs to fix
        tests/reactable_test.jsx on lines 1231..1241
        tests/reactable_test.jsx on lines 1243..1253
        tests/reactable_test.jsx on lines 1255..1265
        tests/reactable_test.jsx on lines 1267..1277
        tests/reactable_test.jsx on lines 1324..1334
        tests/reactable_test.jsx on lines 1336..1346
        tests/reactable_test.jsx on lines 1348..1358
        tests/reactable_test.jsx on lines 1373..1383
        tests/reactable_test.jsx on lines 1385..1395
        tests/reactable_test.jsx on lines 1534..1544

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

        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

                    it('sorts by text in ascending order', function(){
                        var positionHeader = $('#table thead tr.reactable-column-header th')[2];
                        ReactTestUtils.Simulate.click(positionHeader);
        
                        ReactableTestUtils.expectRowText(0, ['Ian Zhang', '28', 'Developer']);
        Severity: Major
        Found in tests/reactable_test.jsx and 10 other locations - About 4 hrs to fix
        tests/reactable_test.jsx on lines 1243..1253
        tests/reactable_test.jsx on lines 1255..1265
        tests/reactable_test.jsx on lines 1267..1277
        tests/reactable_test.jsx on lines 1324..1334
        tests/reactable_test.jsx on lines 1336..1346
        tests/reactable_test.jsx on lines 1348..1358
        tests/reactable_test.jsx on lines 1360..1370
        tests/reactable_test.jsx on lines 1373..1383
        tests/reactable_test.jsx on lines 1385..1395
        tests/reactable_test.jsx on lines 1534..1544

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

        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

                    it('sorts by the third column in ascending order', function(){
                        var positionHeader = $('#table thead tr.reactable-column-header th')[2];
                        ReactTestUtils.Simulate.click(positionHeader);
        
                        ReactableTestUtils.expectRowText(0, ['Ian Zhang', '28', 'Developer']);
        Severity: Major
        Found in tests/reactable_test.jsx and 10 other locations - About 4 hrs to fix
        tests/reactable_test.jsx on lines 1231..1241
        tests/reactable_test.jsx on lines 1243..1253
        tests/reactable_test.jsx on lines 1255..1265
        tests/reactable_test.jsx on lines 1267..1277
        tests/reactable_test.jsx on lines 1324..1334
        tests/reactable_test.jsx on lines 1336..1346
        tests/reactable_test.jsx on lines 1348..1358
        tests/reactable_test.jsx on lines 1360..1370
        tests/reactable_test.jsx on lines 1385..1395
        tests/reactable_test.jsx on lines 1534..1544

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

        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

                    it('sorts by the third column in descending order', function(){
                        var positionHeader = $('#table thead tr.reactable-column-header th')[2];
                        ReactTestUtils.Simulate.click(positionHeader);
        
                        ReactableTestUtils.expectRowText(0, ['Lee Salminen', '23', 'Programmer']);
        Severity: Major
        Found in tests/reactable_test.jsx and 10 other locations - About 4 hrs to fix
        tests/reactable_test.jsx on lines 1231..1241
        tests/reactable_test.jsx on lines 1243..1253
        tests/reactable_test.jsx on lines 1255..1265
        tests/reactable_test.jsx on lines 1267..1277
        tests/reactable_test.jsx on lines 1324..1334
        tests/reactable_test.jsx on lines 1336..1346
        tests/reactable_test.jsx on lines 1348..1358
        tests/reactable_test.jsx on lines 1360..1370
        tests/reactable_test.jsx on lines 1373..1383
        tests/reactable_test.jsx on lines 1534..1544

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

        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

                    it('sorts by text in descending order', function(){
                        var positionHeader = $('#table thead tr.reactable-column-header th')[2];
                        ReactTestUtils.Simulate.click(positionHeader);
        
                        ReactableTestUtils.expectRowText(0, ['Lee Salminen', '23', 'Programmer']);
        Severity: Major
        Found in tests/reactable_test.jsx and 10 other locations - About 4 hrs to fix
        tests/reactable_test.jsx on lines 1231..1241
        tests/reactable_test.jsx on lines 1255..1265
        tests/reactable_test.jsx on lines 1267..1277
        tests/reactable_test.jsx on lines 1324..1334
        tests/reactable_test.jsx on lines 1336..1346
        tests/reactable_test.jsx on lines 1348..1358
        tests/reactable_test.jsx on lines 1360..1370
        tests/reactable_test.jsx on lines 1373..1383
        tests/reactable_test.jsx on lines 1385..1395
        tests/reactable_test.jsx on lines 1534..1544

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

        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

                    it('sorts by the age column in ascending order', function(){
                        var positionHeader = $('#table thead tr.reactable-column-header th')[1];
                        ReactTestUtils.Simulate.click(positionHeader);
        
                        ReactableTestUtils.expectRowText(0, ['Griffin Smith', '18', 'Engineer']);
        Severity: Major
        Found in tests/reactable_test.jsx and 10 other locations - About 4 hrs to fix
        tests/reactable_test.jsx on lines 1231..1241
        tests/reactable_test.jsx on lines 1243..1253
        tests/reactable_test.jsx on lines 1255..1265
        tests/reactable_test.jsx on lines 1267..1277
        tests/reactable_test.jsx on lines 1324..1334
        tests/reactable_test.jsx on lines 1336..1346
        tests/reactable_test.jsx on lines 1348..1358
        tests/reactable_test.jsx on lines 1360..1370
        tests/reactable_test.jsx on lines 1373..1383
        tests/reactable_test.jsx on lines 1385..1395

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

        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

                    it('sorts by the first column in descending order', function(){
                        var nameHeader = $('#table thead tr.reactable-column-header th')[0];
                        ReactTestUtils.Simulate.click(nameHeader);
        
                        ReactableTestUtils.expectRowText(0, ['Lee Salminen', '23', 'Programmer']);
        Severity: Major
        Found in tests/reactable_test.jsx and 10 other locations - About 4 hrs to fix
        tests/reactable_test.jsx on lines 1231..1241
        tests/reactable_test.jsx on lines 1243..1253
        tests/reactable_test.jsx on lines 1255..1265
        tests/reactable_test.jsx on lines 1267..1277
        tests/reactable_test.jsx on lines 1324..1334
        tests/reactable_test.jsx on lines 1348..1358
        tests/reactable_test.jsx on lines 1360..1370
        tests/reactable_test.jsx on lines 1373..1383
        tests/reactable_test.jsx on lines 1385..1395
        tests/reactable_test.jsx on lines 1534..1544

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

        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

                    it('sorts by the first column in ascending order', function(){
                        var nameHeader = $('#table thead tr.reactable-column-header th')[0];
                        ReactTestUtils.Simulate.click(nameHeader);
        
                        ReactableTestUtils.expectRowText(0, ['Griffin Smith', '18', 'Engineer']);
        Severity: Major
        Found in tests/reactable_test.jsx and 10 other locations - About 4 hrs to fix
        tests/reactable_test.jsx on lines 1231..1241
        tests/reactable_test.jsx on lines 1243..1253
        tests/reactable_test.jsx on lines 1255..1265
        tests/reactable_test.jsx on lines 1267..1277
        tests/reactable_test.jsx on lines 1336..1346
        tests/reactable_test.jsx on lines 1348..1358
        tests/reactable_test.jsx on lines 1360..1370
        tests/reactable_test.jsx on lines 1373..1383
        tests/reactable_test.jsx on lines 1385..1395
        tests/reactable_test.jsx on lines 1534..1544

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

        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

                    it('sorts by the second column in ascending order', function(){
                        var nameHeader = $('#table thead tr.reactable-column-header th')[1];
                        ReactTestUtils.Simulate.click(nameHeader);
        
                        ReactableTestUtils.expectRowText(0, ['Griffin Smith', '18', 'Engineer']);
        Severity: Major
        Found in tests/reactable_test.jsx and 10 other locations - About 4 hrs to fix
        tests/reactable_test.jsx on lines 1231..1241
        tests/reactable_test.jsx on lines 1243..1253
        tests/reactable_test.jsx on lines 1255..1265
        tests/reactable_test.jsx on lines 1267..1277
        tests/reactable_test.jsx on lines 1324..1334
        tests/reactable_test.jsx on lines 1336..1346
        tests/reactable_test.jsx on lines 1360..1370
        tests/reactable_test.jsx on lines 1373..1383
        tests/reactable_test.jsx on lines 1385..1395
        tests/reactable_test.jsx on lines 1534..1544

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

        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

                    it('sorts by last name in ascending order', function(){
                        var nameHeader = $('#table thead tr.reactable-column-header th')[0];
                        ReactTestUtils.Simulate.click(nameHeader);
        
                        ReactableTestUtils.expectRowText(0, ['Lee Salminen', '23', 'Programmer']);
        Severity: Major
        Found in tests/reactable_test.jsx and 10 other locations - About 4 hrs to fix
        tests/reactable_test.jsx on lines 1231..1241
        tests/reactable_test.jsx on lines 1243..1253
        tests/reactable_test.jsx on lines 1267..1277
        tests/reactable_test.jsx on lines 1324..1334
        tests/reactable_test.jsx on lines 1336..1346
        tests/reactable_test.jsx on lines 1348..1358
        tests/reactable_test.jsx on lines 1360..1370
        tests/reactable_test.jsx on lines 1373..1383
        tests/reactable_test.jsx on lines 1385..1395
        tests/reactable_test.jsx on lines 1534..1544

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

        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

                    it('sorts by last name in descending order', function(){
                        var nameHeader = $('#table thead tr.reactable-column-header th')[0];
                        ReactTestUtils.Simulate.click(nameHeader);
        
                        ReactableTestUtils.expectRowText(0, ['Ian Zhang', '28', 'Developer']);
        Severity: Major
        Found in tests/reactable_test.jsx and 10 other locations - About 4 hrs to fix
        tests/reactable_test.jsx on lines 1231..1241
        tests/reactable_test.jsx on lines 1243..1253
        tests/reactable_test.jsx on lines 1255..1265
        tests/reactable_test.jsx on lines 1324..1334
        tests/reactable_test.jsx on lines 1336..1346
        tests/reactable_test.jsx on lines 1348..1358
        tests/reactable_test.jsx on lines 1360..1370
        tests/reactable_test.jsx on lines 1373..1383
        tests/reactable_test.jsx on lines 1385..1395
        tests/reactable_test.jsx on lines 1534..1544

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

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

                                <Reactable.Tr>
                                    <Reactable.Td column="Name"><b>Lee Salminen</b></Reactable.Td>
                                    <Reactable.Td column="Age"><em>23</em></Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 6 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 243..246
        tests/reactable_test.jsx on lines 247..250
        tests/reactable_test.jsx on lines 251..254
        tests/reactable_test.jsx on lines 300..303
        tests/reactable_test.jsx on lines 341..344
        tests/reactable_test.jsx on lines 346..349

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

                                <Reactable.Tr>
                                    <Reactable.Td column="Position"><b>Developer</b></Reactable.Td>
                                    <Reactable.Td column="Age"><em>28</em></Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 6 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 243..246
        tests/reactable_test.jsx on lines 247..250
        tests/reactable_test.jsx on lines 251..254
        tests/reactable_test.jsx on lines 296..299
        tests/reactable_test.jsx on lines 341..344
        tests/reactable_test.jsx on lines 346..349

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

                                <Reactable.Tr>
                                    <Reactable.Td column="Name"><b>Griffin Smith</b></Reactable.Td>
                                    <Reactable.Td column="Age"><em>18</em></Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 6 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 243..246
        tests/reactable_test.jsx on lines 247..250
        tests/reactable_test.jsx on lines 251..254
        tests/reactable_test.jsx on lines 296..299
        tests/reactable_test.jsx on lines 300..303
        tests/reactable_test.jsx on lines 346..349

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

                                <Reactable.Tr>
                                    <Reactable.Td column="Position"><b>Developer</b></Reactable.Td>
                                    <Reactable.Td column="Age"><em>28</em></Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 6 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 243..246
        tests/reactable_test.jsx on lines 247..250
        tests/reactable_test.jsx on lines 296..299
        tests/reactable_test.jsx on lines 300..303
        tests/reactable_test.jsx on lines 341..344
        tests/reactable_test.jsx on lines 346..349

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

                                <Reactable.Tr>
                                    <Reactable.Td column="Name"><b>Lee Salminen</b></Reactable.Td>
                                    <Reactable.Td column="Age"><em>23</em></Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 6 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 243..246
        tests/reactable_test.jsx on lines 251..254
        tests/reactable_test.jsx on lines 296..299
        tests/reactable_test.jsx on lines 300..303
        tests/reactable_test.jsx on lines 341..344
        tests/reactable_test.jsx on lines 346..349

        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('renders the column headers in the second table', function() {
                    var headers = [];
                    this.testNode2.find('thead th').each(function() {
                        headers.push($(this).text());
                    });
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 2 hrs to fix
        tests/reactable_test.jsx on lines 2495..2502

        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('renders the column headers in the first table', function() {
                    var headers = [];
                    this.testNode1.find('thead th').each(function() {
                        headers.push($(this).text());
                    });
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 2 hrs to fix
        tests/reactable_test.jsx on lines 2504..2511

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

                                <Reactable.Tr>
                                    <Reactable.Td column="Name"><b>Griffin Smith</b></Reactable.Td>
                                    <Reactable.Td column="Age"><em>18</em></Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 6 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 247..250
        tests/reactable_test.jsx on lines 251..254
        tests/reactable_test.jsx on lines 296..299
        tests/reactable_test.jsx on lines 300..303
        tests/reactable_test.jsx on lines 341..344
        tests/reactable_test.jsx on lines 346..349

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

                                <Reactable.Tr>
                                    <Reactable.Td column="Position"><b>Developer</b></Reactable.Td>
                                    <Reactable.Td column="Age"><em>28</em></Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 6 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 243..246
        tests/reactable_test.jsx on lines 247..250
        tests/reactable_test.jsx on lines 251..254
        tests/reactable_test.jsx on lines 296..299
        tests/reactable_test.jsx on lines 300..303
        tests/reactable_test.jsx on lines 341..344

        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('still allows sorting', function() {
                        var nameHeader = $('#table thead tr.reactable-column-header th')[0];
                        ReactTestUtils.Simulate.click(nameHeader);
        
                        ReactableTestUtils.expectRowText(0, ['28', 'Developer', '']);
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 2 hrs to fix
        tests/reactable_test.jsx on lines 1601..1608

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 91.

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

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

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

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

        Refactorings

        Further Reading

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

                    it('leaves columns unsorted', function(){
                        var nameHeader = $('#table thead tr.reactable-column-header th')[0];
                        ReactTestUtils.Simulate.click(nameHeader);
        
                        ReactableTestUtils.expectRowText(0, ['Lee Salminen', '23', 'Programmer']);
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 2 hrs to fix
        tests/reactable_test.jsx on lines 770..777

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 91.

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

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

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

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

        Refactorings

        Further Reading

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

                it('renders the column headers in the table', function() {
                    var headers = [];
                    $('thead th').each(function() {
                        headers.push($(this).text());
                    });
        Severity: Major
        Found in tests/reactable_test.jsx and 8 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 119..126
        tests/reactable_test.jsx on lines 216..223
        tests/reactable_test.jsx on lines 266..273
        tests/reactable_test.jsx on lines 315..322
        tests/reactable_test.jsx on lines 361..368
        tests/reactable_test.jsx on lines 483..490
        tests/reactable_test.jsx on lines 798..809
        tests/reactable_test.jsx on lines 2444..2451

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 86.

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

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

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

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

        Refactorings

        Further Reading

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

                it('renders the column headers in the table', function() {
                    var headers = [];
                    $('thead th').each(function() {
                        headers.push($(this).text());
                    });
        Severity: Major
        Found in tests/reactable_test.jsx and 8 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 75..82
        tests/reactable_test.jsx on lines 216..223
        tests/reactable_test.jsx on lines 266..273
        tests/reactable_test.jsx on lines 315..322
        tests/reactable_test.jsx on lines 361..368
        tests/reactable_test.jsx on lines 483..490
        tests/reactable_test.jsx on lines 798..809
        tests/reactable_test.jsx on lines 2444..2451

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 86.

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

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

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

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

        Refactorings

        Further Reading

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

                it('renders the column headers in the table', function() {
                    var headers = [];
                    $('thead th').each(function() {
                        headers.push($(this).text());
                    });
        Severity: Major
        Found in tests/reactable_test.jsx and 8 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 75..82
        tests/reactable_test.jsx on lines 119..126
        tests/reactable_test.jsx on lines 216..223
        tests/reactable_test.jsx on lines 266..273
        tests/reactable_test.jsx on lines 315..322
        tests/reactable_test.jsx on lines 361..368
        tests/reactable_test.jsx on lines 483..490
        tests/reactable_test.jsx on lines 798..809

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 86.

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

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

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

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

        Refactorings

        Further Reading

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

                    it('renders the column headers in the table', function() {
                        var headers = [];
                        $('thead th').each(function() {
                            headers.push($(this).text());
                        });
        Severity: Major
        Found in tests/reactable_test.jsx and 8 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 75..82
        tests/reactable_test.jsx on lines 119..126
        tests/reactable_test.jsx on lines 216..223
        tests/reactable_test.jsx on lines 266..273
        tests/reactable_test.jsx on lines 315..322
        tests/reactable_test.jsx on lines 483..490
        tests/reactable_test.jsx on lines 798..809
        tests/reactable_test.jsx on lines 2444..2451

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 86.

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

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

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

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

        Refactorings

        Further Reading

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

                    it('renders the column headers in the table', function() {
                        var headers = [];
                        $('thead th').each(function() {
                            headers.push($(this).text());
                        });
        Severity: Major
        Found in tests/reactable_test.jsx and 8 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 75..82
        tests/reactable_test.jsx on lines 119..126
        tests/reactable_test.jsx on lines 216..223
        tests/reactable_test.jsx on lines 266..273
        tests/reactable_test.jsx on lines 361..368
        tests/reactable_test.jsx on lines 483..490
        tests/reactable_test.jsx on lines 798..809
        tests/reactable_test.jsx on lines 2444..2451

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 86.

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

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

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

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

        Refactorings

        Further Reading

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

                    it('renders the column headers in the table', function() {
                        var headers = [];
                        $('thead th').each(function() {
                            headers.push($(this).text());
                        });
        Severity: Major
        Found in tests/reactable_test.jsx and 8 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 75..82
        tests/reactable_test.jsx on lines 119..126
        tests/reactable_test.jsx on lines 216..223
        tests/reactable_test.jsx on lines 266..273
        tests/reactable_test.jsx on lines 315..322
        tests/reactable_test.jsx on lines 361..368
        tests/reactable_test.jsx on lines 798..809
        tests/reactable_test.jsx on lines 2444..2451

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 86.

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

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

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

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

        Refactorings

        Further Reading

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

                    it('adds class name for each column base on its key', function() {
                        var columns = $('tr.reactable-column-header th');
                        expect($(columns[0])).to.have.class('reactable-th-name');
                        expect($(columns[1])).to.have.class('reactable-th-age');
                    });
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 585..589
        tests/reactable_test.jsx on lines 614..618

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 86.

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

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

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

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

        Refactorings

        Further Reading

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

                    it('adds class name for each column base on its label', function() {
                        var columns = $('tr.reactable-column-header th');
                        expect($(columns[0])).to.have.class('reactable-th-name');
                        expect($(columns[1])).to.have.class('reactable-th-age');
                    });
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 614..618
        tests/reactable_test.jsx on lines 620..624

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 86.

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

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

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

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

        Refactorings

        Further Reading

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

                    it('renders the column headers in the table', function() {
                        var headers = [];
                        $('thead th').each(function() {
                            headers.push($(this).text());
                        });
        Severity: Major
        Found in tests/reactable_test.jsx and 8 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 75..82
        tests/reactable_test.jsx on lines 119..126
        tests/reactable_test.jsx on lines 216..223
        tests/reactable_test.jsx on lines 315..322
        tests/reactable_test.jsx on lines 361..368
        tests/reactable_test.jsx on lines 483..490
        tests/reactable_test.jsx on lines 798..809
        tests/reactable_test.jsx on lines 2444..2451

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 86.

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

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

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

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

        Refactorings

        Further Reading

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

                    it('allows changing the labels of the columns', function() {
                        var columns = $('tr.reactable-column-header th');
                        expect($(columns[0])).to.have.text('Name');
                        expect($(columns[1])).to.have.text('Age');
                    });
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 585..589
        tests/reactable_test.jsx on lines 620..624

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 86.

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

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

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

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

        Refactorings

        Further Reading

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

                        it('renders the column headers in the table', function() {
                            var headers = [];
                            $('thead th').each(function() {
                                headers.push($(this).text());
                            });
        Severity: Major
        Found in tests/reactable_test.jsx and 8 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 75..82
        tests/reactable_test.jsx on lines 119..126
        tests/reactable_test.jsx on lines 266..273
        tests/reactable_test.jsx on lines 315..322
        tests/reactable_test.jsx on lines 361..368
        tests/reactable_test.jsx on lines 483..490
        tests/reactable_test.jsx on lines 798..809
        tests/reactable_test.jsx on lines 2444..2451

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 86.

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

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

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

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

        Refactorings

        Further Reading

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

                    it('renders the HTML in the column headers', function() {
                        var headers = [];
                        $('thead th').each(function() {
                            headers.push($(this).html());
                        });
        Severity: Major
        Found in tests/reactable_test.jsx and 8 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 75..82
        tests/reactable_test.jsx on lines 119..126
        tests/reactable_test.jsx on lines 216..223
        tests/reactable_test.jsx on lines 266..273
        tests/reactable_test.jsx on lines 315..322
        tests/reactable_test.jsx on lines 361..368
        tests/reactable_test.jsx on lines 483..490
        tests/reactable_test.jsx on lines 2444..2451

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 86.

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

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

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

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

        Refactorings

        Further Reading

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

                                      filterable={[
                                          {
                                              column: 'Tag',
                                              filterFunction: function(contents, filter) {
                                                  // return true if tag contains 'x' and the filter
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 2 hrs to fix
        tests/reactable_test.jsx on lines 2267..2279

        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

                                filterable={[
                                    {
                                        column: 'Tag',
                                        filterFunction: function(contents, filter) {
                                            // return true if tag contains 'x' and the filter
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 2 hrs to fix
        tests/reactable_test.jsx on lines 2362..2374

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

                                <Reactable.Tr>
                                    <Reactable.Td column="Name" data={data[0].name}/>
                                    <Reactable.Td column="Age" data={data[0].age}/>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 1998..2001
        tests/reactable_test.jsx on lines 2002..2005

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

        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

                    ReactDOM.render(
                        <Reactable.Table className="table" id="table1" data={[
                            { Name: 'Griffin Smith', Age: '18'},
                            { Age: '23', Name: 'Lee Salminen'},
                            { Age: '28', Position: 'Developer'}
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 2 hrs to fix
        tests/reactable_test.jsx on lines 2481..2488

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column="Name" data={data[2].name}/>
                                    <Reactable.Td column="Age" data={data[2].age}/>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 1994..1997
        tests/reactable_test.jsx on lines 1998..2001

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column="Name" data={data[1].name}/>
                                    <Reactable.Td column="Age" data={data[1].age}/>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 1994..1997
        tests/reactable_test.jsx on lines 2002..2005

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

        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

                    ReactDOM.render(
                        <Reactable.Table className="table" id="table2" data={[
                            { Moniker: 'Griffin Smith', Elderliness: '18'},
                            { Elderliness: '23', Moniker: 'Lee Salminen'},
                            { Elderliness: '28', Title: 'Developer'}
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 2 hrs to fix
        tests/reactable_test.jsx on lines 2472..2479

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

        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

                            <Reactable.Table id="table" data={[
                            { Name: Reactable.unsafe('<span id="griffins-name">Griffin Smith</span>'), Age: '18'},
                            { Age: '28', Position: Reactable.unsafe('<span id="who-knows-job">Developer</span>')},
                            { Age: '23', Name: Reactable.unsafe('<span id="lees-name">Lee Salminen</span>')},
                        ]}>
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 2 hrs to fix
        tests/reactable_test.jsx on lines 667..677

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column="Position">{Reactable.unsafe('<span id="who-knows-job">Developer</span>')}</Reactable.Td>
                                    <Reactable.Td column="Age">28</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 845..848
        tests/reactable_test.jsx on lines 849..852

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column="Name">{Reactable.unsafe('<span id="griffins-name">Griffin Smith</span>')}</Reactable.Td>
                                    <Reactable.Td column="Age">18</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 849..852
        tests/reactable_test.jsx on lines 853..856

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column="Name">{Reactable.unsafe('<span id="lees-name">Lee Salminen</span>')}</Reactable.Td>
                                    <Reactable.Td column="Age">23</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 845..848
        tests/reactable_test.jsx on lines 853..856

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

        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

                            <Reactable.Table id="table" data={[
                            { Name: Reactable.unsafe('<span id="griffins-name">Griffin Smith</span>'), Age: '18'},
                            { Age: '28', Position: Reactable.unsafe('<span id="who-knows-job">Developer</span>')},
                            { Age: '23', Name: Reactable.unsafe('<span id="lees-name">Lee Salminen</span>')},
                        ]}>
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 2 hrs to fix
        tests/reactable_test.jsx on lines 632..642

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

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

                            sortable={[
                                {
                                    column: 'Name',
                                    sortFunction: function(a, b){
                                        // Sort by last name
        Severity: Major
        Found in tests/reactable_test.jsx and 3 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 1194..1207
        tests/reactable_test.jsx on lines 1414..1427
        tests/reactable_test.jsx on lines 1506..1519

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

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

                            sortable={[
                                {
                                    column: 'Name',
                                    sortFunction: function(a, b){
                                        // Sort by last name
        Severity: Major
        Found in tests/reactable_test.jsx and 3 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 1414..1427
        tests/reactable_test.jsx on lines 1506..1519
        tests/reactable_test.jsx on lines 1555..1568

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

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

                            sortable={[
                                {
                                    column: 'Name',
                                    sortFunction: function(a, b){
                                        // Sort by last name
        Severity: Major
        Found in tests/reactable_test.jsx and 3 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 1194..1207
        tests/reactable_test.jsx on lines 1506..1519
        tests/reactable_test.jsx on lines 1555..1568

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

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

                            sortable={[
                                {
                                    column: 'Name',
                                    sortFunction: function(a, b){
                                        // Sort by last name
        Severity: Major
        Found in tests/reactable_test.jsx and 3 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 1194..1207
        tests/reactable_test.jsx on lines 1414..1427
        tests/reactable_test.jsx on lines 1555..1568

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

        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

                            <Reactable.Table className="table" id="table" data={[
                                {'Rank': <span className="3">Third</span>},
                                {'Rank': <span className="1">First</span>},
                                {'Rank': <span className="2">Second</span>},
                            ]}
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 2 hrs to fix
        tests/reactable_test.jsx on lines 1952..1956

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

        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

                            <Reactable.Table className="table" id="table" data={[
                                {'Rank': <span className="3">Third</span>},
                                {'Rank': <span className="1">First</span>},
                                {'Rank': <span className="2">Second</span>},
                                ]}
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 2 hrs to fix
        tests/reactable_test.jsx on lines 1914..1918

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column="Name" className="name-2">Lee Salminen</Reactable.Td>
                                    <Reactable.Td column="Age">23</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 509..512
        tests/reactable_test.jsx on lines 517..520

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column="Name" className="name-1">Griffin Smith</Reactable.Td>
                                    <Reactable.Td column="Age">18</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 513..516
        tests/reactable_test.jsx on lines 517..520

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column="Position" className="position">Developer</Reactable.Td>
                                    <Reactable.Td column="Age">28</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 2 hrs to fix
        tests/reactable_test.jsx on lines 509..512
        tests/reactable_test.jsx on lines 513..516

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

        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('shows previous button', function(){
                            var previousButton = $('#table tbody.reactable-pagination a.reactable-previous-page');
                            expect(previousButton.length).to.equal(1);
                            expect(previousButton[0].text).to.equal('<<');
                        });
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 1 hr to fix
        tests/reactable_test.jsx on lines 969..973

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

        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('shows next button', function(){
                        var nextButton = $('#table tbody.reactable-pagination a.reactable-next-page');
                        expect(nextButton.length).to.equal(1);
                        expect(nextButton[0].text).to.equal('>>');
                    });
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 1 hr to fix
        tests/reactable_test.jsx on lines 1006..1010

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

        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

                                    <Reactable.Tr>
                                        <Reactable.Td column="Name">Lee Salminen</Reactable.Td>
                                        <Reactable.Td column="Age">23</Reactable.Td>
                                    </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 193..196
        tests/reactable_test.jsx on lines 201..204

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 72.

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

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

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

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

        Refactorings

        Further Reading

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

                                    <Reactable.Tr>
                                        <Reactable.Td column="Position">Developer</Reactable.Td>
                                        <Reactable.Td column="Age">28</Reactable.Td>
                                    </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 193..196
        tests/reactable_test.jsx on lines 197..200

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 72.

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

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

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

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

        Refactorings

        Further Reading

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

                                    <Reactable.Tr>
                                        <Reactable.Td column="Name">Griffin Smith</Reactable.Td>
                                        <Reactable.Td column="Age">18</Reactable.Td>
                                    </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 197..200
        tests/reactable_test.jsx on lines 201..204

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 72.

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

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

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

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

        Refactorings

        Further Reading

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

                        it('puts an active class on the new active page', function() {
                            var activePage = $('#table tbody.reactable-pagination a.reactable-page-button.reactable-current-page');
                            expect(activePage.length).to.equal(1);
                            expect(activePage).to.have.text('2');
                        });
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 1 hr to fix
        tests/reactable_test.jsx on lines 958..962

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

        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('specifies a class on the currently active page', function() {
                        var activePage = $('#table tbody.reactable-pagination a.reactable-page-button.reactable-current-page');
                        expect(activePage.length).to.equal(1);
                        expect(activePage).to.have.text('1');
                    });
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 1 hr to fix
        tests/reactable_test.jsx on lines 989..993

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

        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

                        it('applies the filtering', function() {
                            ReactableTestUtils.expectRowText(0, ['New Mexico', 'lorem ipsum', 'old x']);
                            ReactableTestUtils.expectRowText(1, ['Colorado', 'lol', 'renewed x']);
                            ReactableTestUtils.expectRowText(2, ['Alaska', 'bacon', 'new']);
                        });
        Severity: Major
        Found in tests/reactable_test.jsx and 5 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 422..426
        tests/reactable_test.jsx on lines 1214..1218
        tests/reactable_test.jsx on lines 1435..1439
        tests/reactable_test.jsx on lines 1528..1532
        tests/reactable_test.jsx on lines 1576..1580

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

                it('renders the regular data rows', function() {
                    ReactableTestUtils.expectRowText(0, ['Griffin Smith', '18', '']);
                    ReactableTestUtils.expectRowText(1, ['Lee Salminen', '23', '']);
                    ReactableTestUtils.expectRowText(2, ['', '28', 'Developer']);
                });
        Severity: Major
        Found in tests/reactable_test.jsx and 5 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 1214..1218
        tests/reactable_test.jsx on lines 1435..1439
        tests/reactable_test.jsx on lines 1528..1532
        tests/reactable_test.jsx on lines 1576..1580
        tests/reactable_test.jsx on lines 2332..2336

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

                    it('renders all rows sorted by default column age descending', function(){
                        ReactableTestUtils.expectRowText(0, ['Ian Zhang', '28', 'Developer']);
                        ReactableTestUtils.expectRowText(1, ['Lee Salminen', '23', 'Programmer']);
                        ReactableTestUtils.expectRowText(2, ['Griffin Smith', '18', 'Engineer']);
                    });
        Severity: Major
        Found in tests/reactable_test.jsx and 5 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 422..426
        tests/reactable_test.jsx on lines 1214..1218
        tests/reactable_test.jsx on lines 1528..1532
        tests/reactable_test.jsx on lines 1576..1580
        tests/reactable_test.jsx on lines 2332..2336

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

                    it('renders all rows sorted by default column age ascending', function(){
                        ReactableTestUtils.expectRowText(0, ['Griffin Smith', '18', 'Engineer']);
                        ReactableTestUtils.expectRowText(1, ['Lee Salminen', '23', 'Programmer']);
                        ReactableTestUtils.expectRowText(2, ['Ian Zhang', '28', 'Developer']);
                    });
        Severity: Major
        Found in tests/reactable_test.jsx and 5 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 422..426
        tests/reactable_test.jsx on lines 1214..1218
        tests/reactable_test.jsx on lines 1435..1439
        tests/reactable_test.jsx on lines 1528..1532
        tests/reactable_test.jsx on lines 2332..2336

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

                    it('renders all rows sorted by default column age descending', function(){
                        ReactableTestUtils.expectRowText(0, ['Ian Zhang', '28', 'Developer']);
                        ReactableTestUtils.expectRowText(1, ['Lee Salminen', '23', 'Programmer']);
                        ReactableTestUtils.expectRowText(2, ['Griffin Smith', '18', 'Engineer']);
                    });
        Severity: Major
        Found in tests/reactable_test.jsx and 5 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 422..426
        tests/reactable_test.jsx on lines 1214..1218
        tests/reactable_test.jsx on lines 1435..1439
        tests/reactable_test.jsx on lines 1576..1580
        tests/reactable_test.jsx on lines 2332..2336

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

                    it('renders all rows with no sort', function(){
                        ReactableTestUtils.expectRowText(0, ['Lee Salminen', '23', 'Programmer']);
                        ReactableTestUtils.expectRowText(1, ['Griffin Smith', '18', 'Engineer']);
                        ReactableTestUtils.expectRowText(2, ['Ian Zhang', '28', 'Developer']);
                    });
        Severity: Major
        Found in tests/reactable_test.jsx and 5 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 422..426
        tests/reactable_test.jsx on lines 1435..1439
        tests/reactable_test.jsx on lines 1528..1532
        tests/reactable_test.jsx on lines 1576..1580
        tests/reactable_test.jsx on lines 2332..2336

        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

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

                            <Reactable.Table className="table" id="table" data={[
                                { Name: 'Lee Salminen', Age: '23', Position: 'Programmer'},
                                { Name: 'Griffin Smith', Age: '18', Position: 'Engineer'},
                                { Name: 'Ian Zhang', Age: '28', Position: 'Developer'}
                            ]}
        Severity: Major
        Found in tests/reactable_test.jsx and 5 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 1309..1313
        tests/reactable_test.jsx on lines 1409..1413
        tests/reactable_test.jsx on lines 1501..1505
        tests/reactable_test.jsx on lines 1550..1554
        tests/reactable_test.jsx on lines 1586..1590

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

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

                            <Reactable.Table className="table" id="table" data={[
                                { Name: 'Lee Salminen', Age: '23', Position: 'Programmer'},
                                { Name: 'Griffin Smith', Age: '18', Position: 'Engineer'},
                                { Name: 'Ian Zhang', Age: '28', Position: 'Developer'}
                            ]}
        Severity: Major
        Found in tests/reactable_test.jsx and 5 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 1189..1193
        tests/reactable_test.jsx on lines 1309..1313
        tests/reactable_test.jsx on lines 1409..1413
        tests/reactable_test.jsx on lines 1501..1505
        tests/reactable_test.jsx on lines 1550..1554

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

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

                            <Reactable.Table className="table" id="table" data={[
                                { Name: 'Lee Salminen', Age: '23', Position: 'Programmer'},
                                { Name: 'Griffin Smith', Age: '18', Position: 'Engineer'},
                                { Name: 'Ian Zhang', Age: '28', Position: 'Developer'}
                            ]}
        Severity: Major
        Found in tests/reactable_test.jsx and 5 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 1189..1193
        tests/reactable_test.jsx on lines 1309..1313
        tests/reactable_test.jsx on lines 1409..1413
        tests/reactable_test.jsx on lines 1550..1554
        tests/reactable_test.jsx on lines 1586..1590

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

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

                            <Reactable.Table className="table" id="table" data={[
                                { Name: 'Lee Salminen', Age: '23', Position: 'Programmer'},
                                { Name: 'Griffin Smith', Age: '18', Position: 'Engineer'},
                                { Name: 'Ian Zhang', Age: '28', Position: 'Developer'}
                            ]}
        Severity: Major
        Found in tests/reactable_test.jsx and 5 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 1189..1193
        tests/reactable_test.jsx on lines 1309..1313
        tests/reactable_test.jsx on lines 1409..1413
        tests/reactable_test.jsx on lines 1501..1505
        tests/reactable_test.jsx on lines 1586..1590

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

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

                            <Reactable.Table className="table" id="table" data={[
                                { Name: 'Lee Salminen', Age: '23', Position: 'Programmer'},
                                { Name: 'Griffin Smith', Age: '18', Position: 'Engineer'},
                                { Name: 'Ian Zhang', Age: '28', Position: 'Developer'}
                            ]}
        Severity: Major
        Found in tests/reactable_test.jsx and 5 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 1189..1193
        tests/reactable_test.jsx on lines 1309..1313
        tests/reactable_test.jsx on lines 1501..1505
        tests/reactable_test.jsx on lines 1550..1554
        tests/reactable_test.jsx on lines 1586..1590

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

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

                                <Reactable.Table className="table" id="table" data={[
                                    { Name: 'Lee Salminen', Age: '23', Position: 'Programmer'},
                                    { Name: 'Griffin Smith', Age: '18', Position: 'Engineer'},
                                    { Name: 'Ian Zhang', Age: '28', Position: 'Developer'}
                                ]}
        Severity: Major
        Found in tests/reactable_test.jsx and 5 other locations - About 1 hr to fix
        tests/reactable_test.jsx on lines 1189..1193
        tests/reactable_test.jsx on lines 1409..1413
        tests/reactable_test.jsx on lines 1501..1505
        tests/reactable_test.jsx on lines 1550..1554
        tests/reactable_test.jsx on lines 1586..1590

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

        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

                            <Reactable.Table className="table" id="table" data={[
                            { Name: 'Griffin Smith', Age: '18'},
                            { Age: '23', Name: 'Lee Salminen'},
                            { Age: '28', Position: 'Developer'},
                            { Name: 'Leonor Hyatt', Position: null}
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 1 hr to fix
        tests/reactable_test.jsx on lines 59..64

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

        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

                        <Reactable.Table className="table" id="table" data={[
                            { Name: 'Griffin Smith', Age: '18'},
                            { Age: '23', Name: 'Lee Salminen'},
                            { Age: '28', Position: 'Developer'},
                            { Name: 'Leonor Hyatt', Position: null}
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 1 hr to fix
        tests/reactable_test.jsx on lines 704..709

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

        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

                                columns={[{
                                    key: 'Rank', sortable: function (a, b) {
                                        // sort based on classname
                                        return a.props.className.localeCompare(b.props.className);
                                    }
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 1 hr to fix
        tests/reactable_test.jsx on lines 1957..1962

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

        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

                                columns={[{
                                    key: 'Rank', sortable: function (a, b) {
                                        // sort based on classname
                                        return a.props.className.localeCompare(b.props.className);
                                    }
        Severity: Major
        Found in tests/reactable_test.jsx and 1 other location - About 1 hr to fix
        tests/reactable_test.jsx on lines 1919..1924

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

        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

                            <Reactable.Table className="table" id="table" data={[
                                { name: 'Griffin Smith', age: '18', HideThis: 'one'},
                                { age: '23', name: 'Lee Salminen', HideThis: 'two'},
                                { age: '28', Position: 'Developer'},
                            ]} columns={[
        Severity: Minor
        Found in tests/reactable_test.jsx and 1 other location - About 55 mins to fix
        tests/reactable_test.jsx on lines 567..571

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

        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

                            <Reactable.Table className="table" id="table" data={[
                                { Name: 'Griffin Smith', Age: '18', HideThis: 'one'},
                                { Age: '23', Name: 'Lee Salminen', HideThis: 'two'},
                                { Age: '28', Position: 'Developer'},
                            ]} columns={['Name', 'Age']}/>,
        Severity: Minor
        Found in tests/reactable_test.jsx and 1 other location - About 55 mins to fix
        tests/reactable_test.jsx on lines 595..599

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column='Count' value={28}>twenty-eight</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 4 other locations - About 55 mins to fix
        tests/reactable_test.jsx on lines 1711..1713
        tests/reactable_test.jsx on lines 1714..1716
        tests/reactable_test.jsx on lines 1720..1722
        tests/reactable_test.jsx on lines 1729..1731

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column='Count' value={18}>eighteen</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 4 other locations - About 55 mins to fix
        tests/reactable_test.jsx on lines 1711..1713
        tests/reactable_test.jsx on lines 1717..1719
        tests/reactable_test.jsx on lines 1720..1722
        tests/reactable_test.jsx on lines 1729..1731

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column='Count' value={123}>one hundred twenty-three</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 4 other locations - About 55 mins to fix
        tests/reactable_test.jsx on lines 1711..1713
        tests/reactable_test.jsx on lines 1714..1716
        tests/reactable_test.jsx on lines 1717..1719
        tests/reactable_test.jsx on lines 1720..1722

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column='Count' value={23}>twenty-three</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 4 other locations - About 55 mins to fix
        tests/reactable_test.jsx on lines 1714..1716
        tests/reactable_test.jsx on lines 1717..1719
        tests/reactable_test.jsx on lines 1720..1722
        tests/reactable_test.jsx on lines 1729..1731

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column='Count' value={1.23}>one point two three</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 4 other locations - About 55 mins to fix
        tests/reactable_test.jsx on lines 1711..1713
        tests/reactable_test.jsx on lines 1714..1716
        tests/reactable_test.jsx on lines 1717..1719
        tests/reactable_test.jsx on lines 1729..1731

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column='Count' value='z'>z</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 50 mins to fix
        tests/reactable_test.jsx on lines 672..676
        tests/reactable_test.jsx on lines 1723..1725

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

        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

                                <Reactable.Tr>
                                    <Reactable.Td column='Count' value='a'>a</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 50 mins to fix
        tests/reactable_test.jsx on lines 672..676
        tests/reactable_test.jsx on lines 1726..1728

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

        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

                    it('renders only the columns in the Thead', function() {
                        expect($('#table tbody tr:first td')).to.exist;
                        expect($('#table thead tr:first th')).to.exist;
                    });
        Severity: Minor
        Found in tests/reactable_test.jsx and 1 other location - About 50 mins to fix
        tests/reactable_test.jsx on lines 684..687

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

        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

                    it('renders only the columns in the Thead', function() {
                        expect($('#table tbody tr:first td')).to.exist;
                        expect($('#table thead tr:first th')).to.exist;
                    });
        Severity: Minor
        Found in tests/reactable_test.jsx and 1 other location - About 50 mins to fix
        tests/reactable_test.jsx on lines 649..652

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

        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

                                <Reactable.Thead>
                                    <Reactable.Th column="Name" id="my-name">
                                        name
                                    </Reactable.Th>
                                </Reactable.Thead>
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 50 mins to fix
        tests/reactable_test.jsx on lines 1723..1725
        tests/reactable_test.jsx on lines 1726..1728

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

        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

                it('shows the "no data" message', () => {
                  var text = $('.reactable-no-data').text();
                  expect(text).to.eq('No matching records found.');
                });
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 45 mins to fix
        tests/reactable_test.jsx on lines 2593..2596
        tests/reactable_test.jsx on lines 2653..2656

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 50.

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

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

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

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

        Refactorings

        Further Reading

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

                it('shows the "no data" message', () => {
                  var $text = $('.reactable-no-data').text();
                  expect($text).to.eq('No matching records found.');
                });
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 45 mins to fix
        tests/reactable_test.jsx on lines 2593..2596
        tests/reactable_test.jsx on lines 2637..2640

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 50.

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

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

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

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

        Refactorings

        Further Reading

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

                it('shows the "no data" message', () => {
                  var $text = $('.reactable-no-data').text();
                  expect($text).to.eq('No matching records found.');
                });
        Severity: Major
        Found in tests/reactable_test.jsx and 2 other locations - About 45 mins to fix
        tests/reactable_test.jsx on lines 2637..2640
        tests/reactable_test.jsx on lines 2653..2656

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 50.

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

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

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

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

        Refactorings

        Further Reading

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

                                  <input type="text" ref="customFilterInput" id="customFilterInput" value={this.state.customFilterText} onChange={this.handleChange}/>
        Severity: Minor
        Found in tests/reactable_test.jsx and 1 other location - About 40 mins to fix
        tests/reactable_test.jsx on lines 2118..2118

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

        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

                                  <input type="text" ref="customFilterInput" id="customFilterInput" value={this.state.customFilterText} onChange={this.handleChange}/>
        Severity: Minor
        Found in tests/reactable_test.jsx and 1 other location - About 40 mins to fix
        tests/reactable_test.jsx on lines 2360..2360

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

        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

                            expect($($(rows[3]).find('td')[0])).to.have.text('Lee Salminen');
        Severity: Major
        Found in tests/reactable_test.jsx and 7 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 983..983
        tests/reactable_test.jsx on lines 984..984
        tests/reactable_test.jsx on lines 985..985
        tests/reactable_test.jsx on lines 1000..1000
        tests/reactable_test.jsx on lines 1001..1001
        tests/reactable_test.jsx on lines 1002..1002
        tests/reactable_test.jsx on lines 1003..1003

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

        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

                    it('does not show previous button', function(){
                        var previousButton = $('#table tbody.reactable-pagination a.reactable-previous-page');
                        expect(previousButton.length).to.equal(0);
                    });
        Severity: Minor
        Found in tests/reactable_test.jsx and 2 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 609..612
        tests/reactable_test.jsx on lines 920..923

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

        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

                            expect($($(rows[3]).find('td')[0])).to.have.text('Griffin Smith');
        Severity: Major
        Found in tests/reactable_test.jsx and 7 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 983..983
        tests/reactable_test.jsx on lines 984..984
        tests/reactable_test.jsx on lines 985..985
        tests/reactable_test.jsx on lines 986..986
        tests/reactable_test.jsx on lines 1000..1000
        tests/reactable_test.jsx on lines 1001..1001
        tests/reactable_test.jsx on lines 1002..1002

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

        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

                            expect($($(rows[1]).find('td')[0])).to.have.text('Ian Zhang');
        Severity: Major
        Found in tests/reactable_test.jsx and 7 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 983..983
        tests/reactable_test.jsx on lines 985..985
        tests/reactable_test.jsx on lines 986..986
        tests/reactable_test.jsx on lines 1000..1000
        tests/reactable_test.jsx on lines 1001..1001
        tests/reactable_test.jsx on lines 1002..1002
        tests/reactable_test.jsx on lines 1003..1003

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

        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

                            <Reactable.Table
                                className="table"
                                id="table"
                                columns={[{ key: 'Count', sortable: Reactable.Sort.Numeric }]}>
                                <Reactable.Tr>
        Severity: Minor
        Found in tests/reactable_test.jsx and 1 other location - About 35 mins to fix
        tests/reactable_test.jsx on lines 1707..1732

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

        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('updates the value of the filterer', function() {
                            var $filter = $('#table thead tr.reactable-filterer input.reactable-filter-input');
                            expect($filter).to.have.value('l');
                        });
        Severity: Minor
        Found in tests/reactable_test.jsx and 1 other location - About 35 mins to fix
        tests/reactable_test.jsx on lines 2096..2099

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

        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

                            expect($($(rows[0]).find('td')[0])).to.have.text('Test Person');
        Severity: Major
        Found in tests/reactable_test.jsx and 7 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 984..984
        tests/reactable_test.jsx on lines 985..985
        tests/reactable_test.jsx on lines 986..986
        tests/reactable_test.jsx on lines 1000..1000
        tests/reactable_test.jsx on lines 1001..1001
        tests/reactable_test.jsx on lines 1002..1002
        tests/reactable_test.jsx on lines 1003..1003

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

        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

                            expect($($(rows[2]).find('td')[0])).to.have.text('');
        Severity: Major
        Found in tests/reactable_test.jsx and 7 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 983..983
        tests/reactable_test.jsx on lines 984..984
        tests/reactable_test.jsx on lines 985..985
        tests/reactable_test.jsx on lines 986..986
        tests/reactable_test.jsx on lines 1000..1000
        tests/reactable_test.jsx on lines 1001..1001
        tests/reactable_test.jsx on lines 1003..1003

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

        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

                            <Reactable.Table
                                className="table"
                                id="table"
                                columns={[{ key: 'Count', sortable: Reactable.Sort.Numeric }]}>
                                <Reactable.Tr>
        Severity: Minor
        Found in tests/reactable_test.jsx and 1 other location - About 35 mins to fix
        tests/reactable_test.jsx on lines 1656..1681

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

        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

                    it('shows no more page buttons than the pageButtonLimit', function() {
                        var pageButtons = $('#table tbody.reactable-pagination a.reactable-page-button');
                        expect(pageButtons.length).to.equal(8);
                    });
        Severity: Minor
        Found in tests/reactable_test.jsx and 2 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 609..612
        tests/reactable_test.jsx on lines 964..967

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

        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

                            expect($($(rows[2]).find('td')[0])).to.have.text('Griffin Smith');
        Severity: Major
        Found in tests/reactable_test.jsx and 7 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 983..983
        tests/reactable_test.jsx on lines 984..984
        tests/reactable_test.jsx on lines 986..986
        tests/reactable_test.jsx on lines 1000..1000
        tests/reactable_test.jsx on lines 1001..1001
        tests/reactable_test.jsx on lines 1002..1002
        tests/reactable_test.jsx on lines 1003..1003

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

        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

                            expect($($(rows[1]).find('td')[0])).to.have.text('Lee Salminen');
        Severity: Major
        Found in tests/reactable_test.jsx and 7 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 983..983
        tests/reactable_test.jsx on lines 984..984
        tests/reactable_test.jsx on lines 985..985
        tests/reactable_test.jsx on lines 986..986
        tests/reactable_test.jsx on lines 1000..1000
        tests/reactable_test.jsx on lines 1002..1002
        tests/reactable_test.jsx on lines 1003..1003

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

        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

                    it('omits columns not in the list', function() {
                        var columns = $('tr.reactable-column-header th');
                        expect(columns.length).to.equal(2);
                    });
        Severity: Minor
        Found in tests/reactable_test.jsx and 2 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 920..923
        tests/reactable_test.jsx on lines 964..967

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

        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('updates the value of the filterer', function() {
                            var $filter = $('#table thead tr.reactable-filterer input.reactable-filter-input');
                            expect($filter).to.have.value('york');
                        });
        Severity: Minor
        Found in tests/reactable_test.jsx and 1 other location - About 35 mins to fix
        tests/reactable_test.jsx on lines 2338..2341

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

        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

                            expect($($(rows[0]).find('td')[0])).to.have.text('Griffin Smith');
        Severity: Major
        Found in tests/reactable_test.jsx and 7 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 983..983
        tests/reactable_test.jsx on lines 984..984
        tests/reactable_test.jsx on lines 985..985
        tests/reactable_test.jsx on lines 986..986
        tests/reactable_test.jsx on lines 1001..1001
        tests/reactable_test.jsx on lines 1002..1002
        tests/reactable_test.jsx on lines 1003..1003

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

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

                                <Reactable.Tr>
                                    <Reactable.Td column='Count'>28</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 9 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 146..148
        tests/reactable_test.jsx on lines 149..151
        tests/reactable_test.jsx on lines 152..154
        tests/reactable_test.jsx on lines 1660..1662
        tests/reactable_test.jsx on lines 1663..1665
        tests/reactable_test.jsx on lines 1669..1671
        tests/reactable_test.jsx on lines 1672..1674
        tests/reactable_test.jsx on lines 1675..1677
        tests/reactable_test.jsx on lines 1678..1680

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

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

                                <Reactable.Tr>
                                    <Reactable.Td column='Count'>a</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 9 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 146..148
        tests/reactable_test.jsx on lines 149..151
        tests/reactable_test.jsx on lines 152..154
        tests/reactable_test.jsx on lines 1660..1662
        tests/reactable_test.jsx on lines 1663..1665
        tests/reactable_test.jsx on lines 1666..1668
        tests/reactable_test.jsx on lines 1669..1671
        tests/reactable_test.jsx on lines 1675..1677
        tests/reactable_test.jsx on lines 1678..1680

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

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

                                <Reactable.Tr>
                                    <Reactable.Td column="Name">Ian Zhang</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 9 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 146..148
        tests/reactable_test.jsx on lines 149..151
        tests/reactable_test.jsx on lines 1660..1662
        tests/reactable_test.jsx on lines 1663..1665
        tests/reactable_test.jsx on lines 1666..1668
        tests/reactable_test.jsx on lines 1669..1671
        tests/reactable_test.jsx on lines 1672..1674
        tests/reactable_test.jsx on lines 1675..1677
        tests/reactable_test.jsx on lines 1678..1680

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

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

                                <Reactable.Tr>
                                    <Reactable.Td column='Count'>1.23</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 9 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 146..148
        tests/reactable_test.jsx on lines 149..151
        tests/reactable_test.jsx on lines 152..154
        tests/reactable_test.jsx on lines 1660..1662
        tests/reactable_test.jsx on lines 1663..1665
        tests/reactable_test.jsx on lines 1666..1668
        tests/reactable_test.jsx on lines 1672..1674
        tests/reactable_test.jsx on lines 1675..1677
        tests/reactable_test.jsx on lines 1678..1680

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

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

                                <Reactable.Tr>
                                    <Reactable.Td column='Count'>18</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 9 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 146..148
        tests/reactable_test.jsx on lines 149..151
        tests/reactable_test.jsx on lines 152..154
        tests/reactable_test.jsx on lines 1660..1662
        tests/reactable_test.jsx on lines 1666..1668
        tests/reactable_test.jsx on lines 1669..1671
        tests/reactable_test.jsx on lines 1672..1674
        tests/reactable_test.jsx on lines 1675..1677
        tests/reactable_test.jsx on lines 1678..1680

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

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

                                <Reactable.Tr>
                                    <Reactable.Td column='Count'>123</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 9 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 146..148
        tests/reactable_test.jsx on lines 149..151
        tests/reactable_test.jsx on lines 152..154
        tests/reactable_test.jsx on lines 1660..1662
        tests/reactable_test.jsx on lines 1663..1665
        tests/reactable_test.jsx on lines 1666..1668
        tests/reactable_test.jsx on lines 1669..1671
        tests/reactable_test.jsx on lines 1672..1674
        tests/reactable_test.jsx on lines 1675..1677

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

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

                                <Reactable.Tr>
                                    <Reactable.Td column="Name">Griffin Smith</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 9 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 149..151
        tests/reactable_test.jsx on lines 152..154
        tests/reactable_test.jsx on lines 1660..1662
        tests/reactable_test.jsx on lines 1663..1665
        tests/reactable_test.jsx on lines 1666..1668
        tests/reactable_test.jsx on lines 1669..1671
        tests/reactable_test.jsx on lines 1672..1674
        tests/reactable_test.jsx on lines 1675..1677
        tests/reactable_test.jsx on lines 1678..1680

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

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

                                <Reactable.Tr>
                                    <Reactable.Td column='Count'>23</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 9 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 146..148
        tests/reactable_test.jsx on lines 149..151
        tests/reactable_test.jsx on lines 152..154
        tests/reactable_test.jsx on lines 1663..1665
        tests/reactable_test.jsx on lines 1666..1668
        tests/reactable_test.jsx on lines 1669..1671
        tests/reactable_test.jsx on lines 1672..1674
        tests/reactable_test.jsx on lines 1675..1677
        tests/reactable_test.jsx on lines 1678..1680

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

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

                                <Reactable.Tr>
                                    <Reactable.Td column="Name">Lee Salminen</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 9 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 146..148
        tests/reactable_test.jsx on lines 152..154
        tests/reactable_test.jsx on lines 1660..1662
        tests/reactable_test.jsx on lines 1663..1665
        tests/reactable_test.jsx on lines 1666..1668
        tests/reactable_test.jsx on lines 1669..1671
        tests/reactable_test.jsx on lines 1672..1674
        tests/reactable_test.jsx on lines 1675..1677
        tests/reactable_test.jsx on lines 1678..1680

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

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

                                <Reactable.Tr>
                                    <Reactable.Td column='Count'>z</Reactable.Td>
                                </Reactable.Tr>
        Severity: Major
        Found in tests/reactable_test.jsx and 9 other locations - About 35 mins to fix
        tests/reactable_test.jsx on lines 146..148
        tests/reactable_test.jsx on lines 149..151
        tests/reactable_test.jsx on lines 152..154
        tests/reactable_test.jsx on lines 1660..1662
        tests/reactable_test.jsx on lines 1663..1665
        tests/reactable_test.jsx on lines 1666..1668
        tests/reactable_test.jsx on lines 1669..1671
        tests/reactable_test.jsx on lines 1672..1674
        tests/reactable_test.jsx on lines 1678..1680

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

        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