pkg/api/api.go
Function Initialize
has 153 lines of code (exceeds 50 allowed). Consider refactoring. Open
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{
Function Initialize
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
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 {