gwcuva/gwc-website

View on GitHub

Showing 372 of 372 total issues

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

function CareerFairLocation() {
  
  const [location, setLocation] = useState({'virtual': '', 'inPerson': '', 'id': ''});

  useEffect(() => {
Severity: Major
Found in src/components/CareerFair2022/Location/Location.tsx and 1 other location - About 1 day to fix
src/components/CareerFair/Location/Location.tsx on lines 6..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 300.

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

function CareerFairLocation() {
  
  const [location, setLocation] = useState({'virtual': '', 'inPerson': '', 'id': ''});

  useEffect(() => {
Severity: Major
Found in src/components/CareerFair/Location/Location.tsx and 1 other location - About 1 day to fix
src/components/CareerFair2022/Location/Location.tsx on lines 6..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 300.

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

function Activity(props: Props): JSX.Element {
  return (
    <Row className="mb-2">
        <Col>
            {props.endtime && <p className="text-dark-grey mono">{props.starttime} - {props.endtime}</p>}
Severity: Major
Found in src/components/GirlsHooHack2022/Schedule/Activity.tsx and 1 other location - About 1 day to fix
src/components/GirlsHooHack2023/Schedule/Activity.tsx on lines 12..26

Duplicated Code

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

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

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

Tuning

This issue has a mass of 297.

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

function Activity(props: Props): JSX.Element {
  return (
    <Row className="mb-2">
        <Col>
            {props.endtime && <p className="text-dark-grey mono">{props.starttime} - {props.endtime}</p>}
Severity: Major
Found in src/components/GirlsHooHack2023/Schedule/Activity.tsx and 1 other location - About 1 day to fix
src/components/GirlsHooHack2022/Schedule/Activity.tsx on lines 12..26

Duplicated Code

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

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

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

Tuning

This issue has a mass of 297.

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

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

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

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

Refactorings

Further Reading

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

function Session(props: Props): JSX.Element {
  return (
    <Row className="mb-2">
        <Col xs={2}>
            <p className="text-dark-grey mono">{props.time}</p>
Severity: Major
Found in src/components/CareerFair2022/OneOnOneSchedule/Session.tsx and 5 other locations - About 1 day to fix
src/components/CareerFair2022/Schedule/Activity.tsx on lines 12..28
src/components/CareerFair2023/OneOnOneSchedule/Session.tsx on lines 12..28
src/components/CareerFair2023/Schedule/Activity.tsx on lines 12..28
src/components/CareerFair2024/OneOnOneSchedule/Session.tsx on lines 12..28
src/components/CareerFair2024/Schedule/Activity.tsx on lines 12..28

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

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

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

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

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

Refactorings

Further Reading

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

function Session(props: Props): JSX.Element {
  return (
    <Row className="mb-2">
        <Col xs={2}>
            <p className="text-dark-grey mono">{props.time}</p>
Severity: Major
Found in src/components/CareerFair2024/OneOnOneSchedule/Session.tsx and 5 other locations - About 1 day to fix
src/components/CareerFair2022/OneOnOneSchedule/Session.tsx on lines 12..28
src/components/CareerFair2022/Schedule/Activity.tsx on lines 12..28
src/components/CareerFair2023/OneOnOneSchedule/Session.tsx on lines 12..28
src/components/CareerFair2023/Schedule/Activity.tsx on lines 12..28
src/components/CareerFair2024/Schedule/Activity.tsx on lines 12..28

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

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

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

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

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

Refactorings

Further Reading

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

function Activity(props: Props): JSX.Element {
  return (
    <Row className="mb-2">
        <Col xs={2}>
            <p className="text-dark-grey mono">{props.time}</p>
Severity: Major
Found in src/components/CareerFair2022/Schedule/Activity.tsx and 5 other locations - About 1 day to fix
src/components/CareerFair2022/OneOnOneSchedule/Session.tsx on lines 12..28
src/components/CareerFair2023/OneOnOneSchedule/Session.tsx on lines 12..28
src/components/CareerFair2023/Schedule/Activity.tsx on lines 12..28
src/components/CareerFair2024/OneOnOneSchedule/Session.tsx on lines 12..28
src/components/CareerFair2024/Schedule/Activity.tsx on lines 12..28

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

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

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

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

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

Refactorings

Further Reading

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

function Session(props: Props): JSX.Element {
  return (
    <Row className="mb-2">
        <Col xs={2}>
            <p className="text-dark-grey mono">{props.time}</p>
Severity: Major
Found in src/components/CareerFair2023/OneOnOneSchedule/Session.tsx and 5 other locations - About 1 day to fix
src/components/CareerFair2022/OneOnOneSchedule/Session.tsx on lines 12..28
src/components/CareerFair2022/Schedule/Activity.tsx on lines 12..28
src/components/CareerFair2023/Schedule/Activity.tsx on lines 12..28
src/components/CareerFair2024/OneOnOneSchedule/Session.tsx on lines 12..28
src/components/CareerFair2024/Schedule/Activity.tsx on lines 12..28

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

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

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

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

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

Refactorings

Further Reading

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

function Activity(props: Props): JSX.Element {
  return (
    <Row className="mb-2">
        <Col xs={2}>
            <p className="text-dark-grey mono">{props.time}</p>
Severity: Major
Found in src/components/CareerFair2024/Schedule/Activity.tsx and 5 other locations - About 1 day to fix
src/components/CareerFair2022/OneOnOneSchedule/Session.tsx on lines 12..28
src/components/CareerFair2022/Schedule/Activity.tsx on lines 12..28
src/components/CareerFair2023/OneOnOneSchedule/Session.tsx on lines 12..28
src/components/CareerFair2023/Schedule/Activity.tsx on lines 12..28
src/components/CareerFair2024/OneOnOneSchedule/Session.tsx on lines 12..28

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

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

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

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

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

Refactorings

Further Reading

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

function Activity(props: Props): JSX.Element {
  return (
    <Row className="mb-2">
        <Col xs={2}>
            <p className="text-dark-grey mono">{props.time}</p>
Severity: Major
Found in src/components/CareerFair2023/Schedule/Activity.tsx and 5 other locations - About 1 day to fix
src/components/CareerFair2022/OneOnOneSchedule/Session.tsx on lines 12..28
src/components/CareerFair2022/Schedule/Activity.tsx on lines 12..28
src/components/CareerFair2023/OneOnOneSchedule/Session.tsx on lines 12..28
src/components/CareerFair2024/OneOnOneSchedule/Session.tsx on lines 12..28
src/components/CareerFair2024/Schedule/Activity.tsx on lines 12..28

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

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

function FAQComponent(props: Props): JSX.Element {

  const [open, setOpen] = useState(false);

  return (
Severity: Major
Found in src/components/GirlsHooHack2022/FAQ/FAQComponent.tsx and 5 other locations - About 1 day to fix
src/components/CareerFair2022/FAQ/FAQComponent.tsx on lines 13..34
src/components/CareerFair2023/FAQ/FAQComponent.tsx on lines 13..34
src/components/CareerFair2024/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2021/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2023/FAQ/FAQComponent.tsx on lines 13..34

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

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

function FAQComponent(props: Props): JSX.Element {

  const [open, setOpen] = useState(false);

  return (
Severity: Major
Found in src/components/CareerFair2023/FAQ/FAQComponent.tsx and 5 other locations - About 1 day to fix
src/components/CareerFair2022/FAQ/FAQComponent.tsx on lines 13..34
src/components/CareerFair2024/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2021/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2022/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2023/FAQ/FAQComponent.tsx on lines 13..34

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

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

function FAQComponent(props: Props): JSX.Element {

  const [open, setOpen] = useState(false);

  return (
Severity: Major
Found in src/components/CareerFair2024/FAQ/FAQComponent.tsx and 5 other locations - About 1 day to fix
src/components/CareerFair2022/FAQ/FAQComponent.tsx on lines 13..34
src/components/CareerFair2023/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2021/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2022/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2023/FAQ/FAQComponent.tsx on lines 13..34

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

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 Signup() {
  const [registration, setRegistration] = useState({'registrationLink': ''});
  useEffect(() => {
    const fetchRegistration = async () => {
      const { careerFairRegistration } = await request(
Severity: Major
Found in src/components/CareerFair2023/Signup/Signup.tsx and 1 other location - About 1 day to fix
src/components/CareerFair2024/Signup/Signup.tsx 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 279.

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

function FAQComponent(props: Props): JSX.Element {

  const [open, setOpen] = useState(false);

  return (
Severity: Major
Found in src/components/CareerFair2022/FAQ/FAQComponent.tsx and 5 other locations - About 1 day to fix
src/components/CareerFair2023/FAQ/FAQComponent.tsx on lines 13..34
src/components/CareerFair2024/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2021/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2022/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2023/FAQ/FAQComponent.tsx on lines 13..34

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

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

function FAQComponent(props: Props): JSX.Element {

  const [open, setOpen] = useState(false);

  return (
Severity: Major
Found in src/components/GirlsHooHack2023/FAQ/FAQComponent.tsx and 5 other locations - About 1 day to fix
src/components/CareerFair2022/FAQ/FAQComponent.tsx on lines 13..34
src/components/CareerFair2023/FAQ/FAQComponent.tsx on lines 13..34
src/components/CareerFair2024/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2021/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2022/FAQ/FAQComponent.tsx on lines 13..34

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

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

function FAQComponent(props: Props): JSX.Element {

  const [open, setOpen] = useState(false);

  return (
Severity: Major
Found in src/components/GirlsHooHack2021/FAQ/FAQComponent.tsx and 5 other locations - About 1 day to fix
src/components/CareerFair2022/FAQ/FAQComponent.tsx on lines 13..34
src/components/CareerFair2023/FAQ/FAQComponent.tsx on lines 13..34
src/components/CareerFair2024/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2022/FAQ/FAQComponent.tsx on lines 13..34
src/components/GirlsHooHack2023/FAQ/FAQComponent.tsx on lines 13..34

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

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 Signup() {
  const [registration, setRegistration] = useState({'registrationLink': ''});
  useEffect(() => {
    const fetchRegistration = async () => {
      const { careerFairRegistration } = await request(
Severity: Major
Found in src/components/CareerFair2024/Signup/Signup.tsx and 1 other location - About 1 day to fix
src/components/CareerFair2023/Signup/Signup.tsx 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 279.

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

function Sessions() {
  const [sessions, setSessions] = useState([{'id': '', 'eventName': '', 'eventDetail': '', 'zoomLink': '', 'inPerson': ''}]);
  // const [dropdownOpen, setDropdownOpen] = useState(false);

  useEffect(() => {
Severity: Major
Found in src/components/CareerFair2024/Schedule/Sessions.tsx and 2 other locations - About 1 day to fix
src/components/CareerFair2022/Schedule/Sessions.tsx on lines 11..43
src/components/CareerFair2023/Schedule/Sessions.tsx on lines 11..43

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

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

function Sessions() {
  const [sessions, setSessions] = useState([{'id': '', 'eventName': '', 'eventDetail': '', 'zoomLink': '', 'inPerson': ''}]);
  // const [dropdownOpen, setDropdownOpen] = useState(false);

  useEffect(() => {
Severity: Major
Found in src/components/CareerFair2023/Schedule/Sessions.tsx and 2 other locations - About 1 day to fix
src/components/CareerFair2022/Schedule/Sessions.tsx on lines 11..43
src/components/CareerFair2024/Schedule/Sessions.tsx on lines 11..43

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

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