patrickarlt/acetate

View on GitHub
lib/modes/middleware.js

Summary

Maintainability
B
4 hrs
Test Coverage

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

module.exports = function(acetate) {
  const pagesCache = {};

  const acetateMiddleware = function acetateMiddleware(
    request,
Severity: Major
Found in lib/modes/middleware.js - About 2 hrs to fix

    Function acetateMiddleware has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      const acetateMiddleware = function acetateMiddleware(
        request,
        response,
        next
      ) {
    Severity: Minor
    Found in lib/modes/middleware.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status