nexxtway/react-rainbow

View on GitHub

Showing 2,739 of 2,739 total issues

Function SelectableCell has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function SelectableCell(props) {
    const { isSelected, isDisabled, tableId, onSelectRow, onDeselectRow, inputType } = props;
    const name = `${tableId}-options`;
    const isRadio = inputType === 'radio';

Severity: Minor
Found in src/components/Table/body/selectableCell.js - About 1 hr to fix

    Function InternalTooltip has 43 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const InternalTooltip = React.forwardRef((props, ref) => {
        const [pos, setPos] = useState();
        const { className, style, children, isVisible, preferredPosition, triggerElementRef } = props;
        const tooltipRef = useRef();
    
    
    Severity: Minor
    Found in src/components/InternalTooltip/index.js - About 1 hr to fix

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

          render() {
              const {
                  title,
                  tabIndex,
                  onClick,
      Severity: Minor
      Found in src/components/AvatarMenu/avatarButton.js - About 1 hr to fix

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

            it('should set disable to true when it is passed', () => {
                const component = mount(<Button label="my label" disabled />);
        
                expect(component.find('button').prop('disabled')).toBe(true);
            });
        Severity: Major
        Found in src/components/Button/__test__/button.spec.js and 6 other locations - About 1 hr to fix
        src/components/Breadcrumb/__test__/breadcrumb.spec.js on lines 34..38
        src/components/Button/__test__/button.spec.js on lines 45..49
        src/components/Button/__test__/button.spec.js on lines 59..63
        src/components/Input/label/__test__/label.spec.js on lines 18..21
        src/components/Select/__test__/select.spec.js on lines 28..31
        src/components/Table/head/__test__/header.spec.js on lines 47..50

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

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

                it('should set the required prop passed in the RequiredAsterisk component', () => {
                    const component = mount(<Label label="Input Label" required />);
                    expect(component.find('RequiredAsterisk').prop('required')).toBe(true);
                });
        Severity: Major
        Found in src/components/Input/label/__test__/label.spec.js and 6 other locations - About 1 hr to fix
        src/components/Breadcrumb/__test__/breadcrumb.spec.js on lines 34..38
        src/components/Button/__test__/button.spec.js on lines 25..29
        src/components/Button/__test__/button.spec.js on lines 45..49
        src/components/Button/__test__/button.spec.js on lines 59..63
        src/components/Select/__test__/select.spec.js on lines 28..31
        src/components/Table/head/__test__/header.spec.js on lines 47..50

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

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

            it('should set the required prop passed in the RequiredAsterisk component', () => {
                const component = mount(<Select label="Select Label" required />);
                expect(component.find('RequiredAsterisk').prop('required')).toBe(true);
            });
        Severity: Major
        Found in src/components/Select/__test__/select.spec.js and 6 other locations - About 1 hr to fix
        src/components/Breadcrumb/__test__/breadcrumb.spec.js on lines 34..38
        src/components/Button/__test__/button.spec.js on lines 25..29
        src/components/Button/__test__/button.spec.js on lines 45..49
        src/components/Button/__test__/button.spec.js on lines 59..63
        src/components/Input/label/__test__/label.spec.js on lines 18..21
        src/components/Table/head/__test__/header.spec.js on lines 47..50

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

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

            it('should set disable to true when isLoading is passed', () => {
                const component = mount(<Button label="my label" isLoading />);
        
                expect(component.find('button').prop('disabled')).toBe(true);
            });
        Severity: Major
        Found in src/components/Button/__test__/button.spec.js and 6 other locations - About 1 hr to fix
        src/components/Breadcrumb/__test__/breadcrumb.spec.js on lines 34..38
        src/components/Button/__test__/button.spec.js on lines 25..29
        src/components/Button/__test__/button.spec.js on lines 45..49
        src/components/Input/label/__test__/label.spec.js on lines 18..21
        src/components/Select/__test__/select.spec.js on lines 28..31
        src/components/Table/head/__test__/header.spec.js on lines 47..50

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

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

            it('should set the right aria-disabled value when the disabled is passed', () => {
                const component = mount(<Breadcrumb label="index" disabled />);
        
                expect(component.find('button').prop('aria-disabled')).toBe(true);
            });
        Severity: Major
        Found in src/components/Breadcrumb/__test__/breadcrumb.spec.js and 6 other locations - About 1 hr to fix
        src/components/Button/__test__/button.spec.js on lines 25..29
        src/components/Button/__test__/button.spec.js on lines 45..49
        src/components/Button/__test__/button.spec.js on lines 59..63
        src/components/Input/label/__test__/label.spec.js on lines 18..21
        src/components/Select/__test__/select.spec.js on lines 28..31
        src/components/Table/head/__test__/header.spec.js on lines 47..50

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

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

            it('should set isResizable to false in ResizeBar component when resizeColumnDisabled is passed', () => {
                const component = mount(<Header sortDirection="asc" resizeColumnDisabled />);
                expect(component.find('ResizeBar').prop('isResizable')).toBe(false);
            });
        Severity: Major
        Found in src/components/Table/head/__test__/header.spec.js and 6 other locations - About 1 hr to fix
        src/components/Breadcrumb/__test__/breadcrumb.spec.js on lines 34..38
        src/components/Button/__test__/button.spec.js on lines 25..29
        src/components/Button/__test__/button.spec.js on lines 45..49
        src/components/Button/__test__/button.spec.js on lines 59..63
        src/components/Input/label/__test__/label.spec.js on lines 18..21
        src/components/Select/__test__/select.spec.js on lines 28..31

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

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

            it('should set aria-haspopup to true when it is passed', () => {
                const component = mount(<Button label="my label" ariaHaspopup />);
        
                expect(component.find('button').prop('aria-haspopup')).toBe(true);
            });
        Severity: Major
        Found in src/components/Button/__test__/button.spec.js and 6 other locations - About 1 hr to fix
        src/components/Breadcrumb/__test__/breadcrumb.spec.js on lines 34..38
        src/components/Button/__test__/button.spec.js on lines 25..29
        src/components/Button/__test__/button.spec.js on lines 59..63
        src/components/Input/label/__test__/label.spec.js on lines 18..21
        src/components/Select/__test__/select.spec.js on lines 28..31
        src/components/Table/head/__test__/header.spec.js on lines 47..50

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

        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

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

        export default function getMapContainerStyles(ref) {
            if (ref && ref.parentNode) {
                const parentHeight = ref.parentNode.style.height;
                if (!parentHeight) {
                    return {
        Severity: Major
        Found in src/components/PresenceMap/getMapContainerStyles.js and 1 other location - About 1 hr to fix
        src/components/GMap/getMapContainerStyles.js on lines 1..12

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

        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

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

        export default function getMapContainerStyles(ref) {
            if (ref && ref.parentNode) {
                const parentHeight = ref.parentNode.style.height;
                if (!parentHeight) {
                    return {
        Severity: Major
        Found in src/components/GMap/getMapContainerStyles.js and 1 other location - About 1 hr to fix
        src/components/PresenceMap/getMapContainerStyles.js on lines 1..12

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

        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 fill="#141414">
                                <path d="M14.053 28.44h-.57V3.652h.57z" />
                                <path d="M15.358 11.524c0 .927-.742 1.68-1.656 1.68a1.669 1.669 0 01-1.656-1.68c0-.928.742-1.68 1.656-1.68.914 0 1.656.752 1.656 1.68M15.06 21.926c0 1.084-.61 1.96-1.36 1.96-.75 0-1.358-.876-1.358-1.96 0-1.083.609-1.96 1.359-1.96s1.358.877 1.358 1.96M15.358 16.433c0 .56-.742 1.012-1.656 1.012-.914 0-1.656-.452-1.656-1.012s.742-1.011 1.656-1.011c.914 0 1.656.452 1.656 1.011M11.878 9.154s-.17-1.206.17-1.723c.339-.517 1.23-.991 1.952-1.163.722-.173 1.699-1.249 1.699-1.249s-.128 1.593-1.316 2.584c-1.189.991-2.505 1.551-2.505 1.551M10.837 11.608s.658.43.827 1.076c.17.647.637 1.336 1.996 1.336v.776s-1.147.085-1.782-.172c-.637-.26-.807-1.466-.807-1.897 0-.43-.234-1.12-.234-1.12M16.526 11.608s-.657.43-.827 1.076c-.17.647-.637 1.336-1.996 1.336v.776s1.147.085 1.783-.172c.637-.26.807-1.466.807-1.897 0-.43.233-1.12.233-1.12" />
                                <path d="M16.293 20.439c0-.43-.192-1.636-.828-1.895-.637-.258-1.804-.359-1.804-.359s-1.146.101-1.783.359c-.637.259-.807 1.465-.807 1.895 0 .43-.234 2.498-.234 2.498s.893-1.512 1.062-2.159c.17-.647.87-1.451 1.762-1.451.912 0 1.634.776 1.804 1.422.17.645 1.05 2.188 1.05 2.188s-.222-2.068-.222-2.498M13.66 24.316v4.135s-1.189.13-2.887-.322-2.016-.624-2.016-.624 1.728-1.756 2.484-2.414c.89-.775 2.419-.775 2.419-.775" />
                                <path d="M13.66 24.316v4.135s1.189.13 2.887-.322 2.016-.624 2.016-.624-1.728-1.756-2.484-2.414c-.89-.775-2.42-.775-2.42-.775" />
        Severity: Major
        Found in src/components/PhoneInput/flags/NewCaledonia.js and 1 other location - About 1 hr to fix
        src/components/PhoneInput/flags/Brunei.js on lines 16..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 69.

        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

            async isRightMonthDayEnabled(day) {
                const buttonEl = await $(this.rootElement)
                    .$$('table[role=grid]')[1]
                    .$(`button=${day}`);
                return buttonEl.isExisting();
        Severity: Major
        Found in src/components/Calendar/pageObject/doubleCalendar.js and 1 other location - About 1 hr to fix
        src/components/Calendar/pageObject/doubleCalendar.js on lines 179..184

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

        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 the right key when data is nested and keyField does not use dot notation', () => {
                const rowData = {
                    type: 'regular',
                    data: {
                        name: 'Pepe',
        src/components/Table/helpers/rows/__test__/computeUniqueRowKey.spec.js on lines 23..33

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

        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

            async isLeftMonthDayEnabled(day) {
                const buttonEl = await $(this.rootElement)
                    .$$('table[role=grid]')[0]
                    .$(`button=${day}`);
                return buttonEl.isExisting();
        Severity: Major
        Found in src/components/Calendar/pageObject/doubleCalendar.js and 1 other location - About 1 hr to fix
        src/components/Calendar/pageObject/doubleCalendar.js on lines 298..303

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

        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

            async isPmSelected() {
                await browser.waitUntil(async () =>
                    $(timePickerModalId)
                        .$('fieldset[role="presentation"]')
                        .isFocused(),
        Severity: Major
        Found in src/components/TimePicker/pageObject/index.js and 1 other location - About 1 hr to fix
        src/components/TimePicker/pageObject/index.js on lines 194..203

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

        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

            async isAmSelected() {
                await browser.waitUntil(async () =>
                    $(timePickerModalId)
                        .$('fieldset[role="presentation"]')
                        .isFocused(),
        Severity: Major
        Found in src/components/TimePicker/pageObject/index.js and 1 other location - About 1 hr to fix
        src/components/TimePicker/pageObject/index.js on lines 210..219

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

        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 fill="#D80027">
                            <path d="M20.52 14.26a4.521 4.521 0 11-8.498-2.15 5.564 5.564 0 107.955 0 4.5 4.5 0 01.544 2.15z" />
                            <path d="M14.957 9.044h2.086v10.433h-2.086z" />
                            <path d="M19.477 11.13h-6.955c0 .481.418.87.899.87h-.03c0 .48.39.87.87.87 0 .48.39.87.87.87h1.738c.48 0 .87-.39.87-.87.48 0 .87-.39.87-.87h-.03c.48 0 .898-.389.898-.87zM11.131 20.173h9.738v2.087h-9.738z" />
                            <path d="M18.087 20.868h4.173v2.087h-4.173zM9.74 20.868h4.172v2.087H9.74z" />
        Severity: Major
        Found in src/components/PhoneInput/flags/Brunei.js and 1 other location - About 1 hr to fix
        src/components/PhoneInput/flags/NewCaledonia.js on lines 32..37

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

        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 the right key when keyField use dot notation', () => {
                const rowData = {
                    type: 'regular',
                    data: {
                        name: 'Pepe',
        src/components/Table/helpers/rows/__test__/computeUniqueRowKey.spec.js on lines 34..44

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

        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