gwcuva/gwc-website

View on GitHub

Showing 372 of 372 total issues

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

            <Row className="mt-4">
              <Col xs={9} className="d-flex justify-content-start">
                <h3 className="text-peach mono font-weight-bold">Saturday, Nov 6</h3>
              </Col>
              <Col xs={2} className="d-flex justify-content-end text-peach ml-3">
Severity: Major
Found in src/components/GirlsHooHack2021/Schedule/Schedule.tsx and 4 other locations - About 6 hrs to fix
src/components/GirlsHooHack2021/JumpStart/JumpStart.tsx on lines 88..99
src/components/GirlsHooHack2021/Schedule/Schedule.tsx on lines 99..110
src/components/GirlsHooHack2022/JumpStart/JumpStart.tsx on lines 105..117
src/components/GirlsHooHack2023/JumpStart/JumpStart.tsx on lines 105..117

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

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

function Schedule() {
  const [events, setEvents] = useState([{'eventName': '', 'link': '', 'startTime': '', 'description': '', 'day': 0, 'linkText': '', 'endTime':''}]);
  const [dates, setDates] = useState([{'dayOfWeek': '', 'month': '', 'date': 0}]);

  const [open1, setOpen1] = useState(false);
Severity: Major
Found in src/components/GirlsHooHack2022/Schedule/Schedule.tsx - About 6 hrs to fix

    Function Schedule has 166 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function Schedule() {
      const [events, setEvents] = useState([{'eventName': '', 'link': '', 'startTime': '', 'description': '', 'day': 0, 'linkText': '', 'endTime':''}]);
      const [dates, setDates] = useState([{'dayOfWeek': '', 'month': '', 'date': 0}]);
    
      const [open1, setOpen1] = useState(false);
    Severity: Major
    Found in src/components/GirlsHooHack2023/Schedule/Schedule.tsx - About 6 hrs to fix

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

                      {workshops.length===0 ? <p>Coming Soon!</p> :    
                      <Row className="pt-2">
                        {workshops.map((workshop) => 
                          <Col xs={4} className="hack" key={workshop.id}>
                            <Workshop name={workshop.workshopName} date={workshop.workshopDate} detail={workshop.description} link={workshop.link} linkName={workshop.linkName}></Workshop>
      Severity: Major
      Found in src/components/GirlsHooHack2022/JumpStart/JumpStart.tsx and 1 other location - About 6 hrs to fix
      src/components/GirlsHooHack2023/JumpStart/JumpStart.tsx on lines 133..140

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

      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

                      {workshops.length===0 ? <p>Coming Soon!</p> :    
                      <Row className="pt-2">
                        {workshops.map((workshop) => 
                          <Col xs={4} className="hack" key={workshop.id}>
                            <Workshop name={workshop.workshopName} date={workshop.workshopDate} detail={workshop.description} link={workshop.link} linkName={workshop.linkName}></Workshop>
      Severity: Major
      Found in src/components/GirlsHooHack2023/JumpStart/JumpStart.tsx and 1 other location - About 6 hrs to fix
      src/components/GirlsHooHack2022/JumpStart/JumpStart.tsx on lines 131..138

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

      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

                  {dates.length>0 && <Collapse isOpened={open1}>
                    {day1events.map((event, index) =>
                      <Activity key={index} starttime={event.startTime} endtime={event.endTime} name={event.eventName} link={event.link} linkname={event.linkText} detail={event.description} />
                    )}
                    {day1events.length === 0 && <p>Coming Soon!</p>}
      Severity: Major
      Found in src/components/GirlsHooHack2022/Schedule/Schedule.tsx and 3 other locations - About 6 hrs to fix
      src/components/GirlsHooHack2022/Schedule/Schedule.tsx on lines 161..166
      src/components/GirlsHooHack2023/Schedule/Schedule.tsx on lines 137..142
      src/components/GirlsHooHack2023/Schedule/Schedule.tsx on lines 161..166

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

      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

                  {dates.length>1 && <Collapse isOpened={open2}>
                    {day2events.map((event, index) =>
                      <Activity key={index} starttime={event.startTime} endtime={event.endTime} name={event.eventName} link={event.link} linkname={event.linkText} detail={event.description} />
                    )}
                    {day2events.length === 0 && <p>Coming Soon!</p>}
      Severity: Major
      Found in src/components/GirlsHooHack2022/Schedule/Schedule.tsx and 3 other locations - About 6 hrs to fix
      src/components/GirlsHooHack2022/Schedule/Schedule.tsx on lines 137..142
      src/components/GirlsHooHack2023/Schedule/Schedule.tsx on lines 137..142
      src/components/GirlsHooHack2023/Schedule/Schedule.tsx on lines 161..166

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

      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

                  {dates.length>0 && <Collapse isOpened={open1}>
                    {day1events.map((event, index) =>
                      <Activity key={index} starttime={event.startTime} endtime={event.endTime} name={event.eventName} link={event.link} linkname={event.linkText} detail={event.description} />
                    )}
                    {day1events.length === 0 && <p>Coming Soon!</p>}
      Severity: Major
      Found in src/components/GirlsHooHack2023/Schedule/Schedule.tsx and 3 other locations - About 6 hrs to fix
      src/components/GirlsHooHack2022/Schedule/Schedule.tsx on lines 137..142
      src/components/GirlsHooHack2022/Schedule/Schedule.tsx on lines 161..166
      src/components/GirlsHooHack2023/Schedule/Schedule.tsx on lines 161..166

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

      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

                  {dates.length>1 && <Collapse isOpened={open2}>
                    {day2events.map((event, index) =>
                      <Activity key={index} starttime={event.startTime} endtime={event.endTime} name={event.eventName} link={event.link} linkname={event.linkText} detail={event.description} />
                    )}
                    {day2events.length === 0 && <p>Coming Soon!</p>}
      Severity: Major
      Found in src/components/GirlsHooHack2023/Schedule/Schedule.tsx and 3 other locations - About 6 hrs to fix
      src/components/GirlsHooHack2022/Schedule/Schedule.tsx on lines 137..142
      src/components/GirlsHooHack2022/Schedule/Schedule.tsx on lines 161..166
      src/components/GirlsHooHack2023/Schedule/Schedule.tsx on lines 137..142

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

      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

                    <Collapse isOpened={dropdownOpen}>
                    {workshops.length===0 ? <p>Coming Soon!</p> :
                    <div>
                      {workshops.map((workshop) => 
                          <Workshop key={workshop.id} name={workshop.workshopName} date={workshop.workshopDate} detail={workshop.description} link={workshop.link} linkName={workshop.linkName}></Workshop>)}
      Severity: Major
      Found in src/components/GirlsHooHack2023/JumpStart/JumpStart.tsx and 1 other location - About 5 hrs to fix
      src/components/GirlsHooHack2022/JumpStart/JumpStart.tsx on lines 118..126

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

      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

                    <Collapse isOpened={dropdownOpen}>
                    {workshops.length===0 ? <p>Coming Soon!</p> :
                    <div>
                      {workshops.map((workshop) => 
                          <Workshop key={workshop.id} name={workshop.workshopName} date={workshop.workshopDate} detail={workshop.description} link={workshop.link} linkName={workshop.linkName}></Workshop>)}
      Severity: Major
      Found in src/components/GirlsHooHack2022/JumpStart/JumpStart.tsx and 1 other location - About 5 hrs to fix
      src/components/GirlsHooHack2023/JumpStart/JumpStart.tsx on lines 119..127

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

      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={isMobile ? "" : "row pt-2 pl-3"}>
                  <a href="https://www.instagram.com/gwcuva/" target="_blank" rel="noreferrer noopener"><img src={instagramSocial} alt="Instagram icon" className={isMobile ? "pr-3 pb-3" : "pr-3 pb-3"}/></a>
                  <a href="https://discord.com/invite/rKbWyuDNyG" target="_blank" rel="noreferrer noopener"><img src={discordSocial} alt="Discord icon" className={isMobile ? "pr-3 pb-3" : "pr-3 pb-3"}/></a>
                </div>
      Severity: Major
      Found in src/components/Main/Footer/Contact.tsx and 1 other location - About 5 hrs to fix
      src/components/Main/Footer/Contact.tsx on lines 18..21

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 143.

      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={isMobile ? "" : "row pt-2 pl-3"}>
                  <a href="https://www.facebook.com/gwcuva/" target="_blank" rel="noreferrer noopener"><img src={facebookSocial} alt="Facebook icon" className={isMobile ? "pr-3 pb-3" : "pr-3 pb-3"}/></a>
                  <a href="https://twitter.com/gwcuva" target="_blank" rel="noreferrer noopener"><img src={twitterSocial} alt="Twitter icon" className={isMobile ? "pb-3" : "pr-3 pb-3"}/></a>
                </div>
      Severity: Major
      Found in src/components/Main/Footer/Contact.tsx and 1 other location - About 5 hrs to fix
      src/components/Main/Footer/Contact.tsx on lines 14..17

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

      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

        useEffect(() => {
          const fetchEvents = async () => {
            const { hackathonEvents } = await request(
              process.env.REACT_APP_GRAPHCMS_URL ? process.env.REACT_APP_GRAPHCMS_URL : "",
              `
      Severity: Major
      Found in src/components/GirlsHooHack2022/Schedule/Schedule.tsx and 3 other locations - About 5 hrs to fix
      src/components/GirlsHooHack2022/JumpStart/JumpStart.tsx on lines 16..49
      src/components/GirlsHooHack2023/JumpStart/JumpStart.tsx on lines 16..49
      src/components/GirlsHooHack2023/Schedule/Schedule.tsx on lines 18..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 140.

      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

        useEffect(() => {
          const fetchWorkshops = async () => {
            const { hackathonWorkshops } = await request(
              process.env.REACT_APP_GRAPHCMS_URL ? process.env.REACT_APP_GRAPHCMS_URL : "",
              `
      Severity: Major
      Found in src/components/GirlsHooHack2022/JumpStart/JumpStart.tsx and 3 other locations - About 5 hrs to fix
      src/components/GirlsHooHack2022/Schedule/Schedule.tsx on lines 18..55
      src/components/GirlsHooHack2023/JumpStart/JumpStart.tsx on lines 16..49
      src/components/GirlsHooHack2023/Schedule/Schedule.tsx on lines 18..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 140.

      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

        useEffect(() => {
          const fetchWorkshops = async () => {
            const { hackathonWorkshops } = await request(
              process.env.REACT_APP_GRAPHCMS_URL ? process.env.REACT_APP_GRAPHCMS_URL : "",
              `
      Severity: Major
      Found in src/components/GirlsHooHack2023/JumpStart/JumpStart.tsx and 3 other locations - About 5 hrs to fix
      src/components/GirlsHooHack2022/JumpStart/JumpStart.tsx on lines 16..49
      src/components/GirlsHooHack2022/Schedule/Schedule.tsx on lines 18..55
      src/components/GirlsHooHack2023/Schedule/Schedule.tsx on lines 18..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 140.

      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

        useEffect(() => {
          const fetchEvents = async () => {
            const { hackathonEvents } = await request(
              process.env.REACT_APP_GRAPHCMS_URL ? process.env.REACT_APP_GRAPHCMS_URL : "",
              `
      Severity: Major
      Found in src/components/GirlsHooHack2023/Schedule/Schedule.tsx and 3 other locations - About 5 hrs to fix
      src/components/GirlsHooHack2022/JumpStart/JumpStart.tsx on lines 16..49
      src/components/GirlsHooHack2022/Schedule/Schedule.tsx on lines 18..55
      src/components/GirlsHooHack2023/JumpStart/JumpStart.tsx on lines 16..49

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 140.

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

      function Sponsors() {
      
        const [sponsors, setSponsors] = useState([{'level': '', 'sponsorImage': {'url': ''}, 'sponsorName': '', 'sponsorUrl': '', 'size': ''}]);
      
        useEffect(() => {
      Severity: Major
      Found in src/components/GirlsHooHack2022/Sponsors/Sponsors.tsx - About 5 hrs to fix

        Function JumpStart has 123 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function JumpStart() {
          const [workshops, setWorkshops] = useState([{'id': '', 'workshopName': '', 'workshopDate': '', 'description': '', 'link': '', 'linkName': ''}]);
          const [description, setDescription] = useState({'titleQuestion': '', 'description': ''});
          const [dropdownOpen, setDropdownOpen] = useState(false);
        
        
        Severity: Major
        Found in src/components/GirlsHooHack2022/JumpStart/JumpStart.tsx - About 4 hrs to fix

          Function JumpStart has 123 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function JumpStart() {
            const [workshops, setWorkshops] = useState([{'id': '', 'workshopName': '', 'workshopDate': '', 'description': '', 'link': '', 'linkName': ''}]);
            const [description, setDescription] = useState({'titleQuestion': '', 'description': ''});
            const [dropdownOpen, setDropdownOpen] = useState(false);
          
          
          Severity: Major
          Found in src/components/GirlsHooHack2023/JumpStart/JumpStart.tsx - About 4 hrs to fix
            Severity
            Category
            Status
            Source
            Language