fabien0102/gatsby-starter

View on GitHub
src/pages/blog.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function BlogPage has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const BlogPage = (props: BlogProps) => {
  const tags = props.data.tags.group;
  const posts = props.data.posts.edges;
  const { pathname } = props.location;
  const pageCount = Math.ceil(props.data.posts.totalCount / 10);
Severity: Major
Found in src/pages/blog.tsx - About 2 hrs to fix

    TODO found
    Open

      // TODO export posts in a proper component
    Severity: Minor
    Found in src/pages/blog.tsx by fixme

    There are no issues that match your filters.

    Category
    Status