appbaseio/reactivesearch

View on GitHub

Showing 1,042 of 1,376 total issues

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

                                <label
                                    class={
                                        getClassName(this.$props.innerClass, 'label')
                                        || 'range-label-right'
                                    }
Severity: Minor
Found in packages/vue/src/components/range/RangeSlider.jsx and 1 other location - About 50 mins to fix
packages/vue/src/components/range/RangeSlider.jsx on lines 178..185

Duplicated Code

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

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

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

Tuning

This issue has a mass of 52.

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

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

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

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

Refactorings

Further Reading

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

                        if (this.props.autosuggest) {
                            this.setState({
                                isOpen: false,
                            });
                            this.updateQuery(this.internalComponent, value, props);
Severity: Minor
Found in packages/web/src/components/search/CategorySearch.js and 1 other location - About 50 mins to fix
packages/web/src/components/search/DataSearch.js on lines 273..278

Duplicated Code

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

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

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

Tuning

This issue has a mass of 52.

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

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

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

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

Refactorings

Further Reading

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

                                <label
                                    class={
                                        getClassName(this.$props.innerClass, 'label')
                                        || 'range-label-left'
                                    }
Severity: Minor
Found in packages/vue/src/components/range/RangeSlider.jsx and 1 other location - About 50 mins to fix
packages/vue/src/components/range/RangeSlider.jsx on lines 186..193

Duplicated Code

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

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

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

Tuning

This issue has a mass of 52.

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

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

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

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

Refactorings

Further Reading

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

Todo.propTypes = {
    onClick: PropTypes.func.isRequired,
    completed: PropTypes.bool.isRequired,
    text: PropTypes.string.isRequired,
};
Severity: Minor
Found in packages/web/examples/withRedux/src/components/Todo.js and 1 other location - About 50 mins to fix
packages/web/examples/withRedux/src/components/Link.js on lines 23..27

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
Open

Link.propTypes = {
    active: PropTypes.bool.isRequired,
    children: PropTypes.node.isRequired,
    onClick: PropTypes.func.isRequired,
};
Severity: Minor
Found in packages/web/examples/withRedux/src/components/Link.js and 1 other location - About 50 mins to fix
packages/web/examples/withRedux/src/components/Todo.js on lines 17..21

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/web/src/components/list/MultiDataList.js and 15 other locations - About 45 mins to fix
packages/maps-native/src/components/maps/ReactiveMap.js on lines 210..213
packages/maps/src/components/result/ReactiveMap.js on lines 345..348
packages/native/src/components/list/MultiDropdownList.js on lines 94..97
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/range/RangeSlider.js on lines 105..108
packages/native/src/components/search/DataSearch.js on lines 103..106
packages/web/src/components/basic/TagCloud.js on lines 92..95
packages/web/src/components/list/MultiDropdownList.js on lines 118..121
packages/web/src/components/list/MultiList.js on lines 112..115
packages/web/src/components/list/SingleDataList.js on lines 88..91
packages/web/src/components/list/SingleDropdownList.js on lines 107..110
packages/web/src/components/list/SingleList.js on lines 103..106
packages/web/src/components/range/RangeSlider.js on lines 110..113
packages/web/src/components/search/CategorySearch.js on lines 129..132
packages/web/src/components/search/DataSearch.js on lines 116..119

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/native/src/components/range/RangeSlider.js and 15 other locations - About 45 mins to fix
packages/maps-native/src/components/maps/ReactiveMap.js on lines 210..213
packages/maps/src/components/result/ReactiveMap.js on lines 345..348
packages/native/src/components/list/MultiDropdownList.js on lines 94..97
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/search/DataSearch.js on lines 103..106
packages/web/src/components/basic/TagCloud.js on lines 92..95
packages/web/src/components/list/MultiDataList.js on lines 100..103
packages/web/src/components/list/MultiDropdownList.js on lines 118..121
packages/web/src/components/list/MultiList.js on lines 112..115
packages/web/src/components/list/SingleDataList.js on lines 88..91
packages/web/src/components/list/SingleDropdownList.js on lines 107..110
packages/web/src/components/list/SingleList.js on lines 103..106
packages/web/src/components/range/RangeSlider.js on lines 110..113
packages/web/src/components/search/CategorySearch.js on lines 129..132
packages/web/src/components/search/DataSearch.js on lines 116..119

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/web/src/components/search/CategorySearch.js and 15 other locations - About 45 mins to fix
packages/maps-native/src/components/maps/ReactiveMap.js on lines 210..213
packages/maps/src/components/result/ReactiveMap.js on lines 345..348
packages/native/src/components/list/MultiDropdownList.js on lines 94..97
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/range/RangeSlider.js on lines 105..108
packages/native/src/components/search/DataSearch.js on lines 103..106
packages/web/src/components/basic/TagCloud.js on lines 92..95
packages/web/src/components/list/MultiDataList.js on lines 100..103
packages/web/src/components/list/MultiDropdownList.js on lines 118..121
packages/web/src/components/list/MultiList.js on lines 112..115
packages/web/src/components/list/SingleDataList.js on lines 88..91
packages/web/src/components/list/SingleDropdownList.js on lines 107..110
packages/web/src/components/list/SingleList.js on lines 103..106
packages/web/src/components/range/RangeSlider.js on lines 110..113
packages/web/src/components/search/DataSearch.js on lines 116..119

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/maps-native/src/components/maps/ReactiveMap.js and 15 other locations - About 45 mins to fix
packages/maps/src/components/result/ReactiveMap.js on lines 345..348
packages/native/src/components/list/MultiDropdownList.js on lines 94..97
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/range/RangeSlider.js on lines 105..108
packages/native/src/components/search/DataSearch.js on lines 103..106
packages/web/src/components/basic/TagCloud.js on lines 92..95
packages/web/src/components/list/MultiDataList.js on lines 100..103
packages/web/src/components/list/MultiDropdownList.js on lines 118..121
packages/web/src/components/list/MultiList.js on lines 112..115
packages/web/src/components/list/SingleDataList.js on lines 88..91
packages/web/src/components/list/SingleDropdownList.js on lines 107..110
packages/web/src/components/list/SingleList.js on lines 103..106
packages/web/src/components/range/RangeSlider.js on lines 110..113
packages/web/src/components/search/CategorySearch.js on lines 129..132
packages/web/src/components/search/DataSearch.js on lines 116..119

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/web/src/components/list/MultiList.js and 15 other locations - About 45 mins to fix
packages/maps-native/src/components/maps/ReactiveMap.js on lines 210..213
packages/maps/src/components/result/ReactiveMap.js on lines 345..348
packages/native/src/components/list/MultiDropdownList.js on lines 94..97
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/range/RangeSlider.js on lines 105..108
packages/native/src/components/search/DataSearch.js on lines 103..106
packages/web/src/components/basic/TagCloud.js on lines 92..95
packages/web/src/components/list/MultiDataList.js on lines 100..103
packages/web/src/components/list/MultiDropdownList.js on lines 118..121
packages/web/src/components/list/SingleDataList.js on lines 88..91
packages/web/src/components/list/SingleDropdownList.js on lines 107..110
packages/web/src/components/list/SingleList.js on lines 103..106
packages/web/src/components/range/RangeSlider.js on lines 110..113
packages/web/src/components/search/CategorySearch.js on lines 129..132
packages/web/src/components/search/DataSearch.js on lines 116..119

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/maps/src/components/result/ReactiveMap.js and 15 other locations - About 45 mins to fix
packages/maps-native/src/components/maps/ReactiveMap.js on lines 210..213
packages/native/src/components/list/MultiDropdownList.js on lines 94..97
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/range/RangeSlider.js on lines 105..108
packages/native/src/components/search/DataSearch.js on lines 103..106
packages/web/src/components/basic/TagCloud.js on lines 92..95
packages/web/src/components/list/MultiDataList.js on lines 100..103
packages/web/src/components/list/MultiDropdownList.js on lines 118..121
packages/web/src/components/list/MultiList.js on lines 112..115
packages/web/src/components/list/SingleDataList.js on lines 88..91
packages/web/src/components/list/SingleDropdownList.js on lines 107..110
packages/web/src/components/list/SingleList.js on lines 103..106
packages/web/src/components/range/RangeSlider.js on lines 110..113
packages/web/src/components/search/CategorySearch.js on lines 129..132
packages/web/src/components/search/DataSearch.js on lines 116..119

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/web/src/components/basic/TagCloud.js and 15 other locations - About 45 mins to fix
packages/maps-native/src/components/maps/ReactiveMap.js on lines 210..213
packages/maps/src/components/result/ReactiveMap.js on lines 345..348
packages/native/src/components/list/MultiDropdownList.js on lines 94..97
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/range/RangeSlider.js on lines 105..108
packages/native/src/components/search/DataSearch.js on lines 103..106
packages/web/src/components/list/MultiDataList.js on lines 100..103
packages/web/src/components/list/MultiDropdownList.js on lines 118..121
packages/web/src/components/list/MultiList.js on lines 112..115
packages/web/src/components/list/SingleDataList.js on lines 88..91
packages/web/src/components/list/SingleDropdownList.js on lines 107..110
packages/web/src/components/list/SingleList.js on lines 103..106
packages/web/src/components/range/RangeSlider.js on lines 110..113
packages/web/src/components/search/CategorySearch.js on lines 129..132
packages/web/src/components/search/DataSearch.js on lines 116..119

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/native/src/components/search/DataSearch.js and 15 other locations - About 45 mins to fix
packages/maps-native/src/components/maps/ReactiveMap.js on lines 210..213
packages/maps/src/components/result/ReactiveMap.js on lines 345..348
packages/native/src/components/list/MultiDropdownList.js on lines 94..97
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/range/RangeSlider.js on lines 105..108
packages/web/src/components/basic/TagCloud.js on lines 92..95
packages/web/src/components/list/MultiDataList.js on lines 100..103
packages/web/src/components/list/MultiDropdownList.js on lines 118..121
packages/web/src/components/list/MultiList.js on lines 112..115
packages/web/src/components/list/SingleDataList.js on lines 88..91
packages/web/src/components/list/SingleDropdownList.js on lines 107..110
packages/web/src/components/list/SingleList.js on lines 103..106
packages/web/src/components/range/RangeSlider.js on lines 110..113
packages/web/src/components/search/CategorySearch.js on lines 129..132
packages/web/src/components/search/DataSearch.js on lines 116..119

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/web/src/components/range/RangeSlider.js and 15 other locations - About 45 mins to fix
packages/maps-native/src/components/maps/ReactiveMap.js on lines 210..213
packages/maps/src/components/result/ReactiveMap.js on lines 345..348
packages/native/src/components/list/MultiDropdownList.js on lines 94..97
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/range/RangeSlider.js on lines 105..108
packages/native/src/components/search/DataSearch.js on lines 103..106
packages/web/src/components/basic/TagCloud.js on lines 92..95
packages/web/src/components/list/MultiDataList.js on lines 100..103
packages/web/src/components/list/MultiDropdownList.js on lines 118..121
packages/web/src/components/list/MultiList.js on lines 112..115
packages/web/src/components/list/SingleDataList.js on lines 88..91
packages/web/src/components/list/SingleDropdownList.js on lines 107..110
packages/web/src/components/list/SingleList.js on lines 103..106
packages/web/src/components/search/CategorySearch.js on lines 129..132
packages/web/src/components/search/DataSearch.js on lines 116..119

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/web/src/components/list/MultiDropdownList.js and 15 other locations - About 45 mins to fix
packages/maps-native/src/components/maps/ReactiveMap.js on lines 210..213
packages/maps/src/components/result/ReactiveMap.js on lines 345..348
packages/native/src/components/list/MultiDropdownList.js on lines 94..97
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/range/RangeSlider.js on lines 105..108
packages/native/src/components/search/DataSearch.js on lines 103..106
packages/web/src/components/basic/TagCloud.js on lines 92..95
packages/web/src/components/list/MultiDataList.js on lines 100..103
packages/web/src/components/list/MultiList.js on lines 112..115
packages/web/src/components/list/SingleDataList.js on lines 88..91
packages/web/src/components/list/SingleDropdownList.js on lines 107..110
packages/web/src/components/list/SingleList.js on lines 103..106
packages/web/src/components/range/RangeSlider.js on lines 110..113
packages/web/src/components/search/CategorySearch.js on lines 129..132
packages/web/src/components/search/DataSearch.js on lines 116..119

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/web/src/components/list/SingleList.js and 15 other locations - About 45 mins to fix
packages/maps-native/src/components/maps/ReactiveMap.js on lines 210..213
packages/maps/src/components/result/ReactiveMap.js on lines 345..348
packages/native/src/components/list/MultiDropdownList.js on lines 94..97
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/range/RangeSlider.js on lines 105..108
packages/native/src/components/search/DataSearch.js on lines 103..106
packages/web/src/components/basic/TagCloud.js on lines 92..95
packages/web/src/components/list/MultiDataList.js on lines 100..103
packages/web/src/components/list/MultiDropdownList.js on lines 118..121
packages/web/src/components/list/MultiList.js on lines 112..115
packages/web/src/components/list/SingleDataList.js on lines 88..91
packages/web/src/components/list/SingleDropdownList.js on lines 107..110
packages/web/src/components/range/RangeSlider.js on lines 110..113
packages/web/src/components/search/CategorySearch.js on lines 129..132
packages/web/src/components/search/DataSearch.js on lines 116..119

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/web/src/components/list/SingleDropdownList.js and 15 other locations - About 45 mins to fix
packages/maps-native/src/components/maps/ReactiveMap.js on lines 210..213
packages/maps/src/components/result/ReactiveMap.js on lines 345..348
packages/native/src/components/list/MultiDropdownList.js on lines 94..97
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/range/RangeSlider.js on lines 105..108
packages/native/src/components/search/DataSearch.js on lines 103..106
packages/web/src/components/basic/TagCloud.js on lines 92..95
packages/web/src/components/list/MultiDataList.js on lines 100..103
packages/web/src/components/list/MultiDropdownList.js on lines 118..121
packages/web/src/components/list/MultiList.js on lines 112..115
packages/web/src/components/list/SingleDataList.js on lines 88..91
packages/web/src/components/list/SingleList.js on lines 103..106
packages/web/src/components/range/RangeSlider.js on lines 110..113
packages/web/src/components/search/CategorySearch.js on lines 129..132
packages/web/src/components/search/DataSearch.js on lines 116..119

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/web/src/components/list/SingleDataList.js and 15 other locations - About 45 mins to fix
packages/maps-native/src/components/maps/ReactiveMap.js on lines 210..213
packages/maps/src/components/result/ReactiveMap.js on lines 345..348
packages/native/src/components/list/MultiDropdownList.js on lines 94..97
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/range/RangeSlider.js on lines 105..108
packages/native/src/components/search/DataSearch.js on lines 103..106
packages/web/src/components/basic/TagCloud.js on lines 92..95
packages/web/src/components/list/MultiDataList.js on lines 100..103
packages/web/src/components/list/MultiDropdownList.js on lines 118..121
packages/web/src/components/list/MultiList.js on lines 112..115
packages/web/src/components/list/SingleDropdownList.js on lines 107..110
packages/web/src/components/list/SingleList.js on lines 103..106
packages/web/src/components/range/RangeSlider.js on lines 110..113
packages/web/src/components/search/CategorySearch.js on lines 129..132
packages/web/src/components/search/DataSearch.js on lines 116..119

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/web/src/components/search/DataSearch.js and 15 other locations - About 45 mins to fix
packages/maps-native/src/components/maps/ReactiveMap.js on lines 210..213
packages/maps/src/components/result/ReactiveMap.js on lines 345..348
packages/native/src/components/list/MultiDropdownList.js on lines 94..97
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/range/RangeSlider.js on lines 105..108
packages/native/src/components/search/DataSearch.js on lines 103..106
packages/web/src/components/basic/TagCloud.js on lines 92..95
packages/web/src/components/list/MultiDataList.js on lines 100..103
packages/web/src/components/list/MultiDropdownList.js on lines 118..121
packages/web/src/components/list/MultiList.js on lines 112..115
packages/web/src/components/list/SingleDataList.js on lines 88..91
packages/web/src/components/list/SingleDropdownList.js on lines 107..110
packages/web/src/components/list/SingleList.js on lines 103..106
packages/web/src/components/range/RangeSlider.js on lines 110..113
packages/web/src/components/search/CategorySearch.js on lines 129..132

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 16 locations. Consider refactoring.
Open

    componentWillUnmount() {
        this.props.removeComponent(this.props.componentId);
        this.props.removeComponent(this.internalComponent);
    }
Severity: Major
Found in packages/native/src/components/list/MultiDropdownList.js and 15 other locations - About 45 mins to fix
packages/maps-native/src/components/maps/ReactiveMap.js on lines 210..213
packages/maps/src/components/result/ReactiveMap.js on lines 345..348
packages/native/src/components/list/SingleDropdownList.js on lines 78..81
packages/native/src/components/range/RangeSlider.js on lines 105..108
packages/native/src/components/search/DataSearch.js on lines 103..106
packages/web/src/components/basic/TagCloud.js on lines 92..95
packages/web/src/components/list/MultiDataList.js on lines 100..103
packages/web/src/components/list/MultiDropdownList.js on lines 118..121
packages/web/src/components/list/MultiList.js on lines 112..115
packages/web/src/components/list/SingleDataList.js on lines 88..91
packages/web/src/components/list/SingleDropdownList.js on lines 107..110
packages/web/src/components/list/SingleList.js on lines 103..106
packages/web/src/components/range/RangeSlider.js on lines 110..113
packages/web/src/components/search/CategorySearch.js on lines 129..132
packages/web/src/components/search/DataSearch.js on lines 116..119

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

Severity
Category
Status
Source
Language