RomainMuller/pko

View on GitHub
lib/start-verdaccio.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

export async function startVerdaccio(storage: string, forPublishing: boolean): Promise<VerdaccioHandle> {
  const packages = forPublishing ? { '**': { access: '$all', publish: '$all' } } : await buildPackageConfig(storage);
  return await new Promise<VerdaccioHandle>((resolve, reject) => {
    function verdaccioHandler(webServer: http.Server, addr: any, _pkgName: string, _pkgVersion: string) {
      webServer.listen(addr.port || addr.path, addr.host, () => {
Severity: Minor
Found in lib/start-verdaccio.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status