Skip to content

Commit 1a6daf3

Browse files
authored
Merge pull request #541 from Shopify/dependabot/bundler/rubocop-1.51.0
Bump rubocop from 1.50.2 to 1.51.0
2 parents adad1af + 8b6a74a commit 1a6daf3

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

Gemfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: .
33
specs:
44
rubocop-shopify (2.13.0)
5-
rubocop (~> 1.50)
5+
rubocop (~> 1.51)
66

77
GEM
88
remote: https://rubygems.org/
@@ -14,8 +14,8 @@ GEM
1414
json (2.6.3)
1515
method_source (1.0.0)
1616
minitest (5.18.0)
17-
parallel (1.22.1)
18-
parser (3.2.2.0)
17+
parallel (1.23.0)
18+
parser (3.2.2.1)
1919
ast (~> 2.4.1)
2020
pry (0.14.1)
2121
coderay (~> 1.1)
@@ -27,7 +27,7 @@ GEM
2727
rake (13.0.6)
2828
regexp_parser (2.8.0)
2929
rexml (3.2.5)
30-
rubocop (1.50.2)
30+
rubocop (1.51.0)
3131
json (~> 2.3)
3232
parallel (~> 1.10)
3333
parser (>= 3.2.0.0)
@@ -37,7 +37,7 @@ GEM
3737
rubocop-ast (>= 1.28.0, < 2.0)
3838
ruby-progressbar (~> 1.7)
3939
unicode-display_width (>= 2.4.0, < 3.0)
40-
rubocop-ast (1.28.0)
40+
rubocop-ast (1.28.1)
4141
parser (>= 3.2.1.0)
4242
ruby-progressbar (1.13.0)
4343
unicode-display_width (2.4.2)

rubocop-shopify.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ Gem::Specification.new do |s|
2323

2424
s.required_ruby_version = ">= 2.7.0"
2525

26-
s.add_dependency("rubocop", "~> 1.50")
26+
s.add_dependency("rubocop", "~> 1.51")
2727
end

rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,9 @@ Style/EnvHome:
513513
Style/EvalWithLocation:
514514
Enabled: false
515515

516+
Style/ExactRegexpMatch:
517+
Enabled: true
518+
516519
Style/ExpandPathArguments:
517520
Enabled: false
518521

test/fixtures/full_config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ AllCops:
9494
- graphql
9595
rubocop-capybara:
9696
- capybara
97+
rubocop-factory_bot:
98+
- factory_bot
99+
- factory_bot_rails
97100
ActiveSupportExtensionsEnabled: false
98101
Bundler/DuplicatedGem:
99102
Description: Checks for duplicate gem entries in Gemfile.
@@ -1726,6 +1729,8 @@ Lint/TopLevelReturnWithArgument:
17261729
Description: Detects top level return statements with argument.
17271730
Enabled: false
17281731
VersionAdded: '0.89'
1732+
Exclude:
1733+
- "/**/*.jb"
17291734
Lint/TrailingCommaInAttributeDeclaration:
17301735
Description: Checks for trailing commas in attribute declarations.
17311736
Enabled: false
@@ -1818,6 +1823,8 @@ Lint/UselessAssignment:
18181823
StyleGuide: "#underscore-unused-vars"
18191824
Enabled: true
18201825
VersionAdded: '0.11'
1826+
VersionChanged: '1.51'
1827+
SafeAutoCorrect: false
18211828
Lint/UselessElseWithoutRescue:
18221829
Description: Checks for useless `else` in `begin..end` without `rescue`.
18231830
Enabled: true
@@ -2226,7 +2233,9 @@ Security/CompoundHash:
22262233
Description: When overwriting Object#hash to combine values, prefer delegating to
22272234
Array#hash over writing a custom implementation.
22282235
Enabled: false
2236+
Safe: false
22292237
VersionAdded: '1.28'
2238+
VersionChanged: '1.51'
22302239
Security/Eval:
22312240
Description: The use of eval represents a serious security risk.
22322241
Enabled: true
@@ -2595,7 +2604,9 @@ Style/DataInheritance:
25952604
Description: Checks for inheritance from Data.define.
25962605
StyleGuide: "#no-extend-data-define"
25972606
Enabled: true
2607+
SafeAutoCorrect: false
25982608
VersionAdded: '1.49'
2609+
VersionChanged: '1.51'
25992610
Style/DateTime:
26002611
Description: Use Time over DateTime.
26012612
StyleGuide: "#date-time"
@@ -2754,6 +2765,10 @@ Style/EvenOdd:
27542765
Enabled: true
27552766
VersionAdded: '0.12'
27562767
VersionChanged: '0.29'
2768+
Style/ExactRegexpMatch:
2769+
Description: Checks for exact regexp match inside Regexp literals.
2770+
Enabled: true
2771+
VersionAdded: '1.51'
27572772
Style/ExpandPathArguments:
27582773
Description: Use `expand_path(__dir__)` instead of `expand_path('..', __FILE__)`.
27592774
Enabled: false
@@ -3473,7 +3488,9 @@ Style/OpenStructUse:
34733488
Reference:
34743489
- https://docs.ruby-lang.org/en/3.0.0/OpenStruct.html#class-OpenStruct-label-Caveats
34753490
Enabled: true
3491+
Safe: false
34763492
VersionAdded: '1.23'
3493+
VersionChanged: '1.51'
34773494
Style/OperatorMethodCall:
34783495
Description: Checks for redundant dot before operator method call.
34793496
StyleGuide: "#operator-method-call"

0 commit comments

Comments
 (0)