Skip to content

codeClimate issue: Function Service has 33 lines of code. #6

@AnasBoulmane

Description

@AnasBoulmane

Function Service has 33 lines of code (exceeds 25 allowed). Consider refactoring. OPEN

export function Service<T, K extends keyof T> (
  optionsOrServiceName?: ServiceOptions<T, K> | Token<any> | string | any[] | (() => any),
  maybeFactory?: (...args: any[]) => any,
): any {
  if (arguments.length === 2 || optionsOrServiceName instanceof Function) {

Severity: Minor
Found in: src/decorators/Service.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