vorteil/direktiv

View on GitHub
pkg/api/api.go

Summary

Maintainability
B
6 hrs
Test Coverage

Function Initialize has 153 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func Initialize(app core.App, db *database.SQLStore, bus *pubsub2.Bus, instanceManager *instancestore.InstanceManager, wakeByEvents events.WakeEventsWaiter, startByEvents events.WorkflowStart, circuit *core.Circuit) error {
    funcCtr := &serviceController{
        manager: app.ServiceManager,
    }
    fsCtr := &fsController{
Severity: Major
Found in pkg/api/api.go - About 5 hrs to fix

    Function Initialize has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func Initialize(app core.App, db *database.SQLStore, bus *pubsub2.Bus, instanceManager *instancestore.InstanceManager, wakeByEvents events.WakeEventsWaiter, startByEvents events.WorkflowStart, circuit *core.Circuit) error {
    Severity: Major
    Found in pkg/api/api.go - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status