Skip to content

Commit 9065bfb

Browse files
committed
Correct Layout/ClosingHeredocIndentation
1 parent f44b680 commit 9065bfb

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 7
10-
# This cop supports safe autocorrection (--autocorrect).
11-
Layout/ClosingHeredocIndentation:
12-
Exclude:
13-
- 'spec/unit/puppet_x/dsc_lite/powershell_hash_formatter_spec.rb'
14-
159
# Offense count: 2
1610
# This cop supports safe autocorrection (--autocorrect).
1711
Layout/EmptyLineAfterGuardClause:

spec/unit/puppet_x/dsc_lite/powershell_hash_formatter_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'ensure' = 'present';
2020
'name' = 'Web-WebServer'
2121
}
22-
HERE
22+
HERE
2323
result = formatter.format('ensure' => 'present',
2424
'name' => 'Web-WebServer')
2525
expect(result).to eq expected.strip
@@ -39,7 +39,7 @@
3939
})
4040
)
4141
}
42-
HERE
42+
HERE
4343

4444
result = formatter.format('ensure' => 'Present',
4545
'name' => 'foo',
@@ -70,7 +70,7 @@
7070
'digest' = $false
7171
})
7272
}
73-
HERE
73+
HERE
7474

7575
result = formatter.format('ensure' => 'Present',
7676
'name' => 'foo',
@@ -110,7 +110,7 @@
110110
})
111111
)
112112
}
113-
HERE
113+
HERE
114114

115115
result = formatter.format('ensure' => 'Present',
116116
'name' => 'foo',
@@ -149,7 +149,7 @@
149149
'passwordneverexpires' = $false;
150150
'disabled' = $true
151151
}
152-
HERE
152+
HERE
153153
result = formatter.format('username' => 'jane-doe',
154154
'description' => 'Jane Doe user',
155155
'ensure' => 'present',
@@ -175,7 +175,7 @@
175175
'Accept-Language' = 'en-US'
176176
}
177177
}
178-
HERE
178+
HERE
179179
result = formatter.format('destinationPath' => "c:\fileName.jpg",
180180
'uri' => 'http://www.contoso.com/image.jpg',
181181
'userAgent' => '[Microsoft.PowerShell.Commands.PSUserAgent]::InternetExplorer',
@@ -198,7 +198,7 @@
198198
'passwordneverexpires' = $false;
199199
'disabled' = $true
200200
}
201-
HERE
201+
HERE
202202
sensitive_pass = Puppet::Pops::Types::PSensitiveType::Sensitive.new('password')
203203
result = formatter.format('username' => 'jane-doe',
204204
'description' => 'Jane Doe user',

0 commit comments

Comments
 (0)