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

Quotes #1095

Merged
merged 2 commits into from Nov 25, 2020
Merged

Quotes #1095

merged 2 commits into from Nov 25, 2020

Conversation

bquorning
Copy link
Collaborator

@bquorning bquorning commented Nov 14, 2020

Add a bit of consistency re. backslashes in and around quotes. I have suggested some rules for consistent formatting of these strings in rubocop/rubocop#6420, but it seems to be too complicated to have RuboCop enforce them.


Before submitting the PR make sure the following are checked:

  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • [-] Added tests.
  • [-] Updated documentation.
  • [-] Added an entry to the CHANGELOG.md if the new code introduces user-observable changes.
  • The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

@bquorning bquorning marked this pull request as draft November 14, 2020 11:09
Copy link
Member

@pirj pirj left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

"enabled, then records created in `#{hook}` are not automatically rolled "\
"Beware of using `#{hook}` as it may cause state to leak between tests. " \
'If you are using `rspec-rails`, and `use_transactional_fixtures` is ' \
"enabled, then records created in `#{hook}` are not automatically rolled " \
Copy link
Member

Choose a reason for hiding this comment

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

Interleaved use of " ' " ' looks a bit confusing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Suggestion no. 3 on rubocop/rubocop#6420 😅

I have suggested some rules for consistent formatting of these strings
in rubocop/rubocop#6420, but it seems to be
too complicated to have RuboCop enforce them.
@bquorning bquorning marked this pull request as ready for review November 25, 2020 21:54
@bquorning bquorning merged commit df1fa3d into master Nov 25, 2020
@bquorning bquorning deleted the quotes branch November 25, 2020 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants