nexxtway/react-rainbow

View on GitHub

Showing 2,739 of 2,739 total issues

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

const StyledHour = attachThemeAttrs(styled.div)`
    position: relative;
    height: 40px;
    min-height: 40px;
    padding-right: 8px;
Severity: Major
Found in src/components/WeeklyCalendar/styled/hour.js and 12 other locations - About 40 mins to fix
src/components/Calendar/styled/day.js on lines 5..14
src/components/Calendar/styled/headerDays.js on lines 5..14
src/components/DatePickerModal/styled/index.js on lines 51..58
src/components/Drawer/styled/title.js on lines 5..18
src/components/MonthlyCalendar/styled/dayAdjacent.js on lines 5..18
src/components/MonthlyCalendar/styled/dayLabel.js on lines 5..11
src/components/PhoneInput/countriesDropdown/styled/search.js on lines 5..23
src/components/TimePicker/styled/dots.js on lines 5..18
src/components/TimePicker/styled/selectContent.js on lines 5..20
src/components/TimelineMarker/styled/label.js on lines 5..12
src/components/WeeklyCalendar/header/styled/hours.js on lines 5..14
src/components/WeeklyCalendar/styled/clock.js on lines 5..13

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 StyledTextContainer = attachThemeAttrs(styled.span)`
    flex: 1;
    min-width: 0;
    font-size: ${FONT_SIZE_TEXT_SMALL};
    color: ${props => props.palette.text.label};
Severity: Major
Found in src/components/MapMarker/styled/textContainer.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/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/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 17 locations. Consider refactoring.
Open

const StyledTitle = attachThemeAttrs(styled.h3)`
    font-size: ${FONT_SIZE_HEADING_X_LARGE};
    color: ${props => props.palette.brand.main};
    text-transform: capitalize;
    font-weight: 300;
Severity: Major
Found in src/components/WeeklyCalendar/styled/title.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/VisualPickerOptionFooter/styled/label.js on lines 5..12

Duplicated Code

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

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

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

const StyledSearch = attachThemeAttrs(styled.input)`
    font: inherit;
    background-color: transparent;
    border: 0;
    color: ${props => props.palette.text.main};
Severity: Major
Found in src/components/PhoneInput/countriesDropdown/styled/search.js and 12 other locations - About 40 mins to fix
src/components/Calendar/styled/day.js on lines 5..14
src/components/Calendar/styled/headerDays.js on lines 5..14
src/components/DatePickerModal/styled/index.js on lines 51..58
src/components/Drawer/styled/title.js on lines 5..18
src/components/MonthlyCalendar/styled/dayAdjacent.js on lines 5..18
src/components/MonthlyCalendar/styled/dayLabel.js on lines 5..11
src/components/TimePicker/styled/dots.js on lines 5..18
src/components/TimePicker/styled/selectContent.js on lines 5..20
src/components/TimelineMarker/styled/label.js on lines 5..12
src/components/WeeklyCalendar/header/styled/hours.js on lines 5..14
src/components/WeeklyCalendar/styled/clock.js on lines 5..13
src/components/WeeklyCalendar/styled/hour.js on lines 5..17

Duplicated Code

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

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

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

export const HeaderTitle = attachThemeAttrs(styled.h1)`
    display: flex;
    color: ${props => props.palette.brand.main};
    font-size: ${FONT_SIZE_HEADING_LARGE};
    font-weight: 500;
Severity: Major
Found in src/components/DatePickerModal/styled/index.js and 12 other locations - About 40 mins to fix
src/components/Calendar/styled/day.js on lines 5..14
src/components/Calendar/styled/headerDays.js on lines 5..14
src/components/Drawer/styled/title.js on lines 5..18
src/components/MonthlyCalendar/styled/dayAdjacent.js on lines 5..18
src/components/MonthlyCalendar/styled/dayLabel.js on lines 5..11
src/components/PhoneInput/countriesDropdown/styled/search.js on lines 5..23
src/components/TimePicker/styled/dots.js on lines 5..18
src/components/TimePicker/styled/selectContent.js on lines 5..20
src/components/TimelineMarker/styled/label.js on lines 5..12
src/components/WeeklyCalendar/header/styled/hours.js on lines 5..14
src/components/WeeklyCalendar/styled/clock.js on lines 5..13
src/components/WeeklyCalendar/styled/hour.js on lines 5..17

Duplicated Code

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

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

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

const StyledHeaderDays = attachThemeAttrs(styled.th)`
    text-align: center;
    color: ${props => props.palette.text.header};
    font-size: ${FONT_SIZE_TEXT_MEDIUM};
    font-weight: 400;
Severity: Major
Found in src/components/Calendar/styled/headerDays.js and 12 other locations - About 40 mins to fix
src/components/Calendar/styled/day.js on lines 5..14
src/components/DatePickerModal/styled/index.js on lines 51..58
src/components/Drawer/styled/title.js on lines 5..18
src/components/MonthlyCalendar/styled/dayAdjacent.js on lines 5..18
src/components/MonthlyCalendar/styled/dayLabel.js on lines 5..11
src/components/PhoneInput/countriesDropdown/styled/search.js on lines 5..23
src/components/TimePicker/styled/dots.js on lines 5..18
src/components/TimePicker/styled/selectContent.js on lines 5..20
src/components/TimelineMarker/styled/label.js on lines 5..12
src/components/WeeklyCalendar/header/styled/hours.js on lines 5..14
src/components/WeeklyCalendar/styled/clock.js on lines 5..13
src/components/WeeklyCalendar/styled/hour.js on lines 5..17

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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, value, defaultColors, variant, tabIndex, onChange, className, style } = props;
Severity: Major
Found in src/components/ColorPicker/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/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 17 locations. Consider refactoring.
Open

const StyledEmptyTitle = attachThemeAttrs(styled.h1)`
    font-size: ${FONT_SIZE_HEADING_MEDIUM};
    font-weight: 900;
    text-align: center;
    color: ${props => props.palette.text.main};
Severity: Major
Found in src/components/Table/body/styled/emptyTitle.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/VisualPickerOptionFooter/styled/description.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 17 locations. Consider refactoring.
Open

const StyledHeader = attachThemeAttrs(styled.h2)`
    font-size: ${FONT_SIZE_HEADING_SMALL};
    font-weight: 900;
    color: ${props => props.palette.text.main};
    margin: 0;
Severity: Major
Found in src/components/GMap/styled/header.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/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/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 13 locations. Consider refactoring.
Open

const StyledDayLabel = attachThemeAttrs(styled.div)`
    color: ${props => props.palette.text.main};
    font-size: ${FONT_SIZE_TEXT_LARGE};
    font-weight: 400;
    text-align: right;
Severity: Major
Found in src/components/MonthlyCalendar/styled/dayLabel.js and 12 other locations - About 40 mins to fix
src/components/Calendar/styled/day.js on lines 5..14
src/components/Calendar/styled/headerDays.js on lines 5..14
src/components/DatePickerModal/styled/index.js on lines 51..58
src/components/Drawer/styled/title.js on lines 5..18
src/components/MonthlyCalendar/styled/dayAdjacent.js on lines 5..18
src/components/PhoneInput/countriesDropdown/styled/search.js on lines 5..23
src/components/TimePicker/styled/dots.js on lines 5..18
src/components/TimePicker/styled/selectContent.js on lines 5..20
src/components/TimelineMarker/styled/label.js on lines 5..12
src/components/WeeklyCalendar/header/styled/hours.js on lines 5..14
src/components/WeeklyCalendar/styled/clock.js on lines 5..13
src/components/WeeklyCalendar/styled/hour.js on lines 5..17

Duplicated Code

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

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

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

export const StyledMonth = attachThemeAttrs(styled.h3)`
    font-size: ${FONT_SIZE_HEADING_MEDIUM};
    color: ${props => props.palette.text.main};
    text-transform: capitalize;
    font-weight: 500;
Severity: Major
Found in src/components/Calendar/doubleCalendar/styled/index.js and 16 other locations - About 40 mins to fix
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/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 17 locations. Consider refactoring.
Open

const StyledContent = attachThemeAttrs(styled.span)`
    font-size: ${FONT_SIZE_TEXT_MEDIUM};
    font-weight: 500;
    color: ${props => props.palette.text.main};
    display: flex;
Severity: Major
Found in src/components/Lookup/options/styled/content.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/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/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 17 locations. Consider refactoring.
Open

const StyledFooterTitle = attachThemeAttrs(styled.h1)`
    font-size: ${FONT_SIZE_HEADING_SMALL};
    font-weight: 600;
    color: ${props => props.palette.text.main};
    line-height: 1.5;
Severity: Major
Found in src/components/CarouselImage/styled/footerTitle.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/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/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 13 locations. Consider refactoring.
Open

const StyledClock = attachThemeAttrs(styled.div)`
    position: absolute;
    right: 8px;
    width: 57px;
    text-align: right;
Severity: Major
Found in src/components/WeeklyCalendar/styled/clock.js and 12 other locations - About 40 mins to fix
src/components/Calendar/styled/day.js on lines 5..14
src/components/Calendar/styled/headerDays.js on lines 5..14
src/components/DatePickerModal/styled/index.js on lines 51..58
src/components/Drawer/styled/title.js on lines 5..18
src/components/MonthlyCalendar/styled/dayAdjacent.js on lines 5..18
src/components/MonthlyCalendar/styled/dayLabel.js on lines 5..11
src/components/PhoneInput/countriesDropdown/styled/search.js on lines 5..23
src/components/TimePicker/styled/dots.js on lines 5..18
src/components/TimePicker/styled/selectContent.js on lines 5..20
src/components/TimelineMarker/styled/label.js on lines 5..12
src/components/WeeklyCalendar/header/styled/hours.js on lines 5..14
src/components/WeeklyCalendar/styled/hour.js on lines 5..17

Duplicated Code

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

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

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

const StyledDayAdjacent = attachThemeAttrs(styled.span)`
    display: block;
    color: ${props => props.palette.text.disabled};
    text-align: right;
    font-size: ${FONT_SIZE_TEXT_LARGE};
Severity: Major
Found in src/components/MonthlyCalendar/styled/dayAdjacent.js and 12 other locations - About 40 mins to fix
src/components/Calendar/styled/day.js on lines 5..14
src/components/Calendar/styled/headerDays.js on lines 5..14
src/components/DatePickerModal/styled/index.js on lines 51..58
src/components/Drawer/styled/title.js on lines 5..18
src/components/MonthlyCalendar/styled/dayLabel.js on lines 5..11
src/components/PhoneInput/countriesDropdown/styled/search.js on lines 5..23
src/components/TimePicker/styled/dots.js on lines 5..18
src/components/TimePicker/styled/selectContent.js on lines 5..20
src/components/TimelineMarker/styled/label.js on lines 5..12
src/components/WeeklyCalendar/header/styled/hours.js on lines 5..14
src/components/WeeklyCalendar/styled/clock.js on lines 5..13
src/components/WeeklyCalendar/styled/hour.js on lines 5..17

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 StyledHeaderLabel = attachThemeAttrs(styled.span)`
    font-size: ${FONT_SIZE_TEXT_MEDIUM};
    line-height: 1.25;
    color: ${props => props.palette.text.header};
    font-weight: 400;
Severity: Major
Found in src/components/MenuItem/styled/headerLabel.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/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/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 13 locations. Consider refactoring.
Open

const StyledTitle = attachThemeAttrs(styled.h1)`
    color: ${props => props.palette.text.label};
    margin: 0 1.25rem;
    padding: 1.375rem 0 1.325rem;
    display: block;
Severity: Major
Found in src/components/Drawer/styled/title.js and 12 other locations - About 40 mins to fix
src/components/Calendar/styled/day.js on lines 5..14
src/components/Calendar/styled/headerDays.js on lines 5..14
src/components/DatePickerModal/styled/index.js on lines 51..58
src/components/MonthlyCalendar/styled/dayAdjacent.js on lines 5..18
src/components/MonthlyCalendar/styled/dayLabel.js on lines 5..11
src/components/PhoneInput/countriesDropdown/styled/search.js on lines 5..23
src/components/TimePicker/styled/dots.js on lines 5..18
src/components/TimePicker/styled/selectContent.js on lines 5..20
src/components/TimelineMarker/styled/label.js on lines 5..12
src/components/WeeklyCalendar/header/styled/hours.js on lines 5..14
src/components/WeeklyCalendar/styled/clock.js on lines 5..13
src/components/WeeklyCalendar/styled/hour.js on lines 5..17

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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, label, title, children, variant, size, borderRadius } = props;
Severity: Major
Found in src/components/Badge/index.js and 10 other locations - About 40 mins to fix
src/components/CurrencyInput/hooks/useOptions.js on lines 4..13
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 17 locations. Consider refactoring.
Open

const StyledEmptyIcon = attachThemeAttrs(styled.span)`
    margin-bottom: ${MARGIN_MEDIUM};
    color: ${props => props.palette.border.divider};
`;
Severity: Major
Found in src/components/Table/body/styled/emptyIcon.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/emptyTitle.js on lines 5..12
src/components/VisualPickerOptionFooter/styled/description.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 17 locations. Consider refactoring.
Open

const StyledMonth = attachThemeAttrs(styled.h3)`
    font-size: ${FONT_SIZE_HEADING_MEDIUM};
    color: ${props => props.palette.text.main};
    text-transform: capitalize;
    font-weight: 500;
Severity: Major
Found in src/components/Calendar/styled/month.js and 16 other locations - About 40 mins to fix
src/components/Calendar/doubleCalendar/styled/index.js on lines 64..72
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/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

Severity
Category
Status
Source
Language