lib/plugins/console/generate.ts

Summary

Maintainability
A
2 hrs
Test Coverage

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

  writeFile(path: string, force?: boolean): Promise<any> {
    const { route, log } = this.context;
    const publicDir = this.context.public_dir;
    const Cache = this.context.model('Cache');
    const dataStream = this.wrapDataStream(route.get(path));
Severity: Minor
Found in lib/plugins/console/generate.ts - About 1 hr to fix

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

      firstGenerate(): Promise<void> {
        const { concurrency } = this;
        const { route, log } = this.context;
        const publicDir = this.context.public_dir;
        const Cache = this.context.model('Cache');
    Severity: Minor
    Found in lib/plugins/console/generate.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status