server/pkg/tasks_manager/backend.go
Method Manager.Paths
has 109 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *Manager) Paths() []*framework.Path {
return []*framework.Path{
{
Pattern: pathPatternConfigure,
HelpSynopsis: "Configure the task manager",
Method Manager.pathTaskLogRead
has 61 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *Manager) pathTaskLogRead(ctx context.Context, req *logical.Request, fields *framework.FieldData) (*logical.Response, error) {
offset := fields.Get(fieldNameOffset).(int)
limit := fields.Get(fieldNameLimit).(int)
uuid := fields.Get(fieldNameUUID).(string)
Method Manager.pathTaskLogRead
has 12 return statements (exceeds 4 allowed). Open
Open
func (m *Manager) pathTaskLogRead(ctx context.Context, req *logical.Request, fields *framework.FieldData) (*logical.Response, error) {
offset := fields.Get(fieldNameOffset).(int)
limit := fields.Get(fieldNameLimit).(int)
uuid := fields.Get(fieldNameUUID).(string)