-
Notifications
You must be signed in to change notification settings - Fork 217
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
Stop loading non-library RBS files #1148
Comments
For real – because I Though, how would this change impact the An alternate solution is to refactor |
@ParadoxV5 Thank you for your feedback! I know In this case -- if you have However, I'm now thinking if it's really a good design or not...
|
Using RBS based tools like
rbs_rails
andsteep
requires addinggem
entries inrbs_collection.yaml
.This is annoying and causes problems, and it looks wired because the
gems
section is mainly used to ignore libraries.I'd like to propose changing the library RBS loading protocol:
Gemfile
withrequire: false
require: false
is usually written for gems that is not loaded from the application, especially in Rails apps, and we can use it as a marker that implies RBS files of the gems are unnecessary.The steps to load RBS of libraries will be as following:
gems
section ofrbs_collection.yaml
withoutignore: true
require: false
(and skip if it's ignored)With this change, the
rbs_rails
andsteep
users would change theirGemfile
lines as:It looks better and more intuitive than having
ignore: true
lines inrbs_collection.yaml
. 😄The text was updated successfully, but these errors were encountered: