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
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!
The text was updated successfully, but these errors were encountered:
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 Railsapp
,controllers
,models
,specs
, etc. directories. Due to this, we have to configure Rubycritic like this:Something like this would be very nice so we don't have to remember to update the file whenever we add a new package:
Note that if we were to do something like this, Rubycritic picks up all the specs - which we don't want:
Thanks!
The text was updated successfully, but these errors were encountered: