Skip to content

Commit d0ca1af

Browse files
authored
Merge pull request #63 from myii/fix/lint-ambiguous-regexp-literal
fix(rubocop): resolve `Lint/AmbiguousRegexpLiteral`
2 parents 42bac3e + e13085d commit d0ca1af

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.rubocop.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,4 @@ Metrics/LineLength:
77
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
88
Max: 88
99

10-
# libvirt-formula overredies
11-
Lint/AmbiguousRegexpLiteral:
12-
# Exclude { should match /<REGEX>/ }
13-
Exclude:
14-
- 'test/integration/default/controls/config_spec.rb'
15-
1610
# Any offenses that should be fixed, e.g. collected via. `rubocop --auto-gen-config`

test/integration/default/controls/config_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323

2424
describe libvirt.daemon_config_file do
2525
it { should exist }
26-
its('content') { should match /This\sfile\sis\smanaged\sby\sSalt/ }
26+
its('content') { should match(/This\sfile\sis\smanaged\sby\sSalt/) }
2727
end
2828

2929
describe file('/etc/libvirt/libvirtd.conf') do
3030
it { should exist }
31-
its('content') { should match /This\sfile\sis\smanaged\sby\sSalt/ }
31+
its('content') { should match(/This\sfile\sis\smanaged\sby\sSalt/) }
3232
end
3333

3434
parse_options = {

0 commit comments

Comments
 (0)