nexxtway/react-rainbow

View on GitHub

Showing 2,739 of 2,739 total issues

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

const StyledAnchor = attachThemeAttrs(styled.a)`
    font: inherit;
    background: none;
    border: none;
    padding: 0;
Severity: Major
Found in src/components/Breadcrumb/styled/anchor.js and 1 other location - About 5 hrs to fix
src/components/Breadcrumb/styled/button.js on lines 5..57

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

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

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

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

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

Refactorings

Further Reading

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

    it('should move from calendar controls to days when TAB key is pressed', async () => {
        const calendar = await PageCalendar(CALENDAR);
        await calendar.clickPrevMonthButton();
        await expect(await calendar.isDayFocused(1)).toBe(false);
        await browser.keys('Tab');
Severity: Major
Found in integration/specs/Calendar/calendar-1.spec.js and 1 other location - About 5 hrs to fix
integration/specs/Calendar/calendar-9.spec.js on lines 200..208

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

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

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

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

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

Refactorings

Further Reading

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

    it('should call the right event when shiftKey is not pressed, inputType is "checkbox" and isSelected is not passed', () => {
        const onDeselectRowMockFn = jest.fn();
        const onSelectRowMockFn = jest.fn();
        const component = mount(
            <SelectableCell
Severity: Major
Found in src/components/Table/body/__test__/selectableCell.spec.js and 1 other location - About 5 hrs to fix
src/components/Table/body/__test__/selectableCell.spec.js on lines 114..129

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

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

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

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

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

Refactorings

Further Reading

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

    it('should move from calendar controls to days when TAB key is pressed', async () => {
        const calendar = await PageCalendar(CALENDAR);
        await calendar.clickPrevMonthButton();
        await expect(await calendar.isLeftMonthDayFocused(1)).toBe(false);
        await browser.keys('Tab');
Severity: Major
Found in integration/specs/Calendar/calendar-9.spec.js and 1 other location - About 5 hrs to fix
integration/specs/Calendar/calendar-1.spec.js on lines 199..207

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

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

File button.js has 394 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import styled from 'styled-components';
import {
    BORDER_RADIUS_2,
    BORDER_RADIUS_SQUARE,
    BORDER_RADIUS_SEMI_SQUARE,
Severity: Minor
Found in src/components/ButtonIcon/styled/button.js - About 5 hrs to fix

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

    function SvgCoteDLvoire({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/CoteDLvoire.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Armenia.js on lines 4..23
    src/components/PhoneInput/flags/Belgium.js on lines 4..23
    src/components/PhoneInput/flags/Benin.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/Bulgaria.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/France.js on lines 4..23
    src/components/PhoneInput/flags/Gabon.js on lines 4..23
    src/components/PhoneInput/flags/Germany.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/HongKongSarChina.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Liechtenstein.js on lines 4..20
    src/components/PhoneInput/flags/Lithuania.js on lines 4..23
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Netherlands.js on lines 4..23
    src/components/PhoneInput/flags/Romania.js on lines 4..23
    src/components/PhoneInput/flags/Russia.js on lines 4..23
    src/components/PhoneInput/flags/SierraLeone.js on lines 4..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 144.

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

    function SvgArmenia({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/Armenia.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Belgium.js on lines 4..23
    src/components/PhoneInput/flags/Benin.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/Bulgaria.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/CoteDLvoire.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/France.js on lines 4..23
    src/components/PhoneInput/flags/Gabon.js on lines 4..23
    src/components/PhoneInput/flags/Germany.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/HongKongSarChina.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Liechtenstein.js on lines 4..20
    src/components/PhoneInput/flags/Lithuania.js on lines 4..23
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Netherlands.js on lines 4..23
    src/components/PhoneInput/flags/Romania.js on lines 4..23
    src/components/PhoneInput/flags/Russia.js on lines 4..23
    src/components/PhoneInput/flags/SierraLeone.js on lines 4..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 144.

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

    function SvgGermany({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/Germany.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Armenia.js on lines 4..23
    src/components/PhoneInput/flags/Belgium.js on lines 4..23
    src/components/PhoneInput/flags/Benin.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/Bulgaria.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/CoteDLvoire.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/France.js on lines 4..23
    src/components/PhoneInput/flags/Gabon.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/HongKongSarChina.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Liechtenstein.js on lines 4..20
    src/components/PhoneInput/flags/Lithuania.js on lines 4..23
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Netherlands.js on lines 4..23
    src/components/PhoneInput/flags/Romania.js on lines 4..23
    src/components/PhoneInput/flags/Russia.js on lines 4..23
    src/components/PhoneInput/flags/SierraLeone.js on lines 4..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 144.

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

    function SvgFrance({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/France.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Armenia.js on lines 4..23
    src/components/PhoneInput/flags/Belgium.js on lines 4..23
    src/components/PhoneInput/flags/Benin.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/Bulgaria.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/CoteDLvoire.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/Gabon.js on lines 4..23
    src/components/PhoneInput/flags/Germany.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/HongKongSarChina.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Liechtenstein.js on lines 4..20
    src/components/PhoneInput/flags/Lithuania.js on lines 4..23
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Netherlands.js on lines 4..23
    src/components/PhoneInput/flags/Romania.js on lines 4..23
    src/components/PhoneInput/flags/Russia.js on lines 4..23
    src/components/PhoneInput/flags/SierraLeone.js on lines 4..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 144.

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

    function SvgLithuania({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/Lithuania.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Armenia.js on lines 4..23
    src/components/PhoneInput/flags/Belgium.js on lines 4..23
    src/components/PhoneInput/flags/Benin.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/Bulgaria.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/CoteDLvoire.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/France.js on lines 4..23
    src/components/PhoneInput/flags/Gabon.js on lines 4..23
    src/components/PhoneInput/flags/Germany.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/HongKongSarChina.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Liechtenstein.js on lines 4..20
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Netherlands.js on lines 4..23
    src/components/PhoneInput/flags/Romania.js on lines 4..23
    src/components/PhoneInput/flags/Russia.js on lines 4..23
    src/components/PhoneInput/flags/SierraLeone.js on lines 4..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 144.

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

    function SvgLiechtenstein({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/Liechtenstein.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Armenia.js on lines 4..23
    src/components/PhoneInput/flags/Belgium.js on lines 4..23
    src/components/PhoneInput/flags/Benin.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/Bulgaria.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/CoteDLvoire.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/France.js on lines 4..23
    src/components/PhoneInput/flags/Gabon.js on lines 4..23
    src/components/PhoneInput/flags/Germany.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/HongKongSarChina.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Lithuania.js on lines 4..23
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Netherlands.js on lines 4..23
    src/components/PhoneInput/flags/Romania.js on lines 4..23
    src/components/PhoneInput/flags/Russia.js on lines 4..23
    src/components/PhoneInput/flags/SierraLeone.js on lines 4..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 144.

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

    function SvgGabon({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/Gabon.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Armenia.js on lines 4..23
    src/components/PhoneInput/flags/Belgium.js on lines 4..23
    src/components/PhoneInput/flags/Benin.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/Bulgaria.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/CoteDLvoire.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/France.js on lines 4..23
    src/components/PhoneInput/flags/Germany.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/HongKongSarChina.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Liechtenstein.js on lines 4..20
    src/components/PhoneInput/flags/Lithuania.js on lines 4..23
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Netherlands.js on lines 4..23
    src/components/PhoneInput/flags/Romania.js on lines 4..23
    src/components/PhoneInput/flags/Russia.js on lines 4..23
    src/components/PhoneInput/flags/SierraLeone.js on lines 4..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 144.

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

    function SvgHongKongSarChina({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/HongKongSarChina.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Armenia.js on lines 4..23
    src/components/PhoneInput/flags/Belgium.js on lines 4..23
    src/components/PhoneInput/flags/Benin.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/Bulgaria.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/CoteDLvoire.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/France.js on lines 4..23
    src/components/PhoneInput/flags/Gabon.js on lines 4..23
    src/components/PhoneInput/flags/Germany.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Liechtenstein.js on lines 4..20
    src/components/PhoneInput/flags/Lithuania.js on lines 4..23
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Netherlands.js on lines 4..23
    src/components/PhoneInput/flags/Romania.js on lines 4..23
    src/components/PhoneInput/flags/Russia.js on lines 4..23
    src/components/PhoneInput/flags/SierraLeone.js on lines 4..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 144.

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

    function SvgRomania({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/Romania.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Armenia.js on lines 4..23
    src/components/PhoneInput/flags/Belgium.js on lines 4..23
    src/components/PhoneInput/flags/Benin.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/Bulgaria.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/CoteDLvoire.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/France.js on lines 4..23
    src/components/PhoneInput/flags/Gabon.js on lines 4..23
    src/components/PhoneInput/flags/Germany.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/HongKongSarChina.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Liechtenstein.js on lines 4..20
    src/components/PhoneInput/flags/Lithuania.js on lines 4..23
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Netherlands.js on lines 4..23
    src/components/PhoneInput/flags/Russia.js on lines 4..23
    src/components/PhoneInput/flags/SierraLeone.js on lines 4..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 144.

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

    function SvgNetherlands({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/Netherlands.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Armenia.js on lines 4..23
    src/components/PhoneInput/flags/Belgium.js on lines 4..23
    src/components/PhoneInput/flags/Benin.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/Bulgaria.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/CoteDLvoire.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/France.js on lines 4..23
    src/components/PhoneInput/flags/Gabon.js on lines 4..23
    src/components/PhoneInput/flags/Germany.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/HongKongSarChina.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Liechtenstein.js on lines 4..20
    src/components/PhoneInput/flags/Lithuania.js on lines 4..23
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Romania.js on lines 4..23
    src/components/PhoneInput/flags/Russia.js on lines 4..23
    src/components/PhoneInput/flags/SierraLeone.js on lines 4..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 144.

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

    function SvgSierraLeone({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/SierraLeone.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Armenia.js on lines 4..23
    src/components/PhoneInput/flags/Belgium.js on lines 4..23
    src/components/PhoneInput/flags/Benin.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/Bulgaria.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/CoteDLvoire.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/France.js on lines 4..23
    src/components/PhoneInput/flags/Gabon.js on lines 4..23
    src/components/PhoneInput/flags/Germany.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/HongKongSarChina.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Liechtenstein.js on lines 4..20
    src/components/PhoneInput/flags/Lithuania.js on lines 4..23
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Netherlands.js on lines 4..23
    src/components/PhoneInput/flags/Romania.js on lines 4..23
    src/components/PhoneInput/flags/Russia.js on lines 4..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 144.

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

    function SvgBenin({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/Benin.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Armenia.js on lines 4..23
    src/components/PhoneInput/flags/Belgium.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/Bulgaria.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/CoteDLvoire.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/France.js on lines 4..23
    src/components/PhoneInput/flags/Gabon.js on lines 4..23
    src/components/PhoneInput/flags/Germany.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/HongKongSarChina.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Liechtenstein.js on lines 4..20
    src/components/PhoneInput/flags/Lithuania.js on lines 4..23
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Netherlands.js on lines 4..23
    src/components/PhoneInput/flags/Romania.js on lines 4..23
    src/components/PhoneInput/flags/Russia.js on lines 4..23
    src/components/PhoneInput/flags/SierraLeone.js on lines 4..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 144.

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

    function SvgBulgaria({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/Bulgaria.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Armenia.js on lines 4..23
    src/components/PhoneInput/flags/Belgium.js on lines 4..23
    src/components/PhoneInput/flags/Benin.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/CoteDLvoire.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/France.js on lines 4..23
    src/components/PhoneInput/flags/Gabon.js on lines 4..23
    src/components/PhoneInput/flags/Germany.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/HongKongSarChina.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Liechtenstein.js on lines 4..20
    src/components/PhoneInput/flags/Lithuania.js on lines 4..23
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Netherlands.js on lines 4..23
    src/components/PhoneInput/flags/Romania.js on lines 4..23
    src/components/PhoneInput/flags/Russia.js on lines 4..23
    src/components/PhoneInput/flags/SierraLeone.js on lines 4..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 144.

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

    function SvgRussia({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/Russia.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Armenia.js on lines 4..23
    src/components/PhoneInput/flags/Belgium.js on lines 4..23
    src/components/PhoneInput/flags/Benin.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/Bulgaria.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/CoteDLvoire.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/France.js on lines 4..23
    src/components/PhoneInput/flags/Gabon.js on lines 4..23
    src/components/PhoneInput/flags/Germany.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/HongKongSarChina.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Liechtenstein.js on lines 4..20
    src/components/PhoneInput/flags/Lithuania.js on lines 4..23
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Netherlands.js on lines 4..23
    src/components/PhoneInput/flags/Romania.js on lines 4..23
    src/components/PhoneInput/flags/SierraLeone.js on lines 4..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 144.

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

    function SvgBelgium({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <path
    Severity: Major
    Found in src/components/PhoneInput/flags/Belgium.js and 24 other locations - About 5 hrs to fix
    src/components/PhoneInput/flags/Armenia.js on lines 4..23
    src/components/PhoneInput/flags/Benin.js on lines 4..23
    src/components/PhoneInput/flags/Bolivia.js on lines 4..23
    src/components/PhoneInput/flags/Bulgaria.js on lines 4..23
    src/components/PhoneInput/flags/BurkinaFaso.js on lines 4..20
    src/components/PhoneInput/flags/Chad.js on lines 4..23
    src/components/PhoneInput/flags/Colombia.js on lines 4..23
    src/components/PhoneInput/flags/CongoBrazzaville.js on lines 4..23
    src/components/PhoneInput/flags/CoteDLvoire.js on lines 4..23
    src/components/PhoneInput/flags/Estonia.js on lines 4..23
    src/components/PhoneInput/flags/France.js on lines 4..23
    src/components/PhoneInput/flags/Gabon.js on lines 4..23
    src/components/PhoneInput/flags/Germany.js on lines 4..23
    src/components/PhoneInput/flags/Guinea.js on lines 4..23
    src/components/PhoneInput/flags/HongKongSarChina.js on lines 4..23
    src/components/PhoneInput/flags/Hungary.js on lines 4..23
    src/components/PhoneInput/flags/Italy.js on lines 4..23
    src/components/PhoneInput/flags/Liechtenstein.js on lines 4..20
    src/components/PhoneInput/flags/Lithuania.js on lines 4..23
    src/components/PhoneInput/flags/Mali.js on lines 4..23
    src/components/PhoneInput/flags/Netherlands.js on lines 4..23
    src/components/PhoneInput/flags/Romania.js on lines 4..23
    src/components/PhoneInput/flags/Russia.js on lines 4..23
    src/components/PhoneInput/flags/SierraLeone.js on lines 4..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 144.

    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