nexxtway/react-rainbow

View on GitHub

Showing 2,739 of 2,739 total issues

File index.js has 498 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* eslint-disable react/sort-comp */
/* eslint-disable no-console */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ThemeProvider } from 'styled-components';
Severity: Minor
Found in src/components/Table/index.js - About 7 hrs to fix

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

    function SvgSaoTomeAndPrince({ 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.031} cy={15.969} r={15.969} />
    Severity: Major
    Found in src/components/PhoneInput/flags/SaoTomeAndPrince.js and 4 other locations - About 7 hrs to fix
    src/components/PhoneInput/flags/Aruba.js on lines 4..23
    src/components/PhoneInput/flags/Guatemala.js on lines 4..23
    src/components/PhoneInput/flags/PuertoRico.js on lines 4..23
    src/components/PhoneInput/flags/Togo.js on lines 4..23

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 191.

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

    function SvgTogo({ 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/Togo.js and 4 other locations - About 7 hrs to fix
    src/components/PhoneInput/flags/Aruba.js on lines 4..23
    src/components/PhoneInput/flags/Guatemala.js on lines 4..23
    src/components/PhoneInput/flags/PuertoRico.js on lines 4..23
    src/components/PhoneInput/flags/SaoTomeAndPrince.js on lines 4..23

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 191.

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

    function SvgGuatemala({ 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/Guatemala.js and 4 other locations - About 7 hrs to fix
    src/components/PhoneInput/flags/Aruba.js on lines 4..23
    src/components/PhoneInput/flags/PuertoRico.js on lines 4..23
    src/components/PhoneInput/flags/SaoTomeAndPrince.js on lines 4..23
    src/components/PhoneInput/flags/Togo.js on lines 4..23

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 191.

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

    function SvgAruba({ 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/Aruba.js and 4 other locations - About 7 hrs to fix
    src/components/PhoneInput/flags/Guatemala.js on lines 4..23
    src/components/PhoneInput/flags/PuertoRico.js on lines 4..23
    src/components/PhoneInput/flags/SaoTomeAndPrince.js on lines 4..23
    src/components/PhoneInput/flags/Togo.js on lines 4..23

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 191.

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

    function SvgSyria({ 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/Syria.js and 2 other locations - About 7 hrs to fix
    src/components/PhoneInput/flags/Iraq.js on lines 4..23
    src/components/PhoneInput/flags/Philippines.js on lines 4..23

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 191.

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

    function SvgPuertoRico({ 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/PuertoRico.js and 4 other locations - About 7 hrs to fix
    src/components/PhoneInput/flags/Aruba.js on lines 4..23
    src/components/PhoneInput/flags/Guatemala.js on lines 4..23
    src/components/PhoneInput/flags/SaoTomeAndPrince.js on lines 4..23
    src/components/PhoneInput/flags/Togo.js on lines 4..23

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 191.

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

    function SvgIraq({ 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/Iraq.js and 2 other locations - About 7 hrs to fix
    src/components/PhoneInput/flags/Philippines.js on lines 4..23
    src/components/PhoneInput/flags/Syria.js on lines 4..23

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 191.

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

    function SvgPhilippines({ 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/Philippines.js and 2 other locations - About 7 hrs to fix
    src/components/PhoneInput/flags/Iraq.js on lines 4..23
    src/components/PhoneInput/flags/Syria.js on lines 4..23

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 191.

    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 PageVerticalNavigation {
        /**
         * Create a new VerticalNavigation page object.
         * @constructor
         * @param {string} rootElement - The selector of the VerticalNavigation root element.
    Severity: Major
    Found in src/components/VerticalNavigation/pageObject/index.js and 1 other location - About 7 hrs to fix
    src/components/CarouselCard/pageObject/index.js on lines 9..48

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

    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 PageCarouselCard {
        /**
         * Create a new CarouselCard page object.
         * @constructor
         * @param {string} rootElement - The selector of the CarouselCard root element.
    Severity: Major
    Found in src/components/CarouselCard/pageObject/index.js and 1 other location - About 7 hrs to fix
    src/components/VerticalNavigation/pageObject/index.js on lines 8..49

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

    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 SvgAzerbaijan({ 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/Azerbaijan.js and 1 other location - About 7 hrs to fix
    src/components/PhoneInput/flags/Libya.js on lines 4..27

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

    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 SvgLibya({ 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/Libya.js and 1 other location - About 7 hrs to fix
    src/components/PhoneInput/flags/Azerbaijan.js on lines 4..27

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

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

    const PencilBorder = props => {
        const { className, style } = props;
        return (
            <svg className={className} style={style} width="14px" height="14px" viewBox="0 0 14 14">
                <g id="app-import-export" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
    Severity: Major
    Found in library/exampleComponents/Icons/pencilBorder.js and 2 other locations - About 7 hrs to fix
    library/exampleComponents/Icons/trashBorder.js on lines 4..25
    src/components/Input/inputBase/icons/eye.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 186.

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

    const EyeIcon = props => {
        const { className, style } = props;
    
        return (
            <svg className={className} style={style} width="16px" height="10px" viewBox="0 0 16 10">
    Severity: Major
    Found in src/components/Input/inputBase/icons/eye.js and 2 other locations - About 7 hrs to fix
    library/exampleComponents/Icons/pencilBorder.js on lines 4..25
    library/exampleComponents/Icons/trashBorder.js on lines 4..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 186.

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

    const TrashBorder = props => {
        const { className, style } = props;
        return (
            <svg className={className} style={style} width="13px" height="14px" viewBox="0 0 13 14">
                <g id="app-import-export" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
    Severity: Major
    Found in library/exampleComponents/Icons/trashBorder.js and 2 other locations - About 7 hrs to fix
    library/exampleComponents/Icons/pencilBorder.js on lines 4..25
    src/components/Input/inputBase/icons/eye.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 186.

    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 SvgMartinique({ 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/Martinique.js and 1 other location - About 7 hrs to fix
    src/components/PhoneInput/flags/Curacao.js on lines 4..18

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

    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 change to next year when ALT + PAGEDOWN keys are pressed', async () => {
            const calendar = await PageCalendar(CALENDAR);
            await calendar.clickLeftMonthDay(10);
            await browser.keys(['Alt', 'PageDown']);
            await expect(await calendar.isLeftMonthDayFocused(10)).toBe(true);
    Severity: Major
    Found in integration/specs/Calendar/calendar-9.spec.js and 1 other location - About 7 hrs to fix
    integration/specs/Calendar/calendar-9.spec.js on lines 127..136

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

    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 id="Group-25">
                                    <g id="Group-18" transform="translate(21.000000, 98.000000)">
                                        <g id="video" transform="translate(0.000000, 3.000000)">
                                            <path
                                                d="M12,0 L6.02054795,11.9589041 L12,23.9178082 L12,28.0547945 C18.9184658,25.9741918 23.9589041,19.5550685 23.9589041,11.9589041 C23.9589041,5.35419178 18.6047123,0 12,0 Z"
    Severity: Major
    Found in library/exampleComponents/Icons/hangouts.js and 1 other location - About 7 hrs to fix
    library/exampleComponents/Icons/trash.js on lines 21..56

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

    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 id="Group-33" transform="translate(204.000000, 2851.000000)">
                            <g id="Group-32" transform="translate(823.000000, 110.000000)">
                                <g id="trash" transform="translate(17.000000, 83.000000)">
                                    <path
                                        d="M10.7352624,3.47564695 L6.23394503,3.47564695 C5.90409104,3.47564695 5.63675533,3.2133484 5.63675533,2.88970945 L5.63675533,1.09542848 C5.63675533,0.491485586 6.13721276,0 6.75244256,0 L10.2166094,0 C10.8318391,0 11.3324521,0.491485586 11.3324521,1.09542848 L11.3324521,2.88970945 C11.3324521,3.2133484 11.0649608,3.47564695 10.7352624,3.47564695 L10.7352624,3.47564695 Z M6.83113472,2.30377195 L10.1380727,2.30377195 L10.1380727,1.171875 L6.83113472,1.171875 L6.83113472,2.30377195 Z"
    Severity: Major
    Found in library/exampleComponents/Icons/trash.js and 1 other location - About 7 hrs to fix
    library/exampleComponents/Icons/hangouts.js on lines 25..60

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

    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