alxshelepenok/gatsby-starter-lumen

View on GitHub

Showing 2 of 2 total issues

Function ThemeSwitcher has 99 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const ThemeSwitcher: React.FC = () => {
  const [{ mode }, toggleTheme] = useTheme();
  const [isClient, setIsClient] = useState<boolean>(false);

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

    Function useSiteMetadata has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const useSiteMetadata = () => {
      const { site } = useStaticQuery(graphql`
        query SiteMetaData {
          site {
            siteMetadata {
    Severity: Minor
    Found in src/hooks/use-site-metadata.ts - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language