nexxtway/react-rainbow

View on GitHub
src/components/PhoneInput/flags/SaintBarthelemy.js

Summary

Maintainability
F
3 wks
Test Coverage

File SaintBarthelemy.js has 937 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import React from 'react';
import PropTypes from 'prop-types';

function SvgSaintBarthelemy({ className, style }) {
    return (
Severity: Major
Found in src/components/PhoneInput/flags/SaintBarthelemy.js - About 2 days to fix

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

                    <g>
                        <g transform="translate(13.437 17.159)">
                            <path
                                d="M.229 1.132h1.557v.364H.229v-.364zm0-.08C.226.71.178.359.032.058a.2.2 0 01.241.268A.2.2 0 11.316.7C.33.834.4.936.482.936c.064 0 .12-.06.15-.15.028.09.084.15.148.15C.869.937.942.819.949.67A.2.2 0 11.834.307a.2.2 0 11.346 0 .2.2 0 11-.114.363c.007.15.08.267.169.267.064 0 .12-.06.148-.15.03.09.085.15.15.15.082 0 .151-.102.166-.237a.2.2 0 11.043-.376.2.2 0 01.24-.267c-.145.3-.194.653-.196.996H.229z"
                                stroke="#806600"
    Severity: Major
    Found in src/components/PhoneInput/flags/SaintBarthelemy.js and 1 other location - About 5 days to fix
    src/components/PhoneInput/flags/SaintBarthelemy.js on lines 775..925

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

    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

                    <g>
                        <g transform="translate(16.58 17.159)">
                            <path
                                d="M.229 1.132h1.557v.364H.229v-.364zm0-.08C.226.71.178.359.032.058a.2.2 0 01.241.268A.2.2 0 11.316.7C.33.834.4.936.482.936c.064 0 .12-.06.15-.15.028.09.084.15.148.15C.869.937.942.819.949.67A.2.2 0 11.834.307a.2.2 0 11.346 0 .2.2 0 11-.114.363c.007.15.08.267.169.267.064 0 .12-.06.148-.15.03.09.085.15.15.15.082 0 .151-.102.166-.237a.2.2 0 11.043-.376.2.2 0 01.24-.267c-.145.3-.194.653-.196.996H.229z"
                                stroke="#806600"
    Severity: Major
    Found in src/components/PhoneInput/flags/SaintBarthelemy.js and 1 other location - About 5 days to fix
    src/components/PhoneInput/flags/SaintBarthelemy.js on lines 624..774

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

    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

                    <g>
                        <path
                            d="M9.201 18.73c-.011 1.25-.022 1.294-.022 1.294.547.536.612.732.774.906.21-.304.536-.182.536-.182.066-.288.415-.536.415-.536-.487-.039-1.327-.288-1.393-.387-.22-.33.083-1.332.083-1.332l-.393.237z"
                            fill="#EACE24"
                            fillRule="nonzero"
    Severity: Major
    Found in src/components/PhoneInput/flags/SaintBarthelemy.js and 1 other location - About 4 days to fix
    src/components/PhoneInput/flags/SaintBarthelemy.js on lines 311..475

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

    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

                    <g>
                        <path
                            d="M22.815 18.73c.011 1.25.022 1.294.022 1.294-.547.536-.612.732-.774.906-.21-.304-.536-.182-.536-.182-.066-.288-.415-.536-.415-.536.487-.039 1.327-.288 1.393-.387.22-.33-.083-1.332-.083-1.332l.393.237z"
                            fill="#EACE24"
                            fillRule="nonzero"
    Severity: Major
    Found in src/components/PhoneInput/flags/SaintBarthelemy.js and 1 other location - About 4 days to fix
    src/components/PhoneInput/flags/SaintBarthelemy.js on lines 146..310

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

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

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

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

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

    Refactorings

    Further Reading

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

                    <g fill="#EACE24" fillRule="nonzero" stroke="#806600">
                        <path d="M18.575 12.872c.01-.095.005-.275-.044-.357-.016-.027-.057-.06-.088-.058-.03.001-.074.01-.088.039a.252.252 0 00-.019.11c.004.04.05.124.05.124s-.164-.034-.22-.078a.414.414 0 01-.132-.195c-.006-.024-.03-.1 0-.192a.439.439 0 01.11-.161c.104-.093.308-.066.35-.043.054.03.121.096.144.156a1.898 1.898 0 01.094.474c.006.07.02.132.007.2-.008.038-.018.122-.039.178-.02.056-.053.084-.08.108-.058.051-.24.078-.24.078s.1-.13.126-.188c.03-.069.061-.12.07-.195M19.021 12.872c-.01-.095-.004-.275.044-.357.017-.027.057-.06.088-.058.031.001.074.01.088.039a.25.25 0 01.02.11c-.005.04-.051.124-.051.124s.164-.034.22-.078a.414.414 0 00.132-.195c.006-.024.03-.1 0-.192a.44.44 0 00-.11-.161c-.104-.093-.307-.066-.35-.043a.352.352 0 00-.144.156 1.904 1.904 0 00-.094.474c-.006.07-.02.132-.006.2.007.038.017.122.038.178.02.056.053.084.081.108.057.051.24.078.24.078s-.1-.13-.127-.188c-.03-.069-.061-.12-.069-.195" />
                        <path d="M18.797 13.58s.147-.124.171-.264c.022-.127-.075-.275-.083-.335-.03-.238.033-.556.039-.582.022-.103.05-.147.066-.18.01-.025.041-.073.072-.12.018-.027.057-.077.077-.128a.415.415 0 00.002-.271.284.284 0 00-.11-.139l-.131-.083c-.063-.041-.102-.177-.103-.177 0 0-.04.136-.103.177-.019.013-.067.044-.13.083a.283.283 0 00-.109.139.412.412 0 00.002.27c.02.052.06.102.077.129.031.047.062.095.073.12.015.033.043.077.065.18.006.026.068.344.039.582-.008.06-.107.208-.085.335.024.14.171.265.171.265" />
                        <path d="M19.127 12.965l-.07-.25h-.517l-.07.25.07.25h.516z" />
                    </g>
    Severity: Major
    Found in src/components/PhoneInput/flags/SaintBarthelemy.js and 5 other locations - About 1 hr to fix
    library/exampleComponents/Icons/application.js on lines 20..24
    library/exampleComponents/Icons/photographer.js on lines 49..57
    library/pages/components/FeatureList/images/testing.js on lines 129..133
    src/components/PhoneInput/flags/SaintBarthelemy.js on lines 476..480
    src/components/PhoneInput/flags/SaintBarthelemy.js on lines 481..485

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

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

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

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

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

    Refactorings

    Further Reading

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

                    <g fill="#EACE24" fillRule="nonzero" stroke="#806600">
                        <path d="M13.014 12.872c.01-.095.005-.275-.044-.357-.017-.027-.057-.06-.088-.058-.031.001-.074.01-.088.039a.252.252 0 00-.02.11c.005.04.051.124.051.124s-.164-.034-.22-.078a.414.414 0 01-.132-.195c-.006-.024-.03-.1 0-.192a.439.439 0 01.11-.161c.104-.093.307-.066.35-.043.054.03.121.096.144.156a1.898 1.898 0 01.094.474c.006.07.02.132.006.2-.007.038-.017.122-.038.178-.02.056-.053.084-.081.108-.057.051-.24.078-.24.078s.1-.13.127-.188c.03-.069.061-.12.069-.195M13.46 12.872c-.01-.095-.005-.275.044-.357.016-.027.057-.06.088-.058.031.001.074.01.088.039a.25.25 0 01.019.11c-.004.04-.05.124-.05.124s.164-.034.22-.078a.414.414 0 00.132-.195c.006-.024.03-.1 0-.192a.44.44 0 00-.11-.161c-.104-.093-.308-.066-.35-.043a.352.352 0 00-.144.156 1.904 1.904 0 00-.094.474c-.006.07-.021.132-.007.2.008.038.018.122.039.178.02.056.053.084.08.108.058.051.24.078.24.078s-.1-.13-.126-.188c-.03-.069-.061-.12-.069-.195" />
                        <path d="M13.236 13.58s.147-.124.171-.264c.022-.127-.075-.275-.083-.335-.03-.238.033-.556.039-.582.022-.103.05-.147.065-.18.011-.025.042-.073.073-.12.018-.027.057-.077.077-.128a.415.415 0 00.002-.271.284.284 0 00-.11-.139l-.131-.083c-.064-.041-.102-.177-.103-.177-.001 0-.04.136-.103.177-.02.013-.067.044-.13.083a.283.283 0 00-.109.139.412.412 0 00.002.27c.02.052.06.102.077.129.03.047.062.095.072.12.015.033.044.077.066.18.006.026.068.344.039.582-.008.06-.107.208-.086.335.025.14.172.265.172.265" />
                        <path d="M13.566 12.965l-.07-.25h-.517l-.071.25.07.25h.517z" />
                    </g>
    Severity: Major
    Found in src/components/PhoneInput/flags/SaintBarthelemy.js and 5 other locations - About 1 hr to fix
    library/exampleComponents/Icons/application.js on lines 20..24
    library/exampleComponents/Icons/photographer.js on lines 49..57
    library/pages/components/FeatureList/images/testing.js on lines 129..133
    src/components/PhoneInput/flags/SaintBarthelemy.js on lines 476..480
    src/components/PhoneInput/flags/SaintBarthelemy.js on lines 486..490

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

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

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

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

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

    Refactorings

    Further Reading

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

                    <g fill="#EACE24" fillRule="nonzero" stroke="#806600">
                        <path d="M15.795 12.872c.01-.095.004-.275-.044-.357-.017-.027-.057-.06-.089-.058-.03.001-.073.01-.088.039a.252.252 0 00-.019.11c.005.04.05.124.05.124s-.164-.034-.22-.078a.414.414 0 01-.132-.195c-.006-.024-.03-.1 0-.192a.439.439 0 01.11-.161c.105-.093.308-.066.35-.043.055.03.122.096.144.156a1.898 1.898 0 01.094.474c.006.07.021.132.007.2-.008.038-.017.122-.038.178-.021.056-.054.084-.082.108-.056.051-.239.078-.239.078s.1-.13.126-.188c.03-.069.062-.12.07-.195M16.24 12.872c-.01-.095-.004-.275.045-.357.016-.027.056-.06.088-.058.03.001.073.01.088.039a.25.25 0 01.019.11c-.005.04-.05.124-.05.124s.164-.034.22-.078a.414.414 0 00.132-.195c.006-.024.03-.1 0-.192a.44.44 0 00-.11-.161c-.105-.093-.308-.066-.35-.043a.352.352 0 00-.144.156 1.904 1.904 0 00-.094.474c-.006.07-.021.132-.007.2.008.038.017.122.038.178.021.056.054.084.082.108.056.051.239.078.239.078s-.1-.13-.126-.188c-.03-.069-.062-.12-.07-.195" />
                        <path d="M16.016 13.58s.147-.124.172-.264c.022-.127-.076-.275-.083-.335-.03-.238.033-.556.038-.582.023-.103.051-.147.066-.18.01-.025.042-.073.073-.12.017-.027.057-.077.077-.128a.415.415 0 00.002-.271.284.284 0 00-.11-.139l-.132-.083c-.063-.041-.102-.177-.103-.177 0 0-.04.136-.102.177l-.13.083a.283.283 0 00-.11.139.412.412 0 00.002.27c.02.052.06.102.077.129.031.047.062.095.073.12.015.033.043.077.066.18.005.026.068.344.038.582-.007.06-.107.208-.085.335.024.14.171.265.171.265" />
                        <path d="M16.347 12.965l-.071-.25h-.517l-.07.25.07.25h.517z" />
                    </g>
    Severity: Major
    Found in src/components/PhoneInput/flags/SaintBarthelemy.js and 5 other locations - About 1 hr to fix
    library/exampleComponents/Icons/application.js on lines 20..24
    library/exampleComponents/Icons/photographer.js on lines 49..57
    library/pages/components/FeatureList/images/testing.js on lines 129..133
    src/components/PhoneInput/flags/SaintBarthelemy.js on lines 481..485
    src/components/PhoneInput/flags/SaintBarthelemy.js on lines 486..490

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

    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

    There are no issues that match your filters.

    Category
    Status