-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test(path_collector): Add (failing) test for multi-part extensions. * feat(path_collector): Allow `extensions` to contain dots. I want to format templated YAML files, which have file names like `config.yaml.gotmpl`. We also have other files, such as `README.md.gotmpl` which we do *not* want to format with yamlfmt. Previously, yamlfmt used `strings.Split()` to extract the extension from a file. This doesn't work when the extension itself contains a dot. With this change, yamlfmt uses `strings.HasSuffix()` to match files instead, allowing to match multi-part extensions. * docs: Document differences in include/exclude behavior. * docs(paths): Fix typo. Co-authored-by: Braydon Kains <[email protected]> --------- Co-authored-by: Braydon Kains <[email protected]>
- Loading branch information
Showing
3 changed files
with
63 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters