Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl committed Jul 2, 2024
1 parent efe4b83 commit a426e88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ linters-settings:
goimports:
local-prefixes: github.com/ory

run:
skip-dirs:
issues:
exclude-dirs:
- sdk/
skip-files:
exclude-files:
- ".+_test.go"
- "corpx/faker.go"

issues:
exclude:
- "Set is deprecated: use context-based WithConfigValue instead"
- "SetDefaultIdentitySchemaFromRaw is deprecated: Use context-based WithDefaultIdentitySchemaFromRaw instead"
Expand Down
3 changes: 2 additions & 1 deletion driver/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,11 +523,12 @@ func (p *Config) cors(ctx context.Context, prefix string) (cors.Options, bool) {
})
}

// Deprecated: use context-based WithConfigValue instead
func (p *Config) Set(_ context.Context, key string, value interface{}) error {
return p.p.Set(key, value)
}

// Deprecated: use context-based confighelpers.WithConfigValue instead
// Deprecated: use context-based WithConfigValue instead
func (p *Config) MustSet(_ context.Context, key string, value interface{}) {
if err := p.p.Set(key, value); err != nil {
p.l.WithError(err).Fatalf("Unable to set \"%s\" to \"%s\".", key, value)
Expand Down

0 comments on commit a426e88

Please sign in to comment.