firebase/superstatic

View on GitHub
src/providers/fs.ts

Summary

Maintainability
A
2 hrs
Test Coverage

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

module.exports = function provider(options: any) {
  const etagCache: Record<string, { timestamp: Date; value: string }> = {};
  const cwd = options.cwd || process.cwd();
  let publicPaths: string[] = options.public || ["."];
  if (!Array.isArray(publicPaths)) {
Severity: Major
Found in src/providers/fs.ts - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status