EmaSuriano/gatsby-starter-mate

View on GitHub

Showing 6 of 12 total issues

Function LandingPage has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const LandingPage = () => {
  const { name, roles, socialLinks, deterministic } = useSiteQuery();

  return (
    <Section.Container id={SECTION.home} Background={Background}>
Severity: Minor
Found in src/sections/Landing.tsx - About 1 hr to fix

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

    export const useMediumQuery = (): Response => {
      const { mediumUser } = useStaticQuery<QueryResponse>(graphql`
        query MediumPostQuery {
          mediumUser {
            id
    Severity: Minor
    Found in src/queries/useMediumQuery.ts - About 1 hr to fix

      Function Header has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const Header = () => {
        const { profile } = useHelmetQuery();
      
        return (
          <StyledHeadroom>
      Severity: Minor
      Found in src/components/Header.tsx - About 1 hr to fix

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

        const Footer = () => {
          const { name, socialLinks } = useSiteQuery();
        
          return (
            <Box p={[2, 3]} backgroundColor="primary" id="footer" as="footer">
        Severity: Minor
        Found in src/components/Footer.tsx - About 1 hr to fix

          Function useProjectsQuery has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export const useProjectsQuery = (): Project[] => {
            const { contentfulAbout } = useStaticQuery<QueryResponse>(graphql`
              query ProjectsQuery {
                contentfulAbout {
                  projects {
          Severity: Minor
          Found in src/queries/useProjectsQuery.ts - About 1 hr to fix

            Function useAboutMeQuery has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export const useAboutMeQuery = (): AboutMe => {
              const {
                contentfulAbout: { aboutMe, profile },
              } = useStaticQuery<QueryResponse>(graphql`
                query AboutMeQuery {
            Severity: Minor
            Found in src/queries/useAboutMeQuery.ts - About 1 hr to fix
              Severity
              Category
              Status
              Source
              Language