ws-nextjs-app/pages/_document.page.tsx

Summary

Maintainability
B
4 hrs
Test Coverage

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

  render() {
    const { clientSideEnvVariables, css, helmet, ids, isApp, isLite } =
      this.props;

    const htmlAttrs = helmet.htmlAttributes.toComponent();
Severity: Minor
Found in ws-nextjs-app/pages/_document.page.tsx - About 2 hrs to fix

    Function handleServerLogging has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const handleServerLogging = (ctx: DocumentContext) => {
      const url = ctx.asPath || '';
      const headers = removeSensitiveHeaders(ctx.req?.headers);
      const pageType = derivePageType(url);
      const { statusCode } = ctx.res || {};
    Severity: Minor
    Found in ws-nextjs-app/pages/_document.page.tsx - About 1 hr to fix

      Function getInitialProps has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        static async getInitialProps(ctx: DocumentContext) {
          const url = ctx.asPath || '';
          const isApp = isAppPath(url);
          const isLite = isLitePath(url);
      
      
      Severity: Minor
      Found in ws-nextjs-app/pages/_document.page.tsx - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status