rubycritic icon indicating copy to clipboard operation
rubycritic copied to clipboard

Issue - 413 Support for wildcard in paths options

Open rishijain opened this issue 2 years ago • 0 comments

Check list:

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' ].

rishijain avatar Oct 25 '23 12:10 rishijain