fabien0102/gatsby-starter

View on GitHub

Showing 6 of 24,078 total issues

File graphql-types.d.ts has 2734 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// tslint:disable
export type Maybe<T> = T | null;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
  ID: string;
Severity: Major
Found in src/graphql-types.d.ts - About 1 wk to fix

    Function BlogPostPage has 85 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const BlogPostPage = (props: BlogPostProps) => {
      const { frontmatter, html, timeToRead } = props.data.post;
      const avatar = frontmatter.author.avatar.children[0] as ImageSharp;
    
      const tags = props.data.post.frontmatter.tags
    Severity: Major
    Found in src/templates/blog-post.tsx - About 3 hrs to fix

      Function exports has 74 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = plop => {
        plop.addHelper('propsHelper', text => `{${text}}`);
        plop.setGenerator('component', {
          prompts: [
            {
      Severity: Major
      Found in generators/component-generator.js - About 2 hrs to fix

        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

          Function exports has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          module.exports = plop => {
            plop.setGenerator('blog post', {
              prompts: [
                {
                  type: 'input',
          Severity: Minor
          Found in generators/blog-post-generator.js - About 1 hr to fix

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

                actions: data => {
                  // Parse data for easy templating
                  data = unflatten(data);
                  data.props = data.props || [];
                  data.haveRequiredProps = data.props.reduce(
            Severity: Minor
            Found in generators/component-generator.js - About 1 hr to fix
              Severity
              Category
              Status
              Source
              Language