Skip to content

codeClimane issue: Function set has a Cognitive Complexity of 11. #7

@AnasBoulmane

Description

@AnasBoulmane

Function set has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. OPEN

  set (
    identifierOrServiceMetadata: ServiceIdentifier | ServiceMetadata<any, any> | (Array<ServiceMetadata<any, any>>),
    value?: any,
  ): this {
    if (identifierOrServiceMetadata instanceof Array) {

Severity: Minor
Found in: src/ContainerInstance.ts - About 1 hr to fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions