shootismoke/webapp

View on GitHub

Showing 45 of 59 total issues

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

            <HealthTip imgAlt="fitness" imgSrc={fitness} key={2}>
                <p className="type-400 md:type-500">
                    <span className="text-orange">Enjoy</span> your usual
                    outdoor activities.
                </p>
src/frontend/components/PollutantSection/HealthSection/HealthSection.tsx on lines 128..133
src/frontend/components/PollutantSection/HealthSection/HealthSection.tsx on lines 146..151

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

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

            <HealthTip imgAlt="warning" imgSrc={warning} key={1}>
                <p className="type-400 md:type-500">
                    <span className="text-orange">Health alert:</span> Stop
                    outdoor activities and move all activities indoors.
                </p>
src/frontend/components/PollutantSection/HealthSection/HealthSection.tsx on lines 62..67
src/frontend/components/PollutantSection/HealthSection/HealthSection.tsx on lines 128..133

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

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

                        <div className="next-images relative h-12 | w-32">
                            <Image
                                alt={media.slug}
                                layout="fill"
                                objectFit="contain"
src/frontend/components/AdSection/Amazon.tsx on lines 121..128
src/frontend/components/BlogSection/BlogSection.tsx on lines 206..213

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

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

                            <div className="next-images relative | w-full h-40 md:h-50 object-cover">
                                <Image
                                    alt={blog.title}
                                    layout="fill"
                                    objectFit="cover"
Severity: Major
Found in src/frontend/components/BlogSection/BlogSection.tsx and 2 other locations - About 1 hr to fix
src/frontend/components/AdSection/Amazon.tsx on lines 121..128
src/frontend/components/FeaturedSection/FeaturedSection.tsx on lines 118..125

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

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

                        <div className="next-images relative w-full | px-2 h-36 object-cover">
                            <Image
                                alt={ad.title}
                                layout="fill"
                                objectFit="contain"
Severity: Major
Found in src/frontend/components/AdSection/Amazon.tsx and 2 other locations - About 1 hr to fix
src/frontend/components/BlogSection/BlogSection.tsx on lines 206..213
src/frontend/components/FeaturedSection/FeaturedSection.tsx on lines 118..125

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

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

            <div className="next-images w-12 h-12 | hidden md:block absolute -right-6 cursor-pointer z-10">
                <Image
                    alt="page-right"
                    layout="fill"
                    objectFit="contain"
Severity: Minor
Found in src/frontend/components/Carousel/Carousel.tsx and 1 other location - About 55 mins to fix
src/frontend/components/Carousel/Carousel.tsx on lines 66..74

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

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

            <div className="next-images w-12 h-12 | hidden md:block absolute -left-6 cursor-pointer z-10">
                <Image
                    alt="page-left"
                    layout="fill"
                    objectFit="contain"
Severity: Minor
Found in src/frontend/components/Carousel/Carousel.tsx and 1 other location - About 55 mins to fix
src/frontend/components/Carousel/Carousel.tsx on lines 76..84

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

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

                    <div className="next-images relative | h-full">
                        <Image
                            alt="error"
                            layout="fill"
                            objectFit="contain"
Severity: Major
Found in src/frontend/components/SadFace/SadFace.tsx and 3 other locations - About 50 mins to fix
src/frontend/components/AdSection/AusAir.tsx on lines 38..46
src/frontend/components/AdSection/AusAir.tsx on lines 54..62
src/frontend/components/Nav/Nav.tsx on lines 68..76

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

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

                <div className="next-images relative w-full h-full">
                    <Image
                        alt="cigarettes-conversion"
                        layout="fill"
                        objectFit="cover"
Severity: Major
Found in src/frontend/components/AdSection/AusAir.tsx and 3 other locations - About 50 mins to fix
src/frontend/components/AdSection/AusAir.tsx on lines 54..62
src/frontend/components/Nav/Nav.tsx on lines 68..76
src/frontend/components/SadFace/SadFace.tsx on lines 37..45

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

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

                        <div className="next-images relative w-8 | ml-2 md:ml-4 h-6 md:h-10">
                            <Image
                                alt="download"
                                layout="fill"
                                objectFit="contain"
Severity: Major
Found in src/frontend/components/Nav/Nav.tsx and 3 other locations - About 50 mins to fix
src/frontend/components/AdSection/AusAir.tsx on lines 38..46
src/frontend/components/AdSection/AusAir.tsx on lines 54..62
src/frontend/components/SadFace/SadFace.tsx on lines 37..45

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

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

                <div className="hidden md:block next-images relative w-32 h-24">
                    <Image
                        alt="cigarettes-conversion"
                        layout="fill"
                        objectFit="cover"
Severity: Major
Found in src/frontend/components/AdSection/AusAir.tsx and 3 other locations - About 50 mins to fix
src/frontend/components/AdSection/AusAir.tsx on lines 38..46
src/frontend/components/Nav/Nav.tsx on lines 68..76
src/frontend/components/SadFace/SadFace.tsx on lines 37..45

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

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

        name: city.name
            ? [city.name, city.adminName, city.country]
                    .filter((x) => !!x)
                    .join(', ')
            : 'Unknown City',
Severity: Minor
Found in src/backend/reports/email/main.ts and 1 other location - About 50 mins to fix
src/frontend/components/RankingSection/RankingSection.tsx on lines 155..163

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

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

                                        city.name
                                            ? [
                                                    city.name,
                                                    city.adminName,
                                                    city.country,
Severity: Minor
Found in src/frontend/components/RankingSection/RankingSection.tsx and 1 other location - About 50 mins to fix
src/backend/reports/email/main.ts on lines 159..163

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

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 scrollLeft(): void {
        onPageLeftClick && onPageLeftClick();
        if (!scrollDiv.current) {
            return;
        }
Severity: Minor
Found in src/frontend/components/Carousel/Carousel.tsx and 1 other location - About 50 mins to fix
src/frontend/components/Carousel/Carousel.tsx on lines 56..62

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

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 scrollRight(): void {
        onPageRightClick && onPageRightClick();
        if (!scrollDiv.current) {
            return;
        }
Severity: Minor
Found in src/frontend/components/Carousel/Carousel.tsx and 1 other location - About 50 mins to fix
src/frontend/components/Carousel/Carousel.tsx on lines 49..55

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

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

                <a
                    className="text-orange"
                    href="https://www.marcelocoelho.cc"
                    onClick={(): void => logEvent('Footer.Marcelo.Click')}
                    rel="noreferrer"
Severity: Major
Found in src/frontend/components/Footer/Footer.tsx and 7 other locations - About 45 mins to fix
src/frontend/components/Footer/Footer.tsx on lines 49..57
src/frontend/components/Footer/Footer.tsx on lines 61..69
src/frontend/components/Footer/Footer.tsx on lines 71..79
src/frontend/components/Footer/Footer.tsx on lines 81..89
src/frontend/components/Footer/Footer.tsx on lines 104..112
src/frontend/components/Footer/Footer.tsx on lines 117..125
src/frontend/components/Footer/Footer.tsx on lines 127..135

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

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

                <a
                    className="text-orange"
                    href="https://twitter.com/shootismoke"
                    onClick={(): void => logEvent('Footer.Twitter.Click')}
                    rel="noreferrer"
Severity: Major
Found in src/frontend/components/Footer/Footer.tsx and 7 other locations - About 45 mins to fix
src/frontend/components/Footer/Footer.tsx on lines 39..47
src/frontend/components/Footer/Footer.tsx on lines 49..57
src/frontend/components/Footer/Footer.tsx on lines 61..69
src/frontend/components/Footer/Footer.tsx on lines 81..89
src/frontend/components/Footer/Footer.tsx on lines 104..112
src/frontend/components/Footer/Footer.tsx on lines 117..125
src/frontend/components/Footer/Footer.tsx on lines 127..135

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

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

                <a
                    className="text-orange"
                    href="https://github.com/shootismoke/policies/blob/main/terms/index.md"
                    onClick={(): void => logEvent('Footer.Terms.Click')}
                    rel="noreferrer"
Severity: Major
Found in src/frontend/components/Footer/Footer.tsx and 7 other locations - About 45 mins to fix
src/frontend/components/Footer/Footer.tsx on lines 39..47
src/frontend/components/Footer/Footer.tsx on lines 49..57
src/frontend/components/Footer/Footer.tsx on lines 61..69
src/frontend/components/Footer/Footer.tsx on lines 71..79
src/frontend/components/Footer/Footer.tsx on lines 81..89
src/frontend/components/Footer/Footer.tsx on lines 104..112
src/frontend/components/Footer/Footer.tsx on lines 127..135

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

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

                <a
                    className="text-orange"
                    href="https://github.com/shootismoke/policies/blob/main/privacy/index.md"
                    onClick={(): void => logEvent('Footer.Privacy.Click')}
                    rel="noreferrer"
Severity: Major
Found in src/frontend/components/Footer/Footer.tsx and 7 other locations - About 45 mins to fix
src/frontend/components/Footer/Footer.tsx on lines 39..47
src/frontend/components/Footer/Footer.tsx on lines 49..57
src/frontend/components/Footer/Footer.tsx on lines 61..69
src/frontend/components/Footer/Footer.tsx on lines 71..79
src/frontend/components/Footer/Footer.tsx on lines 81..89
src/frontend/components/Footer/Footer.tsx on lines 104..112
src/frontend/components/Footer/Footer.tsx on lines 117..125

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

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

                <a
                    className="text-orange"
                    href="https://github.com/shootismoke/webapp"
                    onClick={(): void => logEvent('Footer.Github.Click')}
                    rel="noreferrer"
Severity: Major
Found in src/frontend/components/Footer/Footer.tsx and 7 other locations - About 45 mins to fix
src/frontend/components/Footer/Footer.tsx on lines 39..47
src/frontend/components/Footer/Footer.tsx on lines 49..57
src/frontend/components/Footer/Footer.tsx on lines 61..69
src/frontend/components/Footer/Footer.tsx on lines 71..79
src/frontend/components/Footer/Footer.tsx on lines 81..89
src/frontend/components/Footer/Footer.tsx on lines 117..125
src/frontend/components/Footer/Footer.tsx on lines 127..135

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

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