server/pkg/tasks_manager/periodic.go

Summary

Maintainability
A
1 hr
Test Coverage
C
73%

Method Manager.cleanupTaskHistory has 7 return statements (exceeds 4 allowed).
Open

func (m *Manager) cleanupTaskHistory(ctx context.Context, req *logical.Request) error {
    // define taskHistoryLimit
    taskHistoryLimit := fieldDefaultTaskHistoryLimit
    {
        config, err := getConfiguration(ctx, req.Storage)
Severity: Major
Found in server/pkg/tasks_manager/periodic.go - About 45 mins to fix

    Method Manager.PeriodicFunc has 5 return statements (exceeds 4 allowed).
    Open

    func (m *Manager) PeriodicFunc(ctx context.Context, req *logical.Request) error {
        // lock manager
        m.mu.Lock()
        defer m.mu.Unlock()
    
    
    Severity: Major
    Found in server/pkg/tasks_manager/periodic.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status