maxgherman/TypeIOC

View on GitHub
src/decorators/decorator.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function createRegister has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createRegister<R>(builder: IContainerBuilder, isSelf = false) {
    return (api: IDecoratorRegistrationApi<R>): ClassDecorator => (target) => {

        if (!isPrototype(target)) {
            throw new DecoratorError(
Severity: Minor
Found in src/decorators/decorator.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status