Skip to content

Commit 8b6a74a

Browse files
committed
Enable Style/ExactRegexpMatch
1 parent dfabb2a commit 8b6a74a

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
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/

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2767,7 +2767,7 @@ Style/EvenOdd:
27672767
VersionChanged: '0.29'
27682768
Style/ExactRegexpMatch:
27692769
Description: Checks for exact regexp match inside Regexp literals.
2770-
Enabled: pending
2770+
Enabled: true
27712771
VersionAdded: '1.51'
27722772
Style/ExpandPathArguments:
27732773
Description: Use `expand_path(__dir__)` instead of `expand_path('..', __FILE__)`.

0 commit comments

Comments
 (0)