nexxtway/react-rainbow

View on GitHub

Showing 2,739 of 2,739 total issues

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

function SvgMyanmar({ 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/Myanmar.js and 15 other locations - About 6 hrs to fix
src/components/PhoneInput/flags/Argentina.js on lines 4..27
src/components/PhoneInput/flags/Cameroon.js on lines 4..27
src/components/PhoneInput/flags/Canada.js on lines 4..27
src/components/PhoneInput/flags/Djibouti.js on lines 4..27
src/components/PhoneInput/flags/Eritrea.js on lines 4..27
src/components/PhoneInput/flags/Ghana.js on lines 4..27
src/components/PhoneInput/flags/Kuwait.js on lines 4..27
src/components/PhoneInput/flags/Lesotho.js on lines 4..27
src/components/PhoneInput/flags/Malawi.js on lines 4..27
src/components/PhoneInput/flags/MarshallIsland.js on lines 4..27
src/components/PhoneInput/flags/Mauritius.js on lines 4..27
src/components/PhoneInput/flags/Rwanda.js on lines 4..27
src/components/PhoneInput/flags/Sudan.js on lines 4..27
src/components/PhoneInput/flags/UnitedKingdom.js on lines 4..27
src/components/PhoneInput/flags/VaticanCity.js on lines 4..24

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

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

function SvgMarshallIsland({ 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/MarshallIsland.js and 15 other locations - About 6 hrs to fix
src/components/PhoneInput/flags/Argentina.js on lines 4..27
src/components/PhoneInput/flags/Cameroon.js on lines 4..27
src/components/PhoneInput/flags/Canada.js on lines 4..27
src/components/PhoneInput/flags/Djibouti.js on lines 4..27
src/components/PhoneInput/flags/Eritrea.js on lines 4..27
src/components/PhoneInput/flags/Ghana.js on lines 4..27
src/components/PhoneInput/flags/Kuwait.js on lines 4..27
src/components/PhoneInput/flags/Lesotho.js on lines 4..27
src/components/PhoneInput/flags/Malawi.js on lines 4..27
src/components/PhoneInput/flags/Mauritius.js on lines 4..27
src/components/PhoneInput/flags/Myanmar.js on lines 4..27
src/components/PhoneInput/flags/Rwanda.js on lines 4..27
src/components/PhoneInput/flags/Sudan.js on lines 4..27
src/components/PhoneInput/flags/UnitedKingdom.js on lines 4..27
src/components/PhoneInput/flags/VaticanCity.js on lines 4..24

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

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

function SvgEritrea({ 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/Eritrea.js and 15 other locations - About 6 hrs to fix
src/components/PhoneInput/flags/Argentina.js on lines 4..27
src/components/PhoneInput/flags/Cameroon.js on lines 4..27
src/components/PhoneInput/flags/Canada.js on lines 4..27
src/components/PhoneInput/flags/Djibouti.js on lines 4..27
src/components/PhoneInput/flags/Ghana.js on lines 4..27
src/components/PhoneInput/flags/Kuwait.js on lines 4..27
src/components/PhoneInput/flags/Lesotho.js on lines 4..27
src/components/PhoneInput/flags/Malawi.js on lines 4..27
src/components/PhoneInput/flags/MarshallIsland.js on lines 4..27
src/components/PhoneInput/flags/Mauritius.js on lines 4..27
src/components/PhoneInput/flags/Myanmar.js on lines 4..27
src/components/PhoneInput/flags/Rwanda.js on lines 4..27
src/components/PhoneInput/flags/Sudan.js on lines 4..27
src/components/PhoneInput/flags/UnitedKingdom.js on lines 4..27
src/components/PhoneInput/flags/VaticanCity.js on lines 4..24

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

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

function SvgMauritius({ 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/Mauritius.js and 15 other locations - About 6 hrs to fix
src/components/PhoneInput/flags/Argentina.js on lines 4..27
src/components/PhoneInput/flags/Cameroon.js on lines 4..27
src/components/PhoneInput/flags/Canada.js on lines 4..27
src/components/PhoneInput/flags/Djibouti.js on lines 4..27
src/components/PhoneInput/flags/Eritrea.js on lines 4..27
src/components/PhoneInput/flags/Ghana.js on lines 4..27
src/components/PhoneInput/flags/Kuwait.js on lines 4..27
src/components/PhoneInput/flags/Lesotho.js on lines 4..27
src/components/PhoneInput/flags/Malawi.js on lines 4..27
src/components/PhoneInput/flags/MarshallIsland.js on lines 4..27
src/components/PhoneInput/flags/Myanmar.js on lines 4..27
src/components/PhoneInput/flags/Rwanda.js on lines 4..27
src/components/PhoneInput/flags/Sudan.js on lines 4..27
src/components/PhoneInput/flags/UnitedKingdom.js on lines 4..27
src/components/PhoneInput/flags/VaticanCity.js on lines 4..24

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

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

function SvgMalawi({ 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/Malawi.js and 15 other locations - About 6 hrs to fix
src/components/PhoneInput/flags/Argentina.js on lines 4..27
src/components/PhoneInput/flags/Cameroon.js on lines 4..27
src/components/PhoneInput/flags/Canada.js on lines 4..27
src/components/PhoneInput/flags/Djibouti.js on lines 4..27
src/components/PhoneInput/flags/Eritrea.js on lines 4..27
src/components/PhoneInput/flags/Ghana.js on lines 4..27
src/components/PhoneInput/flags/Kuwait.js on lines 4..27
src/components/PhoneInput/flags/Lesotho.js on lines 4..27
src/components/PhoneInput/flags/MarshallIsland.js on lines 4..27
src/components/PhoneInput/flags/Mauritius.js on lines 4..27
src/components/PhoneInput/flags/Myanmar.js on lines 4..27
src/components/PhoneInput/flags/Rwanda.js on lines 4..27
src/components/PhoneInput/flags/Sudan.js on lines 4..27
src/components/PhoneInput/flags/UnitedKingdom.js on lines 4..27
src/components/PhoneInput/flags/VaticanCity.js on lines 4..24

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

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

function SvgSudan({ 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/Sudan.js and 15 other locations - About 6 hrs to fix
src/components/PhoneInput/flags/Argentina.js on lines 4..27
src/components/PhoneInput/flags/Cameroon.js on lines 4..27
src/components/PhoneInput/flags/Canada.js on lines 4..27
src/components/PhoneInput/flags/Djibouti.js on lines 4..27
src/components/PhoneInput/flags/Eritrea.js on lines 4..27
src/components/PhoneInput/flags/Ghana.js on lines 4..27
src/components/PhoneInput/flags/Kuwait.js on lines 4..27
src/components/PhoneInput/flags/Lesotho.js on lines 4..27
src/components/PhoneInput/flags/Malawi.js on lines 4..27
src/components/PhoneInput/flags/MarshallIsland.js on lines 4..27
src/components/PhoneInput/flags/Mauritius.js on lines 4..27
src/components/PhoneInput/flags/Myanmar.js on lines 4..27
src/components/PhoneInput/flags/Rwanda.js on lines 4..27
src/components/PhoneInput/flags/UnitedKingdom.js on lines 4..27
src/components/PhoneInput/flags/VaticanCity.js on lines 4..24

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

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

function SvgLesotho({ 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/Lesotho.js and 15 other locations - About 6 hrs to fix
src/components/PhoneInput/flags/Argentina.js on lines 4..27
src/components/PhoneInput/flags/Cameroon.js on lines 4..27
src/components/PhoneInput/flags/Canada.js on lines 4..27
src/components/PhoneInput/flags/Djibouti.js on lines 4..27
src/components/PhoneInput/flags/Eritrea.js on lines 4..27
src/components/PhoneInput/flags/Ghana.js on lines 4..27
src/components/PhoneInput/flags/Kuwait.js on lines 4..27
src/components/PhoneInput/flags/Malawi.js on lines 4..27
src/components/PhoneInput/flags/MarshallIsland.js on lines 4..27
src/components/PhoneInput/flags/Mauritius.js on lines 4..27
src/components/PhoneInput/flags/Myanmar.js on lines 4..27
src/components/PhoneInput/flags/Rwanda.js on lines 4..27
src/components/PhoneInput/flags/Sudan.js on lines 4..27
src/components/PhoneInput/flags/UnitedKingdom.js on lines 4..27
src/components/PhoneInput/flags/VaticanCity.js on lines 4..24

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

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

function SvgDjibouti({ 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/Djibouti.js and 15 other locations - About 6 hrs to fix
src/components/PhoneInput/flags/Argentina.js on lines 4..27
src/components/PhoneInput/flags/Cameroon.js on lines 4..27
src/components/PhoneInput/flags/Canada.js on lines 4..27
src/components/PhoneInput/flags/Eritrea.js on lines 4..27
src/components/PhoneInput/flags/Ghana.js on lines 4..27
src/components/PhoneInput/flags/Kuwait.js on lines 4..27
src/components/PhoneInput/flags/Lesotho.js on lines 4..27
src/components/PhoneInput/flags/Malawi.js on lines 4..27
src/components/PhoneInput/flags/MarshallIsland.js on lines 4..27
src/components/PhoneInput/flags/Mauritius.js on lines 4..27
src/components/PhoneInput/flags/Myanmar.js on lines 4..27
src/components/PhoneInput/flags/Rwanda.js on lines 4..27
src/components/PhoneInput/flags/Sudan.js on lines 4..27
src/components/PhoneInput/flags/UnitedKingdom.js on lines 4..27
src/components/PhoneInput/flags/VaticanCity.js on lines 4..24

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

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

function SvgRwanda({ 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/Rwanda.js and 15 other locations - About 6 hrs to fix
src/components/PhoneInput/flags/Argentina.js on lines 4..27
src/components/PhoneInput/flags/Cameroon.js on lines 4..27
src/components/PhoneInput/flags/Canada.js on lines 4..27
src/components/PhoneInput/flags/Djibouti.js on lines 4..27
src/components/PhoneInput/flags/Eritrea.js on lines 4..27
src/components/PhoneInput/flags/Ghana.js on lines 4..27
src/components/PhoneInput/flags/Kuwait.js on lines 4..27
src/components/PhoneInput/flags/Lesotho.js on lines 4..27
src/components/PhoneInput/flags/Malawi.js on lines 4..27
src/components/PhoneInput/flags/MarshallIsland.js on lines 4..27
src/components/PhoneInput/flags/Mauritius.js on lines 4..27
src/components/PhoneInput/flags/Myanmar.js on lines 4..27
src/components/PhoneInput/flags/Sudan.js on lines 4..27
src/components/PhoneInput/flags/UnitedKingdom.js on lines 4..27
src/components/PhoneInput/flags/VaticanCity.js on lines 4..24

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

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

function SvgCanada({ 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/Canada.js and 15 other locations - About 6 hrs to fix
src/components/PhoneInput/flags/Argentina.js on lines 4..27
src/components/PhoneInput/flags/Cameroon.js on lines 4..27
src/components/PhoneInput/flags/Djibouti.js on lines 4..27
src/components/PhoneInput/flags/Eritrea.js on lines 4..27
src/components/PhoneInput/flags/Ghana.js on lines 4..27
src/components/PhoneInput/flags/Kuwait.js on lines 4..27
src/components/PhoneInput/flags/Lesotho.js on lines 4..27
src/components/PhoneInput/flags/Malawi.js on lines 4..27
src/components/PhoneInput/flags/MarshallIsland.js on lines 4..27
src/components/PhoneInput/flags/Mauritius.js on lines 4..27
src/components/PhoneInput/flags/Myanmar.js on lines 4..27
src/components/PhoneInput/flags/Rwanda.js on lines 4..27
src/components/PhoneInput/flags/Sudan.js on lines 4..27
src/components/PhoneInput/flags/UnitedKingdom.js on lines 4..27
src/components/PhoneInput/flags/VaticanCity.js on lines 4..24

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

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

function SvgCameroon({ 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/Cameroon.js and 15 other locations - About 6 hrs to fix
src/components/PhoneInput/flags/Argentina.js on lines 4..27
src/components/PhoneInput/flags/Canada.js on lines 4..27
src/components/PhoneInput/flags/Djibouti.js on lines 4..27
src/components/PhoneInput/flags/Eritrea.js on lines 4..27
src/components/PhoneInput/flags/Ghana.js on lines 4..27
src/components/PhoneInput/flags/Kuwait.js on lines 4..27
src/components/PhoneInput/flags/Lesotho.js on lines 4..27
src/components/PhoneInput/flags/Malawi.js on lines 4..27
src/components/PhoneInput/flags/MarshallIsland.js on lines 4..27
src/components/PhoneInput/flags/Mauritius.js on lines 4..27
src/components/PhoneInput/flags/Myanmar.js on lines 4..27
src/components/PhoneInput/flags/Rwanda.js on lines 4..27
src/components/PhoneInput/flags/Sudan.js on lines 4..27
src/components/PhoneInput/flags/UnitedKingdom.js on lines 4..27
src/components/PhoneInput/flags/VaticanCity.js on lines 4..24

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

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 have an input active and minusButton and plusButton disabled', () => {
        const component = mount(<CounterInput readOnly />);
        const button = component.find('button');
        const input = component.find('input');
        const minusButton = button.at(0);
Severity: Major
Found in src/components/CounterInput/__test__/counterInput.spec.js and 1 other location - About 6 hrs to fix
src/components/CounterInput/__test__/counterInput.spec.js on lines 81..90

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

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 return false when selectionType is range and date is not the same as range boundaries', () => {
        const date1 = new Date(2019, 1, 2);
        const date2 = new Date(2019, 1, 12);
        const value = new Date(2019, 1, 1);
        const range = [new Date(2019, 1, 1), new Date(2019, 1, 15)];
src/components/Calendar/helpers/__test__/shouldDateBeSelected.spec.js on lines 13..22

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

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 return true when selectionType is range and date is same as range boundaries', () => {
        const date1 = new Date(2019, 1, 1);
        const date2 = new Date(2019, 1, 15);
        const value = new Date(2019, 1, 1);
        const range = [new Date(2019, 1, 1), new Date(2019, 1, 15)];
src/components/Calendar/helpers/__test__/shouldDateBeSelected.spec.js on lines 32..41

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

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

export default function LeftThinChevron(props) {
    const { className, style } = props;
    return (
        <svg
            className={className}
Severity: Major
Found in src/components/Tabset/leftThinChevron.js and 1 other location - About 6 hrs to fix
src/components/Tabset/rightThinChevron.js on lines 4..26

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

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

class PageButtonMenu {
    /**
     * Create a new ButtonMenu page object.
     * @constructor
     * @param {string} rootElement - The selector of the ButtonMenu root element.
Severity: Major
Found in src/components/ButtonMenu/pageObject/index.js and 1 other location - About 6 hrs to fix
src/components/AvatarMenu/pageObject/index.js on lines 8..55

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

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

class PageAvatarMenu {
    /**
     * Create a new AvatarMenu page object.
     * @constructor
     * @param {string} rootElement - The selector of the AvatarMenu root element.
Severity: Major
Found in src/components/AvatarMenu/pageObject/index.js and 1 other location - About 6 hrs to fix
src/components/ButtonMenu/pageObject/index.js on lines 8..53

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

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 have an input, minusButton and plusButton disabled', () => {
        const component = mount(<CounterInput disabled />);
        const button = component.find('button');
        const input = component.find('input');
        const minusButton = button.at(0);
Severity: Major
Found in src/components/CounterInput/__test__/counterInput.spec.js and 1 other location - About 6 hrs to fix
src/components/CounterInput/__test__/counterInput.spec.js on lines 92..101

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

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

export default function RightThinChevron(props) {
    const { className, style } = props;
    return (
        <svg
            className={className}
Severity: Major
Found in src/components/Tabset/rightThinChevron.js and 1 other location - About 6 hrs to fix
src/components/Tabset/leftThinChevron.js on lines 4..26

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

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 up button and then type "2"', () => {
        const component = mount(<TimeSelect />);
        const upButton = component.find(ButtonIcon).at(0);
        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 171..184
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

Severity
Category
Status
Source
Language