driver/config/provider.go
DefaultProvider
has 73 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type DefaultProvider struct {
l *logrusx.Logger
p *configx.Provider
c contextx.Contextualizer
}
File provider.go
has 558 lines of code (exceeds 500 allowed). Consider refactoring. Open
Open
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package config
Method DefaultProvider.getHookConfig
has 5 return statements (exceeds 4 allowed). Open
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(),
}