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

use heredocs #2197

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

use heredocs #2197

wants to merge 1 commit into from

Conversation

aspiers
Copy link
Member

@aspiers aspiers commented Dec 3, 2015

Heredocs makes it a bit nicer to read and write inline text.

This is a half-serious untested pull-request submitted mainly to test whether CodeClimate works on PRs within a single repo (in contrast we know for sure that there are existing issues with cross-fork PRs, but CodeClimate said they should have these fixed very soon).

Heredocs makes it a bit nicer to read and write inline text.
puts " cd \"#{target}\"; find -type f -not -name sha1sums -print0 | \\"
puts" xargs -0 sha1sum -b >sha1sums"
puts "(or use the --force switch)"
print <<-EOF.gsub(/^ *\| /, '')

Choose a reason for hiding this comment

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

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)

@tboerger
Copy link
Contributor

tboerger commented Dec 3, 2015

Codeclimate works, but your changes are getting removed anyway within #2195, so closing this issue.

@tboerger tboerger closed this Dec 3, 2015
@aspiers
Copy link
Member Author

aspiers commented Dec 3, 2015

@tboerger but now Jenna can't see that it worked ...

@tboerger tboerger reopened this Dec 3, 2015
@tboerger
Copy link
Contributor

tboerger commented Dec 3, 2015

Reopened just to show the Codeclimate support that it works without a fork.

@dirkmueller
Copy link
Contributor

@aspiers can this be closed now?

@nicolasbock
Copy link
Contributor

@aspiers Is this still an issue you want to keep open?

@aspiers
Copy link
Member Author

aspiers commented Jan 17, 2017

@nicolasbock Sure why not - all those puts are horrible :)

Copy link
Contributor

@nicolasbock nicolasbock left a comment

Choose a reason for hiding this comment

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

Let's merge this!

@dirkmueller
Copy link
Contributor

@aspiers needs rebase

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

Successfully merging this pull request may close these issues.

None yet

7 participants