Skip to content
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 Wildcards in Configured Paths #413

Open
SingleShot opened this issue Aug 3, 2022 · 0 comments
Open

Support Wildcards in Configured Paths #413

SingleShot opened this issue Aug 3, 2022 · 0 comments

Comments

@SingleShot
Copy link

We are using the packwerk gem which helps with partitioning a Rails app into domain-specific packages. A common way to do this is create a packs directory, a sub-directory for each domain, and within each of those, the typical Rails app, controllers, models, specs, etc. directories. Due to this, we have to configure Rubycritic like this:

paths:
  - app
  - packs/accounts/app
  - ... many more ...
  - packs/users/app
  - packs/widgets/app

Something like this would be very nice so we don't have to remember to update the file whenever we add a new package:

paths:
  - app
  - packs/*/app

Note that if we were to do something like this, Rubycritic picks up all the specs - which we don't want:

paths:
  - app
  - packs

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant