Showing 7 of 7 total issues
Function simpleStatic
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const simpleStatic = (options: Opts): Middleware => {
const dir = normalize(options.dir)
const files = {}
readDir(dir).forEach((name: string): void => {
Avoid too many return
statements within this function. Open
Open
return
Avoid too many return
statements within this function. Open
Open
return
Avoid too many return
statements within this function. Open
Open
return
Avoid too many return
statements within this function. Open
Open
return
Avoid too many return
statements within this function. Open
Open
return
Avoid too many return
statements within this function. Open
Open
return