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

        it('should return 0 when click the first tab', () => {
            const tabIndex = 0;
            const tabsetChildren = [
                { name: 'pizza', ref: { offsetWidth: 1 } },
                { name: 'onion', ref: { offsetWidth: 2 } },
Severity: Major
Found in src/components/Tabset/__test__/utils.spec.js and 1 other location - About 3 hrs to fix
src/components/Tabset/__test__/utils.spec.js on lines 106..114

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

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 AddRecords has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function AddRecords(props) {
    const { className, style } = props;
    return (
        <svg
            className={className}
Severity: Major
Found in src/components/ImportRecordsFlow/icons/mergeRecords.js - About 3 hrs to fix

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

            <svg
                className={className}
                style={style}
                width="20"
                height="21"
    Severity: Major
    Found in src/components/ImportRecordsFlow/icons/downloadCsv.js and 2 other locations - About 3 hrs to fix
    src/components/CarouselCard/__tests__/carouselCard.a11y.spec.js on lines 11..33
    src/components/CarouselCard/__tests__/carouselCard.spec.js on lines 9..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 101.

    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

                <CarouselCard disableAutoScroll>
                    <CarouselImage
                        src="images/illustrations/rainbows-background.svg"
                        header="First Card"
                        description="First card description."
    Severity: Major
    Found in src/components/CarouselCard/__tests__/carouselCard.spec.js and 2 other locations - About 3 hrs to fix
    src/components/CarouselCard/__tests__/carouselCard.a11y.spec.js on lines 11..33
    src/components/ImportRecordsFlow/icons/downloadCsv.js on lines 7..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 101.

    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

                <CarouselCard>
                    <CarouselImage
                        src="images/illustrations/Illustration-rainbow-4.svg"
                        header="First Card"
                        description="First card description."
    src/components/CarouselCard/__tests__/carouselCard.spec.js on lines 9..31
    src/components/ImportRecordsFlow/icons/downloadCsv.js on lines 7..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 101.

    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 fire an event when the close button is clicked and the drawer is open', () => {
            const closeMockFn = jest.fn();
            const component = mount(
                <Drawer isOpen onRequestClose={closeMockFn}>
                    <p />
    Severity: Major
    Found in src/components/Drawer/__test__/drawer.spec.js and 1 other location - About 3 hrs to fix
    src/components/Modal/__test__/modal.spec.js on lines 93..102

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

    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 year when is in the first week of January and the day 1 is not the fisrt day of the week and press HOME key', async () => {
            const calendar = await PageCalendar(CALENDAR);
            await calendar.clickNextMonthButton();
            calendar.setYear('2019');
            await calendar.clickDay(2);
    Severity: Major
    Found in integration/specs/Calendar/calendar-1.spec.js and 1 other location - About 3 hrs to fix
    integration/specs/Calendar/calendar-1.spec.js on lines 122..129

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

    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 fire an event when the close button is clicked and the modal is open', () => {
            const closeMockFn = jest.fn();
            const component = mount(
                <Modal isOpen onRequestClose={closeMockFn}>
                    <p />
    Severity: Major
    Found in src/components/Modal/__test__/modal.spec.js and 1 other location - About 3 hrs to fix
    src/components/Drawer/__test__/drawer.spec.js on lines 103..112

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

    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 the previous year when is in January and PAGEUP key is pressed', async () => {
            const calendar = await PageCalendar(CALENDAR);
            await calendar.clickNextMonthButton();
            calendar.setYear('2019');
            await calendar.clickDay(11);
    Severity: Major
    Found in integration/specs/Calendar/calendar-1.spec.js and 1 other location - About 3 hrs to fix
    integration/specs/Calendar/calendar-1.spec.js on lines 94..101

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 101.

    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 CarouselImage has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
    Open

    const CarouselImage = props => {
        const { assistiveText, description, header, href, src, style, className } = props;
        const {
            register,
            unregister,
    Severity: Minor
    Found in src/components/CarouselImage/index.js - About 3 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

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

        it('should select Empire State with keyboard', async () => {
            const picklist = new PagePicklist(PICKLIST);
            await picklist.clickInput();
            await picklist.waitUntilOpen();
            await browser.keys(ARROW_DOWN_KEY);
    Severity: Major
    Found in integration/specs/Picklist/picklist-1.spec.js and 3 other locations - About 3 hrs to fix
    integration/specs/TimePicker/timePicker-1.spec.js on lines 205..212
    integration/specs/TimePicker/timePicker-1.spec.js on lines 308..315
    integration/specs/TimePicker/timePicker-1.spec.js on lines 392..399

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

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

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

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

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

    Refactorings

    Further Reading

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

        it('should call event.preventDefault when something is dropped on minutes input', () => {
            const preventDefaultMockFn = jest.fn();
            const component = mount(<TimeSelect />);
            const minutesInput = component.find('input').at(1);
            minutesInput.simulate('drop', {
    Severity: Major
    Found in src/components/TimePicker/__test__/timeSelect.spec.js and 3 other locations - About 3 hrs to fix
    src/components/TimePicker/__test__/timeSelect.spec.js on lines 543..551
    src/components/TimePicker/__test__/timeSelect.spec.js on lines 552..560
    src/components/TimePicker/__test__/timeSelect.spec.js on lines 561..569

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

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

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

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

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

    Refactorings

    Further Reading

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

        it('should call event.preventDefault when something is pasted on hour input', () => {
            const preventDefaultMockFn = jest.fn();
            const component = mount(<TimeSelect />);
            const hourInput = component.find('input').at(0);
            hourInput.simulate('paste', {
    Severity: Major
    Found in src/components/TimePicker/__test__/timeSelect.spec.js and 3 other locations - About 3 hrs to fix
    src/components/TimePicker/__test__/timeSelect.spec.js on lines 552..560
    src/components/TimePicker/__test__/timeSelect.spec.js on lines 561..569
    src/components/TimePicker/__test__/timeSelect.spec.js on lines 570..578

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

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

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

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

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

    Refactorings

    Further Reading

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

        it('should call event.preventDefault when something is pasted on minutes input', () => {
            const preventDefaultMockFn = jest.fn();
            const component = mount(<TimeSelect />);
            const minutesInput = component.find('input').at(1);
            minutesInput.simulate('paste', {
    Severity: Major
    Found in src/components/TimePicker/__test__/timeSelect.spec.js and 3 other locations - About 3 hrs to fix
    src/components/TimePicker/__test__/timeSelect.spec.js on lines 543..551
    src/components/TimePicker/__test__/timeSelect.spec.js on lines 552..560
    src/components/TimePicker/__test__/timeSelect.spec.js on lines 570..578

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

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

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

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

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

    Refactorings

    Further Reading

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

        it('should set hour input value to "02" when press twice on up key while hour input is focused', async () => {
            const timePicker = new PageTimePicker(TIME_PICKER);
            await timePicker.clickTimeInput();
            await timePicker.waitUntilOpen();
            await browser.keys(ARROW_UP_KEY);
    Severity: Major
    Found in integration/specs/TimePicker/timePicker-1.spec.js and 3 other locations - About 3 hrs to fix
    integration/specs/Picklist/picklist-1.spec.js on lines 103..110
    integration/specs/TimePicker/timePicker-1.spec.js on lines 308..315
    integration/specs/TimePicker/timePicker-1.spec.js on lines 392..399

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

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

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

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

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

    Refactorings

    Further Reading

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

        it('should call event.preventDefault when something is dropped on hour input', () => {
            const preventDefaultMockFn = jest.fn();
            const component = mount(<TimeSelect />);
            const hourInput = component.find('input').at(0);
            hourInput.simulate('drop', {
    Severity: Major
    Found in src/components/TimePicker/__test__/timeSelect.spec.js and 3 other locations - About 3 hrs to fix
    src/components/TimePicker/__test__/timeSelect.spec.js on lines 543..551
    src/components/TimePicker/__test__/timeSelect.spec.js on lines 561..569
    src/components/TimePicker/__test__/timeSelect.spec.js on lines 570..578

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

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

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

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

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

    Refactorings

    Further Reading

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

        it('should set minutes input value to "00" when press up key while minutes input value is focused', async () => {
            const timePicker = new PageTimePicker(TIME_PICKER);
            await timePicker.clickTimeInput();
            await timePicker.waitUntilOpen();
            await browser.keys(ARROW_RIGHT_KEY);
    Severity: Major
    Found in integration/specs/TimePicker/timePicker-1.spec.js and 3 other locations - About 3 hrs to fix
    integration/specs/Picklist/picklist-1.spec.js on lines 103..110
    integration/specs/TimePicker/timePicker-1.spec.js on lines 205..212
    integration/specs/TimePicker/timePicker-1.spec.js on lines 308..315

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

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

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

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

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

    Refactorings

    Further Reading

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

        it('should set minutes input value to "59" when press down key while minutes input is focused', async () => {
            const timePicker = new PageTimePicker(TIME_PICKER);
            await timePicker.clickTimeInput();
            await timePicker.waitUntilOpen();
            await browser.keys(ARROW_RIGHT_KEY);
    Severity: Major
    Found in integration/specs/TimePicker/timePicker-1.spec.js and 3 other locations - About 3 hrs to fix
    integration/specs/Picklist/picklist-1.spec.js on lines 103..110
    integration/specs/TimePicker/timePicker-1.spec.js on lines 205..212
    integration/specs/TimePicker/timePicker-1.spec.js on lines 392..399

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

    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 select am input by default when any time is set yet and the time selector is open', async () => {
            const timePicker = new PageTimePicker(TIME_PICKER);
            await timePicker.clickTimeInput();
            await timePicker.waitUntilOpen();
            await browser.keys(ARROW_RIGHT_KEY);
    Severity: Major
    Found in integration/specs/TimePicker/timePicker-1.spec.js and 1 other location - About 3 hrs to fix
    integration/specs/TimePicker/timePicker-1.spec.js on lines 104..111

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

    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 focus to trigger element when close drawer with ESC key', async () => {
            const drawer = new PageDrawer(DRAWER);
            const triggerButton = await $(BUTTON);
            await triggerButton.click();
            await drawer.waitUntilOpen();
    Severity: Major
    Found in integration/specs/Drawer/drawer-1.spec.js and 1 other location - About 3 hrs to fix
    integration/specs/Drawer/drawer-1.spec.js on lines 32..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 100.

    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