gwcuva/gwc-website

View on GitHub

Showing 372 of 372 total issues

Function Sponsors has 122 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function Sponsors() {
  /*return (
    <Row className={`bg-hack-grey justify-content-center py-5`}>
      <Col sm={10} xs={11} className={isMobile ? "my-3" : "my-5 py-5"}>
        <h2 className="text-orange hack">Companies Attending</h2>
Severity: Major
Found in src/components/CareerFair2024/Sponsors/Sponsors.tsx - About 4 hrs to fix

    Function Sponsors has 122 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/GirlsHooHack2023/Sponsors/Sponsors.tsx - About 4 hrs to fix

      Function MobileNavbarGHHs has 122 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function MobileNavbarGHHs() {
      
          const [menuOpen, setMenuOpen] = useState(false);
      
          const menuClosedHandler = () => {
      Severity: Major
      Found in src/components/GirlsHooHack2023/NavbarGHH/MobileNavbarGHHs.tsx - About 4 hrs to fix

        Function Sponsors has 122 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function Sponsors() {
          /*return (
            <Row className={`bg-hack-grey justify-content-center py-5`}>
              <Col sm={10} xs={11} className={isMobile ? "my-3" : "my-5 py-5"}>
                <h2 className="text-orange hack">Companies Attending</h2>
        Severity: Major
        Found in src/components/CareerFair2022/Sponsors/Sponsors.tsx - About 4 hrs to fix

          Function MobileNavbarGHHs has 122 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function MobileNavbarGHHs() {
          
              const [menuOpen, setMenuOpen] = useState(false);
          
              const menuClosedHandler = () => {
          Severity: Major
          Found in src/components/GirlsHooHack2022/NavbarGHH/MobileNavbarGHHs.tsx - About 4 hrs to fix

            Function Sponsors has 122 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function Sponsors() {
              /*return (
                <Row className={`bg-hack-grey justify-content-center py-5`}>
                  <Col sm={10} xs={11} className={isMobile ? "my-3" : "my-5 py-5"}>
                    <h2 className="text-orange hack">Companies Attending</h2>
            Severity: Major
            Found in src/components/CareerFair2023/Sponsors/Sponsors.tsx - About 4 hrs to fix

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

              function Schedule() {
                // const [events, setEvents] = useState([{'id': '', 'eventName': '', 'link': '', 'time': '', 'description': ''}]);
                // const [dates, setDates] = useState(['']);
              
                const [open1, setOpen1] = useState(false);
              Severity: Major
              Found in src/components/GirlsHooHack2021/Schedule/Schedule.tsx - About 4 hrs to fix

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

                          <Row className="d-flex justify-content-center">
                            <img src={image1} alt="image1 goes here" className="border-turq" width={isMobile ? "130px" : "300px"} height={isMobile ? "100px" : "230px"} />
                            <img src={image2} alt="image1 goes here" className="border-blue" width={isMobile ? "130px" : "300px"} height={isMobile ? "100px" : "230px"} />
                          </Row>
                Severity: Major
                Found in src/components/Main/Photos/Photos.tsx and 1 other location - About 4 hrs to fix
                src/components/Main/Photos/Photos.tsx on lines 21..24

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

                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

                          <Row className="d-flex justify-content-center">
                            <img src={image3} alt="image1 goes here" className="border-orange" width={isMobile ? "130px" : "300px"} height={isMobile ? "100px" : "230px"} />
                            <img src={image4} alt="image1 goes here" className="border-peach" width={isMobile ? "130px" : "300px"} height={isMobile ? "100px" : "230px"} />
                          </Row>
                Severity: Major
                Found in src/components/Main/Photos/Photos.tsx and 1 other location - About 4 hrs to fix
                src/components/Main/Photos/Photos.tsx on lines 17..20

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

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

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

                  Function Sponsors has 100 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/GirlsHooHack2021/Sponsors/Sponsors.tsx - About 4 hrs to fix

                    Function Footer has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function Footer() {
                      return (
                        <div className="bg-peacock">
                          <Row className={`${isMobile ? "footerLogoMobile" : "footerLogoDesktop"} position-absolute`}>
                            <img src={whiteLogo} 
                    Severity: Major
                    Found in src/components/GirlsHooHack2023/Footer/Footer.tsx - About 3 hrs to fix

                      Function Footer has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function Footer() {
                        return (
                          <div className="bg-peacock">
                            <Row className={`${isMobile ? "footerLogoMobile" : "footerLogoDesktop"} position-absolute`}>
                              <img src={whiteLogo} 
                      Severity: Major
                      Found in src/components/GirlsHooHack2022/Footer/Footer.tsx - About 3 hrs to fix

                        Function Footer has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function Footer() {
                          return (
                            <div className="bg-peacock">
                              <Row className={`${isMobile ? "footerLogoMobile" : "footerLogoDesktop"} position-absolute`}>
                                <img src={whiteLogo} 
                        Severity: Major
                        Found in src/components/GirlsHooHack2021/Footer/Footer.tsx - About 3 hrs to fix

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

                            if(dates.length === 2) {
                              const date1 = dates[0];
                              const date2 = dates[1];
                              if((date1.month !== date2.month && date1.date < date2.date) || (date1.date > date2.date)) {
                                dates[1] = date1;
                          Severity: Major
                          Found in src/components/GirlsHooHack2022/Schedule/Schedule.tsx and 1 other location - About 3 hrs to fix
                          src/components/GirlsHooHack2023/Schedule/Schedule.tsx on lines 57..64

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

                          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

                            if(dates.length === 2) {
                              const date1 = dates[0];
                              const date2 = dates[1];
                              if((date1.month !== date2.month && date1.date < date2.date) || (date1.date > date2.date)) {
                                dates[1] = date1;
                          Severity: Major
                          Found in src/components/GirlsHooHack2023/Schedule/Schedule.tsx and 1 other location - About 3 hrs to fix
                          src/components/GirlsHooHack2022/Schedule/Schedule.tsx on lines 57..64

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

                          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

                              useEffect(() => {
                                const fetchKeynotes = async () => {
                                  const { hackathonKeynotes } = await request(
                                    process.env.REACT_APP_GRAPHCMS_URL ? process.env.REACT_APP_GRAPHCMS_URL : "",
                                    `
                          Severity: Major
                          Found in src/components/GirlsHooHack2022/Speakers/Speakers.tsx and 2 other locations - About 3 hrs to fix
                          src/components/GirlsHooHack2021/Speakers/Speakers.tsx on lines 11..56
                          src/components/GirlsHooHack2023/Speakers/Speakers.tsx on lines 12..56

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

                          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

                              useEffect(() => {
                                const fetchKeynotes = async () => {
                                  const { hackathonKeynotes } = await request(
                                    process.env.REACT_APP_GRAPHCMS_URL ? process.env.REACT_APP_GRAPHCMS_URL : "",
                                    `
                          Severity: Major
                          Found in src/components/GirlsHooHack2023/Speakers/Speakers.tsx and 2 other locations - About 3 hrs to fix
                          src/components/GirlsHooHack2021/Speakers/Speakers.tsx on lines 11..56
                          src/components/GirlsHooHack2022/Speakers/Speakers.tsx on lines 11..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 109.

                          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

                              useEffect(() => {
                                const fetchKeynotes = async () => {
                                  const { hackathonKeynotes } = await request(
                                    process.env.REACT_APP_GRAPHCMS_URL ? process.env.REACT_APP_GRAPHCMS_URL : "",
                                    `
                          Severity: Major
                          Found in src/components/GirlsHooHack2021/Speakers/Speakers.tsx and 2 other locations - About 3 hrs to fix
                          src/components/GirlsHooHack2022/Speakers/Speakers.tsx on lines 11..55
                          src/components/GirlsHooHack2023/Speakers/Speakers.tsx on lines 12..56

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

                          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 &&
                                        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} />
                                        )
                                      }
                          Severity: Major
                          Found in src/components/GirlsHooHack2023/Schedule/Schedule.tsx and 3 other locations - About 3 hrs to fix
                          src/components/GirlsHooHack2022/Schedule/Schedule.tsx on lines 176..180
                          src/components/GirlsHooHack2022/Schedule/Schedule.tsx on lines 184..188
                          src/components/GirlsHooHack2023/Schedule/Schedule.tsx on lines 177..181

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

                          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