zalando/zappr

View on GitHub
server/react/render-static.jsx

Summary

Maintainability
A
1 hr
Test Coverage

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

export default async function renderStatic(ctx, next) {

  const assets = await getStaticAssets()
  const user = ctx.req.user ? ctx.req.user.json : {}
  // at this point the cookie is guaranteed to exist due to previous middleware
Severity: Minor
Found in server/react/render-static.jsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status