GladysProject/Gladys

View on GitHub
server/lib/service/service.load.js

Summary

Maintainability
A
1 hr
Test Coverage

Function load has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function load(gladys) {
  const SERVICES_TO_LOAD = Object.keys(this.servicesFromFiles);
  await Promise.all(
    SERVICES_TO_LOAD.map(async (service) => {
      const serviceToInsertOrUpdate = {
Severity: Minor
Found in server/lib/service/service.load.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status