Skip to content

Commit b4e45c3

Browse files
author
jordanbreen28
committed
(CONT-776) - Correct Style/RedundantStringEscape
1 parent d879f8e commit b4e45c3

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,6 @@ RSpec/StubbedMock:
156156
Exclude:
157157
- 'spec/unit/lib/facter/docker_spec.rb'
158158

159-
# Offense count: 3
160-
# This cop supports safe autocorrection (--autocorrect).
161-
Style/RedundantStringEscape:
162-
Exclude:
163-
- 'spec/shared_examples/registry.rb'
164-
- 'spec/shared_examples/run.rb'
165-
166159
# Offense count: 1
167160
# This cop supports safe autocorrection (--autocorrect).
168161
# Configuration parameters: EnforcedStyle.

spec/shared_examples/registry.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
exec_path = ['/bin', '/usr/bin']
2626
exec_timeout = 0
2727
exec_provider = nil
28-
password_env = "\${password}"
28+
password_env = '${password}'
2929
exec_user = local_user
3030
local_user_home = facts[:docker_home_dirs][local_user]
3131
end

spec/shared_examples/run.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
exec_provider = 'powershell'
125125
cidfile = "#{facts['docker_user_temp_path']}/#{service_prefix}#{sanitised_title}.cid"
126126
restart_check = "#{docker_command} inspect #{sanitised_title} -f '{{ if eq \\\"unhealthy\\\" .State.Health.Status }} {{ .Name }}{{ end }}' | findstr #{sanitised_title}"
127-
container_running_check = "\$state = #{docker_command} inspect #{sanitised_title} -f \"{{ .State.Running }}\"; if (\$state -ieq \"true\") { Exit 0 } else { Exit 1 }"
127+
container_running_check = "$state = #{docker_command} inspect #{sanitised_title} -f \"{{ .State.Running }}\"; if ($state -ieq \"true\") { Exit 0 } else { Exit 1 }"
128128
else
129129
exec_environment = 'HOME=/root'
130130
exec_path = ['/bin', '/usr/bin']

0 commit comments

Comments
 (0)