applied lint typo fixes

This commit is contained in:
Gani Georgiev
2026-03-04 22:31:27 +02:00
parent 4a40c1b897
commit bb18799a0b
56 changed files with 4788 additions and 4780 deletions

View File

@@ -123,7 +123,7 @@ func Fetch(ctx context.Context, jwksURL string, kid string) (*JWK, error) {
}
// ValidateTokenSignature validates the signature of a token with the
// public key retrievied from a remote JWKS.
// public key retrieved from a remote JWKS.
func ValidateTokenSignature(ctx context.Context, token string, jwksURL string) error {
// extract the kid token header
// ---

View File

@@ -276,7 +276,7 @@ func TestValidateTokenSignature(t *testing.T) {
true,
},
{
"invlaid token",
"invalid token",
"abc",
true,
},

View File

@@ -48,7 +48,7 @@ const NameOIDC string = "oidc"
//
// The provider support the following Extra config options:
// - "jwksURL" - url to the keys to validate the id_token signature (optional and used only when reading the user data from the id_token)
// - "issuers" - list of valid issuers for the iss id_token claim (optioanl and used only when reading the user data from the id_token)
// - "issuers" - list of valid issuers for the iss id_token claim (optional and used only when reading the user data from the id_token)
type OIDC struct {
BaseProvider
}

View File

@@ -174,7 +174,7 @@ func parseCronSegment(segment string, min int, max int) (map[int]struct{}, error
switch len(rangeParts) {
case 1:
if step != 1 {
return nil, errors.New("invalid segement step - step > 1 could be used only with the wildcard or range format")
return nil, errors.New("invalid segment step - step > 1 could be used only with the wildcard or range format")
}
parsed, err := strconv.Atoi(rangeParts[0])
if err != nil {

View File

@@ -87,7 +87,7 @@ func (s3 *S3) URL(path string) string {
path = escapePath(parsed.Path)
// the rest is usually not expected to be part of the S3 path but it is kept to avoid surprises
// (it will be further escaped if necessery by the Go HTTP client)
// (it will be further escaped if necessary by the Go HTTP client)
if parsed.RawQuery != "" {
path += "?" + parsed.RawQuery
}

View File

@@ -16,7 +16,7 @@ func TestS3URL(t *testing.T) {
path := "/test_key/a/b c@d?a=@1&b=!2#@a b c"
// note: query params and fragments are kept as it is
// since they are later escaped if necessery by the Go HTTP client
// since they are later escaped if necessary by the Go HTTP client
expectedPath := "/test_key/a/b%20c%40d?a=@1&b=!2#@a b c"
scenarios := []struct {

View File

@@ -36,7 +36,7 @@ type TaggedHook[T Tagger] struct {
// CanTriggerOn checks if the current TaggedHook can be triggered with
// the provided event data tags.
//
// It returns always true if the hook doens't have any tags.
// It returns always true if the hook doesn't have any tags.
func (h *TaggedHook[T]) CanTriggerOn(tagsToCheck []string) bool {
if len(h.tags) == 0 {
return true // match all

View File

@@ -336,7 +336,7 @@ func TestEventSetAllGetAll(t *testing.T) {
event := router.Event{}
event.SetAll(data)
// modify the data to ensure that the map was shallow coppied
// modify the data to ensure that the map was shallow copied
data["c"] = 789
result := event.GetAll()