teamdigitale/digital-citizenship-functions

View on GitHub
lib/compute_visible_services.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function index has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export async function index(context: Context): Promise<void | IOutputBindings> {
  const logLevel = isProduction ? "info" : "debug";
  configureAzureContextTransport(context, winston, logLevel);
  try {
    // iterate over the whole services collection and collect visible services
Severity: Minor
Found in lib/compute_visible_services.ts - About 1 hr to fix

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

    function reduceServicesToVisibleServices(
      visibleServicesObj: StrMap<VisibleService>,
      service: RetrievedService
    ): StrMap<VisibleService> {
      // we use an in-memory object (map)
    Severity: Minor
    Found in lib/compute_visible_services.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status