You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd love to see the glob option have support for an array of multiple globs
glob:
- '*.{yml,yaml}'
- .ansible-lint
Value
It can be rather difficult to construct or maintain a singular glob that selects all the files a single command can operate on, and that holds especially true for multi-language formatters like prettier.
This is one of the globs that I've had in one of my repos:
It's 101 characters on its own, and still requires some excludes excludes to skip files that I know it should skip but still let match the glob because it's easier to edit that way.
It'd be much easier to split that up into six globs, like so:
⚡ Summary
I'd love to see the
glob
option have support for an array of multiple globsValue
It can be rather difficult to construct or maintain a singular glob that selects all the files a single command can operate on, and that holds especially true for multi-language formatters like prettier.
This is one of the globs that I've had in one of my repos:
It's 101 characters on its own, and still requires some excludes excludes to skip files that I know it should skip but still let match the glob because it's easier to edit that way.
It'd be much easier to split that up into six globs, like so:
And it'd be much easier to update in the future to work with more files.
Behavior and configuration changes
The
glob
option would be able to be a string with a single glob (to avoid breaking existing configs), or an array of multiple globs.The text was updated successfully, but these errors were encountered: