nexxtway/react-rainbow

View on GitHub

Showing 2,739 of 2,739 total issues

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

const StyledDescription = attachThemeAttrs(styled.h2)`
    margin: 0;
    padding: 0;
    font-weight: inherit;
    font-size: ${FONT_SIZE_TEXT_SMALL};
Severity: Major
Found in src/components/VisualPickerOptionFooter/styled/description.js and 16 other locations - About 40 mins to fix
src/components/Calendar/doubleCalendar/styled/index.js on lines 64..72
src/components/Calendar/styled/month.js on lines 5..13
src/components/Card/styled/title.js on lines 5..14
src/components/CarouselImage/styled/footerDescription.js on lines 5..11
src/components/CarouselImage/styled/footerTitle.js on lines 5..12
src/components/GMap/styled/header.js on lines 5..11
src/components/Lookup/options/styled/content.js on lines 5..11
src/components/MapMarker/styled/label.js on lines 5..9
src/components/MapMarker/styled/textContainer.js on lines 5..10
src/components/MenuItem/styled/headerLabel.js on lines 5..12
src/components/Option/styled/headerLabel.js on lines 5..10
src/components/ProgressStep/styled/activeIcon.js on lines 5..11
src/components/Table/body/styled/emptyIcon.js on lines 5..8
src/components/Table/body/styled/emptyTitle.js on lines 5..12
src/components/VisualPickerOptionFooter/styled/label.js on lines 5..12
src/components/WeeklyCalendar/styled/title.js on lines 5..16

Duplicated Code

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

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

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

    const {
        currency,
        currencyDisplay,
        currencySign,
        minimumIntegerDigits,
Severity: Major
Found in src/components/CurrencyInput/hooks/useOptions.js and 10 other locations - About 40 mins to fix
src/components/Badge/index.js on lines 10..10
src/components/BadgeOverlay/index.js on lines 14..14
src/components/Calendar/week.js on lines 8..17
src/components/Chip/index.js on lines 19..19
src/components/ColorPicker/index.js on lines 13..13
src/components/HelpText/index.js on lines 45..45
src/components/MultiSelect/content.js on lines 8..8
src/components/RadioButtonGroup/buttonItems.js on lines 6..6
src/components/Sidebar/index.js on lines 14..23
src/components/Spinner/index.js on lines 14..14

Duplicated Code

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

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

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

    const { options, ariaDescribedby, onChange, value, name, required, variant, size } = props;
Severity: Major
Found in src/components/RadioButtonGroup/buttonItems.js and 10 other locations - About 40 mins to fix
src/components/CurrencyInput/hooks/useOptions.js on lines 4..13
src/components/Badge/index.js on lines 10..10
src/components/BadgeOverlay/index.js on lines 14..14
src/components/Calendar/week.js on lines 8..17
src/components/Chip/index.js on lines 19..19
src/components/ColorPicker/index.js on lines 13..13
src/components/HelpText/index.js on lines 45..45
src/components/MultiSelect/content.js on lines 8..8
src/components/Sidebar/index.js on lines 14..23
src/components/Spinner/index.js on lines 14..14

Duplicated Code

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

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

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

    const { className, style, assistiveText, isVisible, size, variant, type, children } = props;
Severity: Major
Found in src/components/Spinner/index.js and 10 other locations - About 40 mins to fix
src/components/CurrencyInput/hooks/useOptions.js on lines 4..13
src/components/Badge/index.js on lines 10..10
src/components/BadgeOverlay/index.js on lines 14..14
src/components/Calendar/week.js on lines 8..17
src/components/Chip/index.js on lines 19..19
src/components/ColorPicker/index.js on lines 13..13
src/components/HelpText/index.js on lines 45..45
src/components/MultiSelect/content.js on lines 8..8
src/components/RadioButtonGroup/buttonItems.js on lines 6..6
src/components/Sidebar/index.js on lines 14..23

Duplicated Code

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

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

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

const StyledLabel = attachThemeAttrs(styled.h1)`
    margin: 0;
    padding: 0;
    font-size: ${FONT_SIZE_HEADING_SMALL};
    color: ${props => props.palette.text.main};
Severity: Major
Found in src/components/VisualPickerOptionFooter/styled/label.js and 16 other locations - About 40 mins to fix
src/components/Calendar/doubleCalendar/styled/index.js on lines 64..72
src/components/Calendar/styled/month.js on lines 5..13
src/components/Card/styled/title.js on lines 5..14
src/components/CarouselImage/styled/footerDescription.js on lines 5..11
src/components/CarouselImage/styled/footerTitle.js on lines 5..12
src/components/GMap/styled/header.js on lines 5..11
src/components/Lookup/options/styled/content.js on lines 5..11
src/components/MapMarker/styled/label.js on lines 5..9
src/components/MapMarker/styled/textContainer.js on lines 5..10
src/components/MenuItem/styled/headerLabel.js on lines 5..12
src/components/Option/styled/headerLabel.js on lines 5..10
src/components/ProgressStep/styled/activeIcon.js on lines 5..11
src/components/Table/body/styled/emptyIcon.js on lines 5..8
src/components/Table/body/styled/emptyTitle.js on lines 5..12
src/components/VisualPickerOptionFooter/styled/description.js on lines 5..12
src/components/WeeklyCalendar/styled/title.js on lines 5..16

Duplicated Code

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

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

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

    const { variant, value, chipVariant, readOnly, disabled, onDelete, size, borderRadius } = props;
Severity: Major
Found in src/components/MultiSelect/content.js and 10 other locations - About 40 mins to fix
src/components/CurrencyInput/hooks/useOptions.js on lines 4..13
src/components/Badge/index.js on lines 10..10
src/components/BadgeOverlay/index.js on lines 14..14
src/components/Calendar/week.js on lines 8..17
src/components/Chip/index.js on lines 19..19
src/components/ColorPicker/index.js on lines 13..13
src/components/HelpText/index.js on lines 45..45
src/components/RadioButtonGroup/buttonItems.js on lines 6..6
src/components/Sidebar/index.js on lines 14..23
src/components/Spinner/index.js on lines 14..14

Duplicated Code

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

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

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

    const { id, title, text, variant, tabIndex, iconSize, className, style } = props;
Severity: Major
Found in src/components/HelpText/index.js and 10 other locations - About 40 mins to fix
src/components/CurrencyInput/hooks/useOptions.js on lines 4..13
src/components/Badge/index.js on lines 10..10
src/components/BadgeOverlay/index.js on lines 14..14
src/components/Calendar/week.js on lines 8..17
src/components/Chip/index.js on lines 19..19
src/components/ColorPicker/index.js on lines 13..13
src/components/MultiSelect/content.js on lines 8..8
src/components/RadioButtonGroup/buttonItems.js on lines 6..6
src/components/Sidebar/index.js on lines 14..23
src/components/Spinner/index.js on lines 14..14

Duplicated Code

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

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

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

    const { label, onDelete, variant, title, className, style, size, borderRadius } = props;
Severity: Major
Found in src/components/Chip/index.js and 10 other locations - About 40 mins to fix
src/components/CurrencyInput/hooks/useOptions.js on lines 4..13
src/components/Badge/index.js on lines 10..10
src/components/BadgeOverlay/index.js on lines 14..14
src/components/Calendar/week.js on lines 8..17
src/components/ColorPicker/index.js on lines 13..13
src/components/HelpText/index.js on lines 45..45
src/components/MultiSelect/content.js on lines 8..8
src/components/RadioButtonGroup/buttonItems.js on lines 6..6
src/components/Sidebar/index.js on lines 14..23
src/components/Spinner/index.js on lines 14..14

Duplicated Code

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

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

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

                <RenderIf isTrue={error}>
                    <StyledErrorText id={this.getErrorMessageId()}>{error}</StyledErrorText>
                </RenderIf>
Severity: Major
Found in src/components/RadioButtonGroup/index.js and 5 other locations - About 40 mins to fix
src/components/ButtonGroupPicker/index.js on lines 100..102
src/components/CheckboxGroup/index.js on lines 86..88
src/components/RadioGroup/index.js on lines 68..70
src/components/Textarea/index.js on lines 168..170
src/components/VisualPicker/index.js on lines 85..87

Duplicated Code

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

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

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

                <RenderIf isTrue={error}>
                    <StyledErrorText id={this.getErrorMessageId()}>{error}</StyledErrorText>
                </RenderIf>
Severity: Major
Found in src/components/ButtonGroupPicker/index.js and 5 other locations - About 40 mins to fix
src/components/CheckboxGroup/index.js on lines 86..88
src/components/RadioButtonGroup/index.js on lines 162..164
src/components/RadioGroup/index.js on lines 68..70
src/components/Textarea/index.js on lines 168..170
src/components/VisualPicker/index.js on lines 85..87

Duplicated Code

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

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

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

                <RenderIf isTrue={error}>
                    <StyledTextError id={this.getErrorMessageId()}>{error}</StyledTextError>
                </RenderIf>
Severity: Major
Found in src/components/CheckboxGroup/index.js and 5 other locations - About 40 mins to fix
src/components/ButtonGroupPicker/index.js on lines 100..102
src/components/RadioButtonGroup/index.js on lines 162..164
src/components/RadioGroup/index.js on lines 68..70
src/components/Textarea/index.js on lines 168..170
src/components/VisualPicker/index.js on lines 85..87

Duplicated Code

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

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

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

                <RenderIf isTrue={error}>
                    <StyledTextError id={this.getErrorMessageId()}>{error}</StyledTextError>
                </RenderIf>
Severity: Major
Found in src/components/RadioGroup/index.js and 5 other locations - About 40 mins to fix
src/components/ButtonGroupPicker/index.js on lines 100..102
src/components/CheckboxGroup/index.js on lines 86..88
src/components/RadioButtonGroup/index.js on lines 162..164
src/components/Textarea/index.js on lines 168..170
src/components/VisualPicker/index.js on lines 85..87

Duplicated Code

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

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

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

                <RenderIf isTrue={error}>
                    <StyledError id={this.getErrorMessageId()}>{error}</StyledError>
                </RenderIf>
Severity: Major
Found in src/components/Textarea/index.js and 5 other locations - About 40 mins to fix
src/components/ButtonGroupPicker/index.js on lines 100..102
src/components/CheckboxGroup/index.js on lines 86..88
src/components/RadioButtonGroup/index.js on lines 162..164
src/components/RadioGroup/index.js on lines 68..70
src/components/VisualPicker/index.js on lines 85..87

Duplicated Code

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

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

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

                <RenderIf isTrue={error}>
                    <StyledError id={this.getErrorMessageId()}>{error}</StyledError>
                </RenderIf>
Severity: Major
Found in src/components/VisualPicker/index.js and 5 other locations - About 40 mins to fix
src/components/ButtonGroupPicker/index.js on lines 100..102
src/components/CheckboxGroup/index.js on lines 86..88
src/components/RadioButtonGroup/index.js on lines 162..164
src/components/RadioGroup/index.js on lines 68..70
src/components/Textarea/index.js on lines 168..170

Duplicated Code

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

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

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

                            <div className="react-rainbow-customization_section-heading-container">
                                <h3 className="react-rainbow-getting-started_section-heading rainbow-m-right_medium">
                                    If you are using React Rainbow on your app, sometimes you may
                                    need to customize the default styles to satisfy your UI/UX based
                                    on business or brand requirements. Either you will need to use
Severity: Major
Found in library/pages/CustomizationPage/index.js and 4 other locations - About 40 mins to fix
library/pages/Designs/index.js on lines 38..41
library/pages/ExperienceExamplesPage/index.js on lines 12..17
library/pages/GettingStartedPage/index.js on lines 87..94
library/pages/GettingStartedPage/index.js on lines 134..140

Duplicated Code

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

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

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

EditableCell.propTypes = {
    value: PropTypes.any,
    row: PropTypes.object,
    onChange: PropTypes.func,
    field: PropTypes.string,
Severity: Major
Found in src/components/Table/body/editableCell.js and 4 other locations - About 40 mins to fix
src/components/Table/head/index.js on lines 49..54
src/components/ActivityTimeline/basicTimeline.js on lines 14..19
src/components/Lookup/rightElement.js on lines 26..31
src/components/ZoomableImage/zoomedImage.js on lines 51..56

Duplicated Code

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

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

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

Tuning

This issue has a mass of 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 5 locations. Consider refactoring.
Open

                        <div className="react-rainbow-getting-started_section-heading-container rainbow-align_center rainbow-m-bottom_medium">
                            <h3 className="react-rainbow-getting-started_section-heading rainbow-m-right_medium">
                                There are several runnable examples in this Git repo, but here's a
                                Hello World one:
                            </h3>
Severity: Major
Found in library/pages/GettingStartedPage/index.js and 4 other locations - About 40 mins to fix
library/pages/CustomizationPage/index.js on lines 196..206
library/pages/Designs/index.js on lines 38..41
library/pages/ExperienceExamplesPage/index.js on lines 12..17
library/pages/GettingStartedPage/index.js on lines 87..94

Duplicated Code

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

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

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

BasicTimeline.propTypes = {
    id: PropTypes.string,
    children: PropTypes.node,
    className: PropTypes.string,
    style: PropTypes.object,
Severity: Major
Found in src/components/ActivityTimeline/basicTimeline.js and 4 other locations - About 40 mins to fix
src/components/Table/body/editableCell.js on lines 89..94
src/components/Table/head/index.js on lines 49..54
src/components/Lookup/rightElement.js on lines 26..31
src/components/ZoomableImage/zoomedImage.js on lines 51..56

Duplicated Code

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

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

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

Tuning

This issue has a mass of 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 5 locations. Consider refactoring.
Open

ZoomedImage.propTypes = {
    src: PropTypes.string,
    alt: PropTypes.string,
    close: PropTypes.func,
    originalRect: PropTypes.object,
Severity: Major
Found in src/components/ZoomableImage/zoomedImage.js and 4 other locations - About 40 mins to fix
src/components/Table/body/editableCell.js on lines 89..94
src/components/Table/head/index.js on lines 49..54
src/components/ActivityTimeline/basicTimeline.js on lines 14..19
src/components/Lookup/rightElement.js on lines 26..31

Duplicated Code

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

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

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

Head.propTypes = {
    columns: PropTypes.array,
    sortDirection: PropTypes.string,
    defaultSortDirection: PropTypes.string,
    sortedBy: PropTypes.string,
Severity: Major
Found in src/components/Table/head/index.js and 4 other locations - About 40 mins to fix
src/components/Table/body/editableCell.js on lines 89..94
src/components/ActivityTimeline/basicTimeline.js on lines 14..19
src/components/Lookup/rightElement.js on lines 26..31
src/components/ZoomableImage/zoomedImage.js on lines 51..56

Duplicated Code

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

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

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

Tuning

This issue has a mass of 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

Severity
Category
Status
Source
Language