ory-am/hydra

View on GitHub
driver/config/provider.go

Summary

Maintainability
D
1 day
Test Coverage

DefaultProvider has 73 methods (exceeds 20 allowed). Consider refactoring.
Open

type DefaultProvider struct {
    l *logrusx.Logger
    p *configx.Provider
    c contextx.Contextualizer
}
Severity: Major
Found in driver/config/provider.go - About 1 day to fix

    File provider.go has 558 lines of code (exceeds 500 allowed). Consider refactoring.
    Open

    // Copyright © 2022 Ory Corp
    // SPDX-License-Identifier: Apache-2.0
    
    package config
    
    
    Severity: Minor
    Found in driver/config/provider.go - About 3 hrs to fix

      Method DefaultProvider.getHookConfig has 5 return statements (exceeds 4 allowed).
      Open

      func (p *DefaultProvider) getHookConfig(ctx context.Context, key string) *HookConfig {
          if hookURL := p.getProvider(ctx).RequestURIF(key, nil); hookURL != nil {
              return &HookConfig{
                  URL: hookURL.String(),
              }
      Severity: Major
      Found in driver/config/provider.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status