rubycritic
rubycritic copied to clipboard
Issue - 413 Support for wildcard in paths options
Check list:
- [x] Add an entry to the changelog
- [x] Squash all commits into a single one
- [x] Describe your PR, link issues, etc.
Description:
This PR adds support for passing **(wildcard) paths to the .rubycritic.yml file. So now someone can do something like:
paths:
- app
- packs/*/app
This was requested here.
The way I have implemented is to basically find all the valid directories that the ** expands to, so for example:
if user passes packs/*/app and in the app, packs has 3 sub-directories in it but only 2 of them has app inside those sub-directories, I am resetting the options[:paths] to ['app', 'packs/pack1/app', 'packs/pack2/app' ].