packages/metalsmith-build-cache/index.ts
Showing 3 of 3 total issues
Function metalsmith
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
metalsmith(realMetalsmith: Metalsmith, options: Options = {}): Metalsmith { const { run } = realMetalsmith; // @ts-expect-error Metalsmith.run()'s three different signatures makes TypeScript mad here realMetalsmith.run = async ( inputFiles: Metalsmith.Files,
Function run
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
realMetalsmith.run = async ( inputFiles: Metalsmith.Files, argTwo: Metalsmith.Callback | Metalsmith.Plugin[] | undefined, argThree: Metalsmith.Callback | undefined, ) => {
Function metalsmith
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
metalsmith(realMetalsmith: Metalsmith, options: Options = {}): Metalsmith { const { run } = realMetalsmith; // @ts-expect-error Metalsmith.run()'s three different signatures makes TypeScript mad here realMetalsmith.run = async ( inputFiles: Metalsmith.Files,
- Read upRead up