makeomatic/mservice

View on GitHub
packages/plugin-prometheus/src/prometheus.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function attach has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export async function attach(this: Microfleet, opts: Partial<Config> = {}): Promise<PluginInterface> {
  assert(this.hasPlugin('validator'), new NotFoundError('validator module must be included'))

  // load local schemas
  await this.validator.addLocation(resolve(__dirname, '../schemas'))
Severity: Minor
Found in packages/plugin-prometheus/src/prometheus.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status