chore: fix lint errors (#987)
Fixes a few lint issues, directly, and by ignoring some submodules. --------- Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
This commit is contained in:
parent
3d2cd1fc0d
commit
0c3af2da01
|
|
@ -2,6 +2,8 @@ run:
|
||||||
skip-dirs:
|
skip-dirs:
|
||||||
- (^|/)bin($|/)
|
- (^|/)bin($|/)
|
||||||
- (^|/)examples($|/)
|
- (^|/)examples($|/)
|
||||||
|
- (^|/)schemas($|/)
|
||||||
|
- (^|/)test-harness($|/)
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- asciicheck
|
- asciicheck
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ const (
|
||||||
sourcesFlagName = "sources"
|
sourcesFlagName = "sources"
|
||||||
syncProviderFlagName = "sync-provider"
|
syncProviderFlagName = "sync-provider"
|
||||||
uriFlagName = "uri"
|
uriFlagName = "uri"
|
||||||
|
docsLinkConfiguration = "https://flagd.dev/reference/flagd-cli/flagd_start/"
|
||||||
|
|
||||||
defaultServicePort = 8013
|
defaultServicePort = 8013
|
||||||
defaultMetricsPort = 8014
|
defaultMetricsPort = 8014
|
||||||
|
|
@ -117,18 +118,18 @@ var startCmd = &cobra.Command{
|
||||||
rtLogger.Info(fmt.Sprintf("flagd version: %s (%s), built at: %s", Version, Commit, Date))
|
rtLogger.Info(fmt.Sprintf("flagd version: %s (%s), built at: %s", Version, Commit, Date))
|
||||||
|
|
||||||
if viper.GetString(syncProviderFlagName) != "" {
|
if viper.GetString(syncProviderFlagName) != "" {
|
||||||
rtLogger.Warn("DEPRECATED: The --sync-provider flag has been deprecated. " +
|
rtLogger.Warn("DEPRECATED: The --sync-provider flag has been deprecated, see: " +
|
||||||
"Docs: https://github.com/open-feature/flagd/blob/main/docs/configuration/configuration.md")
|
docsLinkConfiguration)
|
||||||
}
|
}
|
||||||
|
|
||||||
if viper.GetString(evaluatorFlagName) != "json" {
|
if viper.GetString(evaluatorFlagName) != "json" {
|
||||||
rtLogger.Warn("DEPRECATED: The --evaluator flag has been deprecated. " +
|
rtLogger.Warn("DEPRECATED: The --evaluator flag has been deprecated, see: " +
|
||||||
"Docs: https://github.com/open-feature/flagd/blob/main/docs/configuration/configuration.md")
|
docsLinkConfiguration)
|
||||||
}
|
}
|
||||||
|
|
||||||
if viper.GetString(providerArgsFlagName) != "" {
|
if viper.GetString(providerArgsFlagName) != "" {
|
||||||
rtLogger.Warn("DEPRECATED: The --sync-provider-args flag has been deprecated. " +
|
rtLogger.Warn("DEPRECATED: The --sync-provider-args flag has been deprecated, see: " +
|
||||||
"Docs: https://github.com/open-feature/flagd/blob/main/docs/configuration/configuration.md")
|
docsLinkConfiguration)
|
||||||
}
|
}
|
||||||
|
|
||||||
syncProviders, err := runtime.ParseSyncProviderURIs(viper.GetStringSlice(uriFlagName))
|
syncProviders, err := runtime.ParseSyncProviderURIs(viper.GetStringSlice(uriFlagName))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue