Skip to content

Commit 2c86537

Browse files
committed
more
1 parent d9cba6f commit 2c86537

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -201,19 +201,6 @@ Style/MapIntoArray:
201201
Exclude:
202202
- 'lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
203203

204-
205-
# Offense count: 1
206-
# This cop supports safe autocorrection (--autocorrect).
207-
Style/RedundantRegexpArgument:
208-
Exclude:
209-
- 'spec/unit/pwsh_spec.rb'
210-
211-
# Offense count: 1
212-
# This cop supports safe autocorrection (--autocorrect).
213-
Style/RedundantSelfAssignmentBranch:
214-
Exclude:
215-
- 'lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
216-
217204
# Offense count: 1
218205
# This cop supports unsafe autocorrection (--autocorrect-all).
219206
# Configuration parameters: AllowedMethods, AllowedPatterns.

lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ def puppetize_name(name)
557557
# Puppet module names must only include lowercase letters, digits and underscores
558558
name = name.gsub(/[^a-z0-9_]/, '_')
559559
# Puppet module names must not start with a number so if it does, append the letter 'a' to the name. Eg: '7zip' becomes 'a7zip'
560-
name = name.match?(/^\d/) ? "a#{name}" : name # rubocop:disable Lint/UselessAssignment
560+
name = "a#{name}" if name.match?(/^\d/) # rubocop:disable Lint/UselessAssignment
561561
end
562562

563563
# Return a UUID with the dashes turned into underscores to enable the specifying of guaranteed-unique

spec/unit/pwsh_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ def output_cmdlet(ps_command, ps_args)
610610
expect(result[:stdout]).to match(/200 OK Glenn/)
611611
expect(result[:stdout]).to match(/DEBUG: 304 Not Modified James/)
612612
# then command may have \r\n injected, so remove those for comparison
613-
expect(result[:stdout].gsub(/\r\n/, '')).to include(command)
613+
expect(result[:stdout].gsub("\r\n", '')).to include(command)
614614
# and it should end with the Write-Error content
615615
expect(result[:stdout]).to match(/404 Craig Not Found/)
616616
end

0 commit comments

Comments
 (0)