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

function SvgUganda({ 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/Uganda.js and 1 other location - About 1 day to fix
src/components/PhoneInput/flags/SanMarino.js on lines 4..36

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

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

function SvgSanMarino({ 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/SanMarino.js and 1 other location - About 1 day to fix
src/components/PhoneInput/flags/Uganda.js on lines 4..39

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

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

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

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

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

Refactorings

Further Reading

Function ColorInput has 224 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const ColorInput = props => {
    const {
        id,
        className,
        style,
Severity: Major
Found in src/components/ColorInput/index.js - About 1 day to fix

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

    function SvgSouthSudan({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <circle fill="#F0F0F0" cx={16.031} cy={15.969} r={15.969} />
    Severity: Major
    Found in src/components/PhoneInput/flags/SouthSudan.js and 1 other location - About 1 day to fix
    src/components/PhoneInput/flags/SouthAfrica.js on lines 4..32

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

    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

    function SvgSouthAfrica({ className, style }) {
        return (
            <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                <g fillRule="nonzero" fill="none">
                    <circle fill="#F0F0F0" cx={16.031} cy={15.969} r={15.969} />
    Severity: Major
    Found in src/components/PhoneInput/flags/SouthAfrica.js and 1 other location - About 1 day to fix
    src/components/PhoneInput/flags/SouthSudan.js on lines 4..32

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

    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

        ${props => {
            const brandMainContrastText = props.palette.getContrastText(props.palette.brand.main);
            const brandDarkContrastText = props.palette.getContrastText(props.palette.brand.dark);
            return (
                props.variant === 'brand' &&
    Severity: Major
    Found in src/components/ButtonIcon/styled/button.js and 1 other location - About 1 day to fix
    src/components/ButtonIcon/styled/button.js on lines 210..242

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

    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

        ${props => {
            const successMainContrastText = props.palette.getContrastText(props.palette.success.main);
            const successDarkContrastText = props.palette.getContrastText(props.palette.success.dark);
    
            return (
    Severity: Major
    Found in src/components/ButtonIcon/styled/button.js and 1 other location - About 1 day to fix
    src/components/ButtonIcon/styled/button.js on lines 116..147

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

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

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

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

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

    Refactorings

    Further Reading

    Function render has 221 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        render() {
            const { activeTabName } = this.state;
            return (
                <div className="react-rainbow-getting-started_top-container">
                    <Tabset
    Severity: Major
    Found in library/pages/GettingStartedPage/index.js - About 1 day to fix

      Function CustomizationPage has 220 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export default function CustomizationPage(props) {
          const { examples, name, exampleMode, codeRevision } = props;
          const [activeTab, setActiveTab] = useState('overview');
          const example5Ref = useRef();
          const example7Ref = useRef();
      Severity: Major
      Found in library/pages/CustomizationPage/index.js - About 1 day to fix

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

        describe('Select base example', () => {
            beforeAll(async () => {
                await browser.url('/#!/Select/1');
            });
            beforeEach(async () => {
        Severity: Major
        Found in integration/specs/Select/select-1.spec.js and 5 other locations - About 1 day to fix
        integration/specs/Input/input-1.spec.js on lines 5..25
        integration/specs/MultiSelect/multiSelect-1.spec.js on lines 5..26
        integration/specs/MultiSelect/multiSelect-11.spec.js on lines 5..26
        integration/specs/StrongPasswordInput/strongPasswordInput-1.spec.js on lines 5..25
        integration/specs/Textarea/textarea-1.spec.js on lines 5..25

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

        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

        describe('Input base example', () => {
            beforeAll(async () => {
                await browser.url('/#!/Input/1');
            });
            beforeEach(async () => {
        Severity: Major
        Found in integration/specs/Input/input-1.spec.js and 5 other locations - About 1 day to fix
        integration/specs/MultiSelect/multiSelect-1.spec.js on lines 5..26
        integration/specs/MultiSelect/multiSelect-11.spec.js on lines 5..26
        integration/specs/Select/select-1.spec.js on lines 5..25
        integration/specs/StrongPasswordInput/strongPasswordInput-1.spec.js on lines 5..25
        integration/specs/Textarea/textarea-1.spec.js on lines 5..25

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

        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

        describe('MultiSelect base', () => {
            beforeAll(async () => {
                await browser.url('/#!/MultiSelect/13');
            });
            beforeEach(async () => {
        Severity: Major
        Found in integration/specs/MultiSelect/multiSelect-11.spec.js and 5 other locations - About 1 day to fix
        integration/specs/Input/input-1.spec.js on lines 5..25
        integration/specs/MultiSelect/multiSelect-1.spec.js on lines 5..26
        integration/specs/Select/select-1.spec.js on lines 5..25
        integration/specs/StrongPasswordInput/strongPasswordInput-1.spec.js on lines 5..25
        integration/specs/Textarea/textarea-1.spec.js on lines 5..25

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

        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

        describe('MultiSelect base', () => {
            beforeAll(async () => {
                await browser.url('/#!/MultiSelect/1');
            });
            beforeEach(async () => {
        Severity: Major
        Found in integration/specs/MultiSelect/multiSelect-1.spec.js and 5 other locations - About 1 day to fix
        integration/specs/Input/input-1.spec.js on lines 5..25
        integration/specs/MultiSelect/multiSelect-11.spec.js on lines 5..26
        integration/specs/Select/select-1.spec.js on lines 5..25
        integration/specs/StrongPasswordInput/strongPasswordInput-1.spec.js on lines 5..25
        integration/specs/Textarea/textarea-1.spec.js on lines 5..25

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

        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

        describe('Textarea base example', () => {
            beforeAll(async () => {
                await browser.url('/#!/Textarea/1');
            });
            beforeEach(async () => {
        Severity: Major
        Found in integration/specs/Textarea/textarea-1.spec.js and 5 other locations - About 1 day to fix
        integration/specs/Input/input-1.spec.js on lines 5..25
        integration/specs/MultiSelect/multiSelect-1.spec.js on lines 5..26
        integration/specs/MultiSelect/multiSelect-11.spec.js on lines 5..26
        integration/specs/Select/select-1.spec.js on lines 5..25
        integration/specs/StrongPasswordInput/strongPasswordInput-1.spec.js on lines 5..25

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

        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

        describe('StrongPasswordInput base example', () => {
            beforeAll(async () => {
                await browser.url('/#!/StrongPasswordInput/1');
            });
            beforeEach(async () => {
        integration/specs/Input/input-1.spec.js on lines 5..25
        integration/specs/MultiSelect/multiSelect-1.spec.js on lines 5..26
        integration/specs/MultiSelect/multiSelect-11.spec.js on lines 5..26
        integration/specs/Select/select-1.spec.js on lines 5..25
        integration/specs/Textarea/textarea-1.spec.js on lines 5..25

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

        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

        function SvgElSalvador({ className, style }) {
            return (
                <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                    <g fillRule="nonzero" fill="none">
                        <circle fill="#F0F0F0" cx={16} cy={16} r={16} />
        Severity: Major
        Found in src/components/PhoneInput/flags/ElSalvador.js and 1 other location - About 1 day to fix
        src/components/PhoneInput/flags/AmericanSamoa.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 209.

        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

        function SvgAmericanSamoa({ className, style }) {
            return (
                <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                    <g fillRule="nonzero" fill="none">
                        <circle fill="#F0F0F0" cx={16} cy={16} r={16} />
        Severity: Major
        Found in src/components/PhoneInput/flags/AmericanSamoa.js and 1 other location - About 1 day to fix
        src/components/PhoneInput/flags/ElSalvador.js on lines 4..21

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

        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

        function SvgMontenegro({ className, style }) {
            return (
                <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                    <g fillRule="nonzero" fill="none">
                        <circle fill="#FFDA44" cx={16} cy={16} r={16} />
        Severity: Major
        Found in src/components/PhoneInput/flags/Montenegro.js and 1 other location - About 1 day to fix
        src/components/PhoneInput/flags/Uruguay.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 209.

        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

        function SvgUruguay({ className, style }) {
            return (
                <svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
                    <g fillRule="nonzero" fill="none">
                        <circle fill="#F0F0F0" cx={16} cy={16} r={16} />
        Severity: Major
        Found in src/components/PhoneInput/flags/Uruguay.js and 1 other location - About 1 day to fix
        src/components/PhoneInput/flags/Montenegro.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 209.

        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 timePicker-1.spec.js has 529 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        const PageTimePicker = require('../../../src/components/TimePicker/pageObject');
        const {
            ARROW_LEFT_KEY,
            ARROW_RIGHT_KEY,
            ARROW_UP_KEY,
        Severity: Major
        Found in integration/specs/TimePicker/timePicker-1.spec.js - About 1 day to fix
          Severity
          Category
          Status
          Source
          Language