akrfjmt/di114514

View on GitHub
container.go

Summary

Maintainability
A
55 mins
Test Coverage

Method container.Define has 9 return statements (exceeds 4 allowed).
Open

func (c *container) Define(name string, value interface{}) error {
    functionReflValue := reflect.ValueOf(value)
    functionReflType := functionReflValue.Type()
    if functionReflType.Kind() != reflect.Func {
        c.instances[name] = value
Severity: Major
Found in container.go - About 55 mins to fix

    There are no issues that match your filters.

    Category
    Status