gwcuva/gwc-website

View on GitHub

Showing 372 of 372 total issues

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

function Schedule() {
  const [workshops, setWorkshops] = useState([{'id': '', 'eventName': '', 'eventDetail': '', 'startTime': '', 'zoomLink': '', 'inPerson': ''}]);
  // const [dropdownOpen, setDropdownOpen] = useState(false);

  useEffect(() => {
Severity: Minor
Found in src/components/CareerFair2024/Schedule/Schedule.tsx - About 1 hr to fix

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

    function Schedule() {
      const [workshops, setWorkshops] = useState([{'id': '', 'eventName': '', 'eventDetail': '', 'startTime': '', 'zoomLink': '', 'inPerson': ''}]);
      // const [dropdownOpen, setDropdownOpen] = useState(false);
    
      useEffect(() => {
    Severity: Minor
    Found in src/components/CareerFair2023/Schedule/Schedule.tsx - About 1 hr to fix

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

                         <h3 className="mono text-peach hack mb-4"> <a className="mono text-peach hack mb-4"
                       href="https://www.signupgenius.com/go/10C0E4DADAD2FA5F9CE9-signupcf" target="_blank" rel="noreferrer noopener"> <u>
                         SIGN UP</u> </a> for career panels and 1:1 sessions </h3> 
      Severity: Major
      Found in src/components/CareerFair2022/Signup/Signup.tsx and 1 other location - About 1 hr to fix
      src/components/CareerFair2022/Signup/Signup.tsx on lines 11..13

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

      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

                      <h3 className="mono text-peach hack mb-4"> <a className="mono text-peach hack mb-4"
                       href="https://forms.gle/JbkndWdHQCLwDuo68" target="_blank" rel="noreferrer noopener"> <u>
                         REGISTER</u> </a> to save your spot and submit a resume </h3>
      Severity: Major
      Found in src/components/CareerFair2022/Signup/Signup.tsx and 1 other location - About 1 hr to fix
      src/components/CareerFair2022/Signup/Signup.tsx on lines 14..16

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

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

      function Location() {
        
        const [location, setLocation] = useState({'virtual': '', 'inPerson': '', 'id': ''});
      
        useEffect(() => {
      Severity: Minor
      Found in src/components/CareerFair2023/Location/Location.tsx - About 1 hr to fix

        Function Location has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function Location() {
          
          const [location, setLocation] = useState({'virtual': '', 'inPerson': '', 'id': ''});
        
          useEffect(() => {
        Severity: Minor
        Found in src/components/CareerFair2024/Location/Location.tsx - About 1 hr to fix

          Function CareerFairLocation has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function CareerFairLocation() {
            
            const [location, setLocation] = useState({'virtual': '', 'inPerson': '', 'id': ''});
          
            useEffect(() => {
          Severity: Minor
          Found in src/components/CareerFair2022/Location/Location.tsx - About 1 hr to fix

            Function CareerFairLocation has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function CareerFairLocation() {
              
              const [location, setLocation] = useState({'virtual': '', 'inPerson': '', 'id': ''});
            
              useEffect(() => {
            Severity: Minor
            Found in src/components/CareerFair/Location/Location.tsx - About 1 hr to fix

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

                              <a href="https://mlh.io/na?utm_source=na-hackathon&utm_medium=TrustBadge&utm_campaign=2023-season&utm_content=white" target="_blank" rel="noreferrer noopener">
                                  <img className="mlhbannermobile" src={mlh2022banner} alt="Major League Hacking 2023 Hackathon Season" width="85" height="110"/> 
                              </a>
              Severity: Major
              Found in src/components/GirlsHooHack2021/Header/MobileHeader.tsx and 1 other location - About 1 hr to fix
              src/components/GirlsHooHack2021/NavbarGHH/NavbarGHH.tsx on lines 26..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 62.

              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

                        <a href="https://mlh.io/" target="_blank" rel="noreferrer noopener">
                          <img className="mlhbanner" src={mlh2022banner} alt="Major League Hacking 2022 Hackathon Season" width="100" height="170"/> 
                        </a>
              Severity: Major
              Found in src/components/GirlsHooHack2021/NavbarGHH/NavbarGHH.tsx and 1 other location - About 1 hr to fix
              src/components/GirlsHooHack2021/Header/MobileHeader.tsx on lines 19..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 62.

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

              function App() {
                return (
                  <BrowserRouter>
                    <Switch>
                      <Route exact path="/branding">
              Severity: Minor
              Found in src/App.tsx - About 1 hr to fix

                Function FAQ has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function FAQ() {
                
                  const [faq, setFaq] = useState([{'question': '', 'answer': ''}]);
                
                  useEffect(() => {
                Severity: Minor
                Found in src/components/GirlsHooHack2021/FAQ/FAQ.tsx - About 1 hr to fix

                  Function FAQ has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function FAQ() {
                  
                    const [faq, setFaq] = useState([{'question': '', 'answer': ''}]);
                  
                    useEffect(() => {
                  Severity: Minor
                  Found in src/components/CareerFair2022/FAQ/FAQ.tsx - About 1 hr to fix

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

                    function Footer(props: Props) {
                      return (
                        <div id={props.id}>
                          <img src={footerWaves} style={{transform: 'rotate(180deg)', marginBottom:-1}} alt="Orange wave"/>
                          <div className="bg-orange d-flex flex-row pb-5 pt-5">
                    Severity: Minor
                    Found in src/components/Main/Footer/Footer.tsx - About 1 hr to fix

                      Function FAQ has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function FAQ() {
                      
                        const [faq, setFaq] = useState([{'question': '', 'answer': ''}]);
                      
                        useEffect(() => {
                      Severity: Minor
                      Found in src/components/CareerFair2023/FAQ/FAQ.tsx - About 1 hr to fix

                        Function FAQ has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function FAQ() {
                        
                          const [faq, setFaq] = useState([{'question': '', 'answer': ''}]);
                        
                          useEffect(() => {
                        Severity: Minor
                        Found in src/components/CareerFair2024/FAQ/FAQ.tsx - About 1 hr to fix

                          Function PrizeItem has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function PrizeItem(props: Props): JSX.Element {
                              const [dropdownOpen, setDropdownOpen] = useState(false);
                          
                              if(isMobile) {
                                  return (
                          Severity: Minor
                          Found in src/components/GirlsHooHack2021/Prizes/PrizeItem.tsx - About 1 hr to fix

                            Function OneOnOneSchedule has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function OneOnOneSchedule() {
                                const [oneOnOne, setOneOnOne] = useState([{'id': '', 'eventName': '', 'eventDetail': '', 'startTime': '', 'zoomLink': '', 'inPerson': ''}]);
                                // const [dropdownOpen, setDropdownOpen] = useState(false);
                              
                                useEffect(() => {
                            Severity: Minor
                            Found in src/components/CareerFair2023/OneOnOneSchedule/OneOnOneSchedule.tsx - About 1 hr to fix

                              Function OneOnOneSchedule has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function OneOnOneSchedule() {
                                  const [oneOnOne, setOneOnOne] = useState([{'id': '', 'eventName': '', 'eventDetail': '', 'startTime': '', 'zoomLink': '', 'inPerson': ''}]);
                                  // const [dropdownOpen, setDropdownOpen] = useState(false);
                                
                                  useEffect(() => {
                              Severity: Minor
                              Found in src/components/CareerFair2022/OneOnOneSchedule/OneOnOneSchedule.tsx - About 1 hr to fix

                                Function About has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function About(props: Props) {
                                
                                  const [aboutLists, setAboutLists] = useState([{'header': '', 'items': []}]);
                                  
                                  useEffect(() => {
                                Severity: Minor
                                Found in src/components/Main/About/About.tsx - About 1 hr to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language