nexxtway/react-rainbow

View on GitHub

Showing 2,739 of 2,739 total issues

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

    it('should set minutes value to "02" when minutes input is focused and click up button and then type "2"', () => {
        const component = mount(<TimeSelect />);
        const upButton = component.find(ButtonIcon).at(0);
        const minutesInput = component.find('input').at(1);
        minutesInput.simulate('focus');
Severity: Major
Found in src/components/TimePicker/__test__/timeSelect.spec.js and 3 other locations - About 6 hrs to fix
src/components/TimePicker/__test__/timeSelect.spec.js on lines 144..157
src/components/TimePicker/__test__/timeSelect.spec.js on lines 171..184
src/components/TimePicker/__test__/timeSelect.spec.js on lines 356..369

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

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

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

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

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

Refactorings

Further Reading

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

    it('should set minutes value to "02" when minutes input is focused and click down button and then type "2"', () => {
        const component = mount(<TimeSelect />);
        const downButton = component.find(ButtonIcon).at(1);
        const minutesInput = component.find('input').at(1);
        minutesInput.simulate('focus');
Severity: Major
Found in src/components/TimePicker/__test__/timeSelect.spec.js and 3 other locations - About 6 hrs to fix
src/components/TimePicker/__test__/timeSelect.spec.js on lines 144..157
src/components/TimePicker/__test__/timeSelect.spec.js on lines 171..184
src/components/TimePicker/__test__/timeSelect.spec.js on lines 329..342

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

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

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

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

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

Refactorings

Further Reading

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

    it('should set hour value to "02" when hour input is focused, click down button and then type "2"', () => {
        const component = mount(<TimeSelect />);
        const downButton = component.find(ButtonIcon).at(1);
        const hourInput = component.find('input').at(0);
        hourInput.simulate('focus');
Severity: Major
Found in src/components/TimePicker/__test__/timeSelect.spec.js and 3 other locations - About 6 hrs to fix
src/components/TimePicker/__test__/timeSelect.spec.js on lines 144..157
src/components/TimePicker/__test__/timeSelect.spec.js on lines 329..342
src/components/TimePicker/__test__/timeSelect.spec.js on lines 356..369

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

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

const StyledAnchor = attachThemeAttrs(styled.a)`
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
Severity: Major
Found in src/components/VerticalItem/styled/anchor.js and 1 other location - About 6 hrs to fix
src/components/VerticalItem/styled/button.js on lines 5..46

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

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

const StyledAnchor = attachThemeAttrs(styled.button)`
    border: none;
    outline: 0;
    display: flex;
    align-items: center;
Severity: Major
Found in src/components/VerticalItem/styled/button.js and 1 other location - About 6 hrs to fix
src/components/VerticalItem/styled/anchor.js on lines 5..44

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

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

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

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

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

Refactorings

Further Reading

Function CurrencyInput has 157 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

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

    function SvgCzechRepublic({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <circle fill="#F0F0F0" cx={16.031} cy={15.969} r={15.969} />
    Severity: Major
    Found in src/components/PhoneInput/flags/CzechRepublic.js and 9 other locations - About 6 hrs to fix
    src/components/PhoneInput/flags/Cyprus.js on lines 4..20
    src/components/PhoneInput/flags/FaroeIslands.js on lines 4..20
    src/components/PhoneInput/flags/Guernsey.js on lines 4..20
    src/components/PhoneInput/flags/Ireland.js on lines 4..20
    src/components/PhoneInput/flags/Luxembourg.js on lines 4..20
    src/components/PhoneInput/flags/Madagascar.js on lines 4..20
    src/components/PhoneInput/flags/Maldives.js on lines 4..17
    src/components/PhoneInput/flags/Malta.js on lines 4..17
    src/components/PhoneInput/flags/Yemen.js on lines 4..20

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

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

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

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

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

    Refactorings

    Further Reading

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

    function SvgCyprus({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <circle fill="#FCFCFC" cx={16} cy={16} r={16} />
    Severity: Major
    Found in src/components/PhoneInput/flags/Cyprus.js and 9 other locations - About 6 hrs to fix
    src/components/PhoneInput/flags/CzechRepublic.js on lines 4..20
    src/components/PhoneInput/flags/FaroeIslands.js on lines 4..20
    src/components/PhoneInput/flags/Guernsey.js on lines 4..20
    src/components/PhoneInput/flags/Ireland.js on lines 4..20
    src/components/PhoneInput/flags/Luxembourg.js on lines 4..20
    src/components/PhoneInput/flags/Madagascar.js on lines 4..20
    src/components/PhoneInput/flags/Maldives.js on lines 4..17
    src/components/PhoneInput/flags/Malta.js on lines 4..17
    src/components/PhoneInput/flags/Yemen.js on lines 4..20

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

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

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

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

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

    Refactorings

    Further Reading

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

    function SvgYemen({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <circle fill="#F0F0F0" cx={16} cy={16} r={16} />
    Severity: Major
    Found in src/components/PhoneInput/flags/Yemen.js and 9 other locations - About 6 hrs to fix
    src/components/PhoneInput/flags/Cyprus.js on lines 4..20
    src/components/PhoneInput/flags/CzechRepublic.js on lines 4..20
    src/components/PhoneInput/flags/FaroeIslands.js on lines 4..20
    src/components/PhoneInput/flags/Guernsey.js on lines 4..20
    src/components/PhoneInput/flags/Ireland.js on lines 4..20
    src/components/PhoneInput/flags/Luxembourg.js on lines 4..20
    src/components/PhoneInput/flags/Madagascar.js on lines 4..20
    src/components/PhoneInput/flags/Maldives.js on lines 4..17
    src/components/PhoneInput/flags/Malta.js on lines 4..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 160.

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

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

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

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

    Refactorings

    Further Reading

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

    function SvgIreland({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <circle fill="#F0F0F0" cx={16} cy={16} r={16} />
    Severity: Major
    Found in src/components/PhoneInput/flags/Ireland.js and 9 other locations - About 6 hrs to fix
    src/components/PhoneInput/flags/Cyprus.js on lines 4..20
    src/components/PhoneInput/flags/CzechRepublic.js on lines 4..20
    src/components/PhoneInput/flags/FaroeIslands.js on lines 4..20
    src/components/PhoneInput/flags/Guernsey.js on lines 4..20
    src/components/PhoneInput/flags/Luxembourg.js on lines 4..20
    src/components/PhoneInput/flags/Madagascar.js on lines 4..20
    src/components/PhoneInput/flags/Maldives.js on lines 4..17
    src/components/PhoneInput/flags/Malta.js on lines 4..17
    src/components/PhoneInput/flags/Yemen.js on lines 4..20

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

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

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

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

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

    Refactorings

    Further Reading

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

    function SvgMaldives({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <circle fill="#D80027" cx={16} cy={16} r={16} />
    Severity: Major
    Found in src/components/PhoneInput/flags/Maldives.js and 9 other locations - About 6 hrs to fix
    src/components/PhoneInput/flags/Cyprus.js on lines 4..20
    src/components/PhoneInput/flags/CzechRepublic.js on lines 4..20
    src/components/PhoneInput/flags/FaroeIslands.js on lines 4..20
    src/components/PhoneInput/flags/Guernsey.js on lines 4..20
    src/components/PhoneInput/flags/Ireland.js on lines 4..20
    src/components/PhoneInput/flags/Luxembourg.js on lines 4..20
    src/components/PhoneInput/flags/Madagascar.js on lines 4..20
    src/components/PhoneInput/flags/Malta.js on lines 4..17
    src/components/PhoneInput/flags/Yemen.js on lines 4..20

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

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

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

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

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

    Refactorings

    Further Reading

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

    function SvgMadagascar({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <circle fill="#F0F0F0" cx={16} cy={16} r={16} />
    Severity: Major
    Found in src/components/PhoneInput/flags/Madagascar.js and 9 other locations - About 6 hrs to fix
    src/components/PhoneInput/flags/Cyprus.js on lines 4..20
    src/components/PhoneInput/flags/CzechRepublic.js on lines 4..20
    src/components/PhoneInput/flags/FaroeIslands.js on lines 4..20
    src/components/PhoneInput/flags/Guernsey.js on lines 4..20
    src/components/PhoneInput/flags/Ireland.js on lines 4..20
    src/components/PhoneInput/flags/Luxembourg.js on lines 4..20
    src/components/PhoneInput/flags/Maldives.js on lines 4..17
    src/components/PhoneInput/flags/Malta.js on lines 4..17
    src/components/PhoneInput/flags/Yemen.js on lines 4..20

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

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

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

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

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

    Refactorings

    Further Reading

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

    function SvgLuxembourg({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <circle fill="#F0F0F0" cx={16} cy={16} r={16} />
    Severity: Major
    Found in src/components/PhoneInput/flags/Luxembourg.js and 9 other locations - About 6 hrs to fix
    src/components/PhoneInput/flags/Cyprus.js on lines 4..20
    src/components/PhoneInput/flags/CzechRepublic.js on lines 4..20
    src/components/PhoneInput/flags/FaroeIslands.js on lines 4..20
    src/components/PhoneInput/flags/Guernsey.js on lines 4..20
    src/components/PhoneInput/flags/Ireland.js on lines 4..20
    src/components/PhoneInput/flags/Madagascar.js on lines 4..20
    src/components/PhoneInput/flags/Maldives.js on lines 4..17
    src/components/PhoneInput/flags/Malta.js on lines 4..17
    src/components/PhoneInput/flags/Yemen.js on lines 4..20

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

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

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

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

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

    Refactorings

    Further Reading

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

    function SvgGuernsey({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <circle fill="#F0F0F0" cx={16} cy={16} r={16} />
    Severity: Major
    Found in src/components/PhoneInput/flags/Guernsey.js and 9 other locations - About 6 hrs to fix
    src/components/PhoneInput/flags/Cyprus.js on lines 4..20
    src/components/PhoneInput/flags/CzechRepublic.js on lines 4..20
    src/components/PhoneInput/flags/FaroeIslands.js on lines 4..20
    src/components/PhoneInput/flags/Ireland.js on lines 4..20
    src/components/PhoneInput/flags/Luxembourg.js on lines 4..20
    src/components/PhoneInput/flags/Madagascar.js on lines 4..20
    src/components/PhoneInput/flags/Maldives.js on lines 4..17
    src/components/PhoneInput/flags/Malta.js on lines 4..17
    src/components/PhoneInput/flags/Yemen.js on lines 4..20

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

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

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

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

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

    Refactorings

    Further Reading

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

    function SvgMalta({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <circle fill="#F0F0F0" cx={16} cy={16} r={16} />
    Severity: Major
    Found in src/components/PhoneInput/flags/Malta.js and 9 other locations - About 6 hrs to fix
    src/components/PhoneInput/flags/Cyprus.js on lines 4..20
    src/components/PhoneInput/flags/CzechRepublic.js on lines 4..20
    src/components/PhoneInput/flags/FaroeIslands.js on lines 4..20
    src/components/PhoneInput/flags/Guernsey.js on lines 4..20
    src/components/PhoneInput/flags/Ireland.js on lines 4..20
    src/components/PhoneInput/flags/Luxembourg.js on lines 4..20
    src/components/PhoneInput/flags/Madagascar.js on lines 4..20
    src/components/PhoneInput/flags/Maldives.js on lines 4..17
    src/components/PhoneInput/flags/Yemen.js on lines 4..20

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

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

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

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

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

    Refactorings

    Further Reading

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

    function SvgFaroeIslands({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <circle fill="#F0F0F0" cx={16} cy={16} r={16} />
    Severity: Major
    Found in src/components/PhoneInput/flags/FaroeIslands.js and 9 other locations - About 6 hrs to fix
    src/components/PhoneInput/flags/Cyprus.js on lines 4..20
    src/components/PhoneInput/flags/CzechRepublic.js on lines 4..20
    src/components/PhoneInput/flags/Guernsey.js on lines 4..20
    src/components/PhoneInput/flags/Ireland.js on lines 4..20
    src/components/PhoneInput/flags/Luxembourg.js on lines 4..20
    src/components/PhoneInput/flags/Madagascar.js on lines 4..20
    src/components/PhoneInput/flags/Maldives.js on lines 4..17
    src/components/PhoneInput/flags/Malta.js on lines 4..17
    src/components/PhoneInput/flags/Yemen.js on lines 4..20

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

    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

            <svg width="14px" height="16px" viewBox="0 0 14 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink">
                <g id="components-default-page" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
                    <g id="Component-page-tabs-utils-V1" transform="translate(-330.000000, -388.000000)" fill="#01B6F5" fillRule="nonzero">
                        <g id="Group-27" transform="translate(272.000000, 256.000000)">
                            <g id="Group-25" transform="translate(58.000000, 131.000000)">
    library/styleguideComponents/RibbonRenderer/githubIcon.js on lines 8..28

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

    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

            <svg className={className} style={style} width="26px" height="26px" viewBox="0 0 26 26">
                <g id="components" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
                    <g
                        id="Components-Badge"
                        transform="translate(-934.000000, -29.000000)"
    Severity: Major
    Found in library/styleguideComponents/RibbonRenderer/githubIcon.js and 1 other location - About 6 hrs to fix
    library/styleguideComponents/ReactComponent/Utils/flaskIcon.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 160.

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

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

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

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

    Refactorings

    Further Reading

    Function PercentInput has 156 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

      Function resolveOptions has 155 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export default function resolveOptions(conditions) {
          const {
              disableAnimations,
              disableLines,
              disableCurves,
      Severity: Major
      Found in src/components/Chart/resolveOptions.js - About 6 hrs to fix
        Severity
        Category
        Status
        Source
        Language