server/pkg/tasks_manager/backend.go

Summary

Maintainability
B
6 hrs
Test Coverage
A
93%

Method Manager.Paths has 109 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (m *Manager) Paths() []*framework.Path {
    return []*framework.Path{
        {
            Pattern:      pathPatternConfigure,
            HelpSynopsis: "Configure the task manager",
Severity: Major
Found in server/pkg/tasks_manager/backend.go - About 3 hrs to fix

    Method Manager.pathTaskLogRead has 61 lines of code (exceeds 50 allowed). Consider refactoring.
    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)
    
    
    Severity: Minor
    Found in server/pkg/tasks_manager/backend.go - About 1 hr to fix

      Method Manager.pathTaskLogRead has 12 return statements (exceeds 4 allowed).
      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)
      
      
      Severity: Major
      Found in server/pkg/tasks_manager/backend.go - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status