From 4a54942e42c258e1f3aaed841ca292a594608ca4 Mon Sep 17 00:00:00 2001 From: Matthew Stratton Date: Tue, 20 Feb 2024 15:19:59 -0500 Subject: [PATCH] fixing lint errors --- pkg/urls/well_known.go | 4 +++- pkg/urls/well_known_test.go | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/urls/well_known.go b/pkg/urls/well_known.go index c1864962..85918b95 100644 --- a/pkg/urls/well_known.go +++ b/pkg/urls/well_known.go @@ -79,7 +79,9 @@ func ResolveGatewayURL(optionalParsedCliFlagValue string, optionalParsedConfig * url, err := url.ParseRequestURI(gatewayURL) if err != nil { - return "", fmt.Errorf("%w\n\nURL Source: %s\nExpected an absolute URI or an absolute path (e.g. %s) or a case-sensitive alias, one of: [%s]", err, source, sdk.DefaultURL, strings.Join(ValidOCMUrlAliases(), ", ")) + return "", fmt.Errorf( + "%w\n\nURL Source: %s\nExpected an absolute URI/path (e.g. %s) or a case-sensitive alias, one of: [%s]", + err, source, sdk.DefaultURL, strings.Join(ValidOCMUrlAliases(), ", ")) } return url.String(), nil diff --git a/pkg/urls/well_known_test.go b/pkg/urls/well_known_test.go index 87184367..a5d434cc 100644 --- a/pkg/urls/well_known_test.go +++ b/pkg/urls/well_known_test.go @@ -20,6 +20,7 @@ var _ = Describe("Gateway URL Resolution", func() { "unix+h2c://my.server.com/tmp/api.socket", } invalidUrlOverrides := []string{ + //nolint:misspell // intentional misspellings "productin", "PRod", //alias typo "localhost", "192.168.1.1", "api.openshift.com", //ip address/hostname without protocol }