Skip to content

File extensions comparisons are case sensitive #476

Closed
@dholbach

Description

@dholbach

From Ada Logics

In the lines

extension := filepath.Ext(path)
if extension != ".yaml" && extension != ".yml" {
return nil
}

A check happens on the file extension for YAML files

However, the check is case sensitive. We recommend either documenting this or allowing file extensions that are not purely limited to lowercase extensions.

Recommendation
Normalise file extensions when processing them to allow uppercase letters in extensions or clarify that files must be lowercase.

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions