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

[Fix #9150] Escape curly brackets in docs #9951

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions config/default.yml
Expand Up @@ -2532,7 +2532,7 @@ Naming/HeredocDelimiterNaming:
Enabled: true
VersionAdded: '0.50'
ForbiddenDelimiters:
- !ruby/regexp '/(^|\s)(EO[A-Z]{1}|END)(\s|$)/'
- !ruby/regexp '/(^|\s)(EO[A-Z]\{1\}|END)(\s|$)/'

Naming/InclusiveLanguage:
Description: 'Recommend the use of inclusive language instead of problematic terms.'
Expand Down Expand Up @@ -3210,7 +3210,7 @@ Style/Copyright:
Description: 'Include a copyright notice in each file before any code.'
Enabled: false
VersionAdded: '0.30'
Notice: '^Copyright (\(c\) )?2[0-9]{3} .+'
Notice: '^Copyright (\(c\) )?2[0-9]\{3\} .+'
AutocorrectNotice: ''

Style/DateTime:
Expand Down Expand Up @@ -4931,7 +4931,7 @@ Style/WordArray:
# whose element count is greater than or equal to `MinSize`.
MinSize: 2
# The regular expression `WordRegex` decides what is considered a word.
WordRegex: !ruby/regexp '/\A(?:\p{Word}|\p{Word}-\p{Word}|\n|\t)+\z/'
WordRegex: !ruby/regexp '/\A(?:\p\{Word\}|\p\{Word\}-\p\{Word\}|\n|\t)+\z/'

Style/YodaCondition:
Description: 'Forbid or enforce yoda conditions.'
Expand Down
4 changes: 2 additions & 2 deletions lib/rubocop/rspec/expect_offense.rb
Expand Up @@ -72,8 +72,8 @@ module RSpec
#
# expect_no_corrections
#
# If your code has variables of different lengths, you can use `%{foo}`,
# `^{foo}`, and `_{foo}` to format your template; you can also abbreviate
# If your code has variables of different lengths, you can use `%\{foo\}`,
# `^\{foo\}`, and `_\{foo\}` to format your template; you can also abbreviate
# offense messages with `[...]`:
#
# %w[raise fail].each do |keyword|
Expand Down