-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support config files without extensions #5
Comments
Hi @kehoecj, I'm not familiar with this use case so wanted to understand if the --additional-file should be a filepath or filename. I can work on this issue if this is clarified. |
Can the finder code be more tolerant to unofficial extensions(such as |
Hi @LeslieLeung - that's a good idea. For the example you provided we could ignore case when matching files to file types. I've also seen |
@
@LeslieLeung I created a separate issue to support capitalized extensions since it should be a really straightforward implementation |
We have probably 95% of the implementation completed for this story but the developer is no longer working it any longer. If you'd like to finish it you can start from the PR and complete it (or own implementation) |
Description
The current configuration file validator finder code recursively searches for files by file extension. Some types of configuration files do not typically include an extension such as ini files (see Ansible inventories). Options for supporting this:
Add a command line option to include extra files and metadata
Allow users to pass in a file or a string on the command line to include other files and their types. It might work something like this for the command line option:
Or like this for the the file option
custom_config.yml example:
CLI Command
Rewrite the finder code to detect each type of file (out of scope for https://github.com/Boeing/config-file-validator/labels/hacktoberfest)
This would be a much larger effort but would rewrite the finder to determine the type of each file based on content. The downside to this is that some config types are very similar (like TOML and INI) and some are supersets of other types (JSON and YAML)
The text was updated successfully, but these errors were encountered: