Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Conversation

@wpride
Copy link
Contributor

@wpride wpride commented Apr 22, 2020

zsh users cannot copy and paste the command in Please rerun bundle exec rake rails_rbi:models[Shipment] to regenerate. without escaping the brackets. Adding comments around the command makes this runnable with zsh and bash (and looks nicer).

`zsh` users cannot copy and paste the command in `Please rerun bundle exec rake rails_rbi:models[Shipment] to regenerate.` without escaping the brackets. Adding comments around the command makes this runnable with `zsh` and `bash` (and looks nicer)
@codecov-io
Copy link

codecov-io commented Apr 22, 2020

Codecov Report

Merging #310 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #310      +/-   ##
==========================================
- Coverage   96.80%   96.80%   -0.01%     
==========================================
  Files         155      155              
  Lines        2852     2850       -2     
==========================================
- Hits         2761     2759       -2     
  Misses         91       91              
Impacted Files Coverage Δ
lib/sorbet-rails/helper_rbi_formatter.rb 100.00% <ø> (ø)
spec/support/v5.0/sorbet_test_cases.rb 100.00% <0.00%> (ø)
spec/support/v5.1/sorbet_test_cases.rb 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2382579...c9286c2. Read the comment docs.

@hdoan741
Copy link
Contributor

Thanks, @wpride! It seems you only change the generation code in "helper_rbi_formatter". Do you want to also change it for other formatter classes? and I think you need to rerun the generation code as well.

Copy link
Contributor

@hdoan741 hdoan741 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment on the PR

Copy link
Contributor

@hdoan741 hdoan741 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More comments.

@parlour.root.add_comments([
'This is an autogenerated file for Rails helpers.',
'Please rerun bundle exec rake rails_rbi:helpers to regenerate.'
'Please rerun \"bundle exec rake rails_rbi:helpers\" to regenerate.'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we use' 'here, you don't need to escape the ". Currently your change generate this:

       +# Please rerun \"bundle exec rake rails_rbi:helpers\" to regenerate.

But I think we only want?

       +# Please rerun "bundle exec rake rails_rbi:helpers" to regenerate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants