gwcuva/gwc-website

View on GitHub

Showing 372 of 372 total issues

Function NavbarGHH has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function NavbarGHH() {

  const [navbar, setNavbar] = useState({'registration': '', 'mlhbanner': {'url': ''}, 'mlhwebsite': ''});

  useEffect(() => {
Severity: Major
Found in src/components/GirlsHooHack2022/NavbarGHH/NavbarGHH.tsx - About 2 hrs to fix

    Function NavbarGHH has 51 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function NavbarGHH() {
    
      const [navbar, setNavbar] = useState({'registration': '', 'mlhbanner': {'url': ''}, 'mlhwebsite': ''});
    
      useEffect(() => {
    Severity: Major
    Found in src/components/GirlsHooHack2023/NavbarGHH/NavbarGHH.tsx - About 2 hrs to fix

      Function MobileHeader has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function MobileHeader(props: Props) {
          
          const [header, setHeader] = useState({'year': 2022, 'month': '', 'day': '', 'format': '', 'registration': ''});
      
          useEffect(() => {
      Severity: Minor
      Found in src/components/GirlsHooHack2022/Header/MobileHeader.tsx - About 2 hrs to fix

        Function Newsletter has 50 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function Newsletter() {
            const emailInput = useRef<HTMLInputElement>(null);
            const endpoint = process.env.REACT_APP_GRAPHCMS_URL ? process.env.REACT_APP_GRAPHCMS_URL : "";
            const graphcmsToken = process.env.REACT_APP_GRAPHCMS_TOKEN ? process.env.REACT_APP_GRAPHCMS_TOKEN : "";
            const graphQLClient = new GraphQLClient(endpoint, {
        Severity: Minor
        Found in src/components/GirlsHooHack2023/Newsletter/Newsletter.tsx - About 2 hrs to fix

          Function Newsletter has 50 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function Newsletter() {
              const emailInput = useRef<HTMLInputElement>(null);
              const endpoint = process.env.REACT_APP_GRAPHCMS_URL ? process.env.REACT_APP_GRAPHCMS_URL : "";
              const graphcmsToken = process.env.REACT_APP_GRAPHCMS_TOKEN ? process.env.REACT_APP_GRAPHCMS_TOKEN : "";
              const graphQLClient = new GraphQLClient(endpoint, {
          Severity: Minor
          Found in src/components/GirlsHooHack2022/Newsletter/Newsletter.tsx - About 2 hrs to fix

            Function MobileHeader has 50 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function MobileHeader(props: Props) {
                
                const [header, setHeader] = useState({'year': 2023, 'month': '', 'day': '', 'format': '', 'registration': ''});
            
                useEffect(() => {
            Severity: Minor
            Found in src/components/GirlsHooHack2023/Header/MobileHeader.tsx - About 2 hrs to fix

              Function MobileHeader has 47 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function MobileHeader(props: Props) {
                  const [header, setHeader] = useState({'year': 2023, 'month': '', 'day': '', 'format': '', 'registration': '', 'time': ''});
              
                useEffect(() => {
                  const fetchHeader = async () => {
              Severity: Minor
              Found in src/components/CareerFair2023/Header/MobileHeader.tsx - About 1 hr to fix

                Function MobileHeader has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function MobileHeader(props: Props) {
                    const [header, setHeader] = useState({'year': 2022, 'month': '', 'day': '', 'format': '', 'registration': '', 'time': ''});
                
                  useEffect(() => {
                    const fetchHeader = async () => {
                Severity: Minor
                Found in src/components/CareerFair2022/Header/MobileHeader.tsx - About 1 hr to fix

                  Function MobileHeader has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function MobileHeader(props: Props) {
                      const [header, setHeader] = useState({'year': 2024, 'month': '', 'day': '', 'format': '', 'registration': '', 'time': ''});
                  
                    useEffect(() => {
                      const fetchHeader = async () => {
                  Severity: Minor
                  Found in src/components/CareerFair2024/Header/MobileHeader.tsx - About 1 hr to fix

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

                            <Row className={`${props.circle ? "justify-content-center" : "justify-content-end"} pb-4`}>
                              <a href='#stats' onClick={props.toggle} className="mono text-peacock interactive">the gap</a>
                            </Row>
                    Severity: Major
                    Found in src/components/Main/Navbar/NavContents.tsx and 2 other locations - About 1 hr to fix
                    src/components/Main/Navbar/NavContents.tsx on lines 18..20
                    src/components/Main/Navbar/NavContents.tsx on lines 21..23

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

                    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

                            <Row className={`${props.circle ? "justify-content-center" : "justify-content-end"} pb-4`}>
                              <a href='#about' onClick={props.toggle} className="mono text-peacock interactive">the mission</a>
                            </Row>
                    Severity: Major
                    Found in src/components/Main/Navbar/NavContents.tsx and 2 other locations - About 1 hr to fix
                    src/components/Main/Navbar/NavContents.tsx on lines 15..17
                    src/components/Main/Navbar/NavContents.tsx on lines 21..23

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

                    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

                            <Row className={`${props.circle ? "justify-content-center" : "justify-content-end"}`}>
                              <a href='#team' onClick={props.toggle} className="mono text-peacock interactive">the team</a>
                            </Row>
                    Severity: Major
                    Found in src/components/Main/Navbar/NavContents.tsx and 2 other locations - About 1 hr to fix
                    src/components/Main/Navbar/NavContents.tsx on lines 15..17
                    src/components/Main/Navbar/NavContents.tsx on lines 18..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 72.

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

                    function Prizes(): JSX.Element {
                      const [prizes, setPrizes] = useState([{'id': '', 'prizeName': '', 'prizeObject': '', 'description': ''}]);
                    
                      useEffect(() => {
                        const fetchPrizes = async () => {
                    Severity: Minor
                    Found in src/components/GirlsHooHack2023/Prizes/Prizes.tsx - About 1 hr to fix

                      Function Prizes has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function Prizes(): JSX.Element {
                        const [prizes, setPrizes] = useState([{'id': '', 'prizeName': '', 'prizeObject': '', 'description': ''}]);
                      
                        useEffect(() => {
                          const fetchPrizes = async () => {
                      Severity: Minor
                      Found in src/components/GirlsHooHack2022/Prizes/Prizes.tsx - About 1 hr to fix

                        Function Prizes has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function Prizes(): JSX.Element {
                          const [prizes, setPrizes] = useState([{'id': '', 'prizeName': '', 'prizeObject': '', 'description': ''}]);
                        
                          useEffect(() => {
                            const fetchPrizes = async () => {
                        Severity: Minor
                        Found in src/components/GirlsHooHack2021/Prizes/Prizes.tsx - About 1 hr to fix

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

                          function About() {
                            const [description, setDescription] = useState([{'id': '', 'ghhDescription': '', 'gwcDescription': ''}]);
                            let ghhDescription = [];
                            let gwcDescription = [];
                            
                          Severity: Minor
                          Found in src/components/GirlsHooHack2021/About/About.tsx - About 1 hr to fix

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

                                            {prizes.map((prize) => 
                                            <PrizeItem key={prize.id} name={prize.prizeName} object={prize.prizeObject} detail={prize.description} ></PrizeItem>)}
                            Severity: Major
                            Found in src/components/GirlsHooHack2021/Prizes/Prizes.tsx and 1 other location - About 1 hr to fix
                            src/components/GirlsHooHack2021/Prizes/Prizes.tsx on lines 46..47

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

                            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 xs={3} className={isMobile ? "pt-0 mt-n4":"pt-0 mt-n5"}>
                                      <Col xs={3}></Col>
                                      <h1 className="text-white">MAKING</h1>
                                    </Row>
                            Severity: Major
                            Found in src/components/Main/Header/Header.tsx and 1 other location - About 1 hr to fix
                            src/components/Main/Header/Header.tsx on lines 33..36

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

                            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 xs={3} className={isMobile ? "pt-0 mt-n4":"pt-0 mt-n5"}>
                                      <Col xs={2}></Col>
                                      <h1 className="text-white">WAVES</h1>
                                    </Row>
                            Severity: Major
                            Found in src/components/Main/Header/Header.tsx and 1 other location - About 1 hr to fix
                            src/components/Main/Header/Header.tsx on lines 28..31

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

                            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

                                              {prizes.map((prize) => 
                                                <PrizeItem key={prize.id} name={prize.prizeName} object={prize.prizeObject} detail={prize.description} ></PrizeItem>)}
                            Severity: Major
                            Found in src/components/GirlsHooHack2021/Prizes/Prizes.tsx and 1 other location - About 1 hr to fix
                            src/components/GirlsHooHack2021/Prizes/Prizes.tsx on lines 39..40

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

                            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