Skip to content

Commit 3ca16e8

Browse files
authored
Add channel/rubocop-1-12-1 (#281)
* Update rubocop to v1.12.1 * Update scraped documentation
1 parent 44fc228 commit 3ca16e8

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ gem "activesupport", require: false
66
gem "mry", require: false
77
gem "parser"
88
gem "pry", require: false
9-
gem "rubocop", "1.12.0", require: false
9+
gem "rubocop", "1.12.1", require: false
1010
gem "rubocop-i18n", require: false
1111
gem "rubocop-graphql", require: false
1212
gem "rubocop-minitest", require: false

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ GEM
4141
diff-lcs (>= 1.2.0, < 2.0)
4242
rspec-support (~> 3.9.0)
4343
rspec-support (3.9.3)
44-
rubocop (1.12.0)
44+
rubocop (1.12.1)
4545
parallel (~> 1.10)
4646
parser (>= 3.0.0.0)
4747
rainbow (>= 2.2.2, < 4.0)
@@ -93,7 +93,7 @@ DEPENDENCIES
9393
pry
9494
rake
9595
rspec
96-
rubocop (= 1.12.0)
96+
rubocop (= 1.12.1)
9797
rubocop-graphql
9898
rubocop-i18n
9999
rubocop-minitest

config/contents/style/access_modifier_declarations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ using AllowModifiersOnSymbols config.
4242

4343
end
4444

45-
### Example: AllowModifiersOnSymbols: true
45+
### Example: AllowModifiersOnSymbols: true (default)
4646
# good
4747
class Foo
4848

config/contents/style/frozen_string_literal_comment.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ files to enable frozen string literals. Frozen string literals may be
55
default in future Ruby. The comment will be added below a shebang and
66
encoding comment.
77

8-
Note that the cop will ignore files where the comment exists but is set
9-
to `false` instead of `true`.
10-
118
### Example: EnforcedStyle: always (default)
129
# The `always` style will always add the frozen string literal comment
1310
# to a file, regardless of the Ruby version or if `freeze` or `<<` are

config/contents/style/method_call_with_args_parentheses.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ options.
3535
to `true` allows the presence of parentheses in such a method call
3636
even with arguments.
3737

38-
NOTE: Parens are required around a method with arguments when inside an
39-
endless method definition (>= Ruby 3.0).
38+
NOTE: Parentheses are still allowed in cases where omitting them
39+
results in ambiguous or syntactically incorrect code. For example,
40+
parentheses are required around a method with arguments when inside an
41+
endless method definition introduced in Ruby 3.0. Parentheses are also
42+
allowed when forwarding arguments with the triple-dot syntax introduced
43+
in Ruby 2.7 as omitting them starts an endless range.
4044

4145
### Example: EnforcedStyle: require_parentheses (default)
4246

0 commit comments

Comments
 (0)