lib/compute_visible_services.ts
Function index
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Function reduceServicesToVisibleServices
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function reduceServicesToVisibleServices(
visibleServicesObj: StrMap<VisibleService>,
service: RetrievedService
): StrMap<VisibleService> {
// we use an in-memory object (map)