-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Use “squiggly” heredocs. #3319
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
Use “squiggly” heredocs. #3319
Conversation
|
This feels like we're replacing something self-explanatory with an emoji. |
|
There's some CI failures but I'm broadly 👍 to this. I'm not in love with the syntax but it's standard Ruby at this point so we may as well use it rather than our own custom stuff. Also, please create a Homebrew/homebrew-core PR for the corresponding change there before this gets merged. |
|
@reitermarkus Do casks need to be changed to "squiggy"? |
9118174 to
487bec9
Compare
|
@commitay, yes, ideally. |
|
Thanks @reitermarkus! |
|
@reitermarkus hmm I'm having trouble getting anything to trigger a you-must-use-squiggly-heredocs error from Ditto with formulae. |
|
It won't trigger because |
|
Neither of those triggers it either. |
|
Weird. |
|
@reitermarkus http://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Layout/IndentHeredoc seems to imply that it should be triggering on <<-EOS |
|
I think it only triggers on <<-EOS
not indented
EOS |
|
@reitermarkus see the |
|
Above it is indented 8 spaces. |
Homebrew doesn't use String#undent since Homebrew/brew#3319.
brew testswith your changes locally?