puppet-lint-unquoted_string-check 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dda199ae6b45a46e5fd35e35647187c67a92fae
|
4
|
+
data.tar.gz: 2ece158ac5344c421957184663ba9b318a6f08b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de3ea469cde9b127d6402813d9ba3eb846713cd167eb37ea07de6e2d9699d28a1bea213944607df8470ee8f89a2e31db4283b7d310b4f627e7532fe8d721a452
|
7
|
+
data.tar.gz: b1d0012eca332164fbc3227d611779ffb7a79b99946f785ce18fff31304c2d3fd9398e3546e3b8b243f43a0a5ecf44578a5e183cd5f99740e2c90e3a281b7ec9
|
@@ -27,7 +27,7 @@ def tokens_to_fix(type_tokens, sep_type)
|
|
27
27
|
type_tokens.index do |r|
|
28
28
|
if r.type == sep_type
|
29
29
|
s = r.prev_token
|
30
|
-
while s.type != :NEWLINE
|
30
|
+
while s.type != :NEWLINE and s.type != :LBRACE
|
31
31
|
if s.type == :NAME || s.type == :CLASSREF
|
32
32
|
tokens_to_fix << s
|
33
33
|
end
|
data/spec/puppet-lint/plugins/check_unquoted_string_in_case/check_unquoted_string_in_case_spec.rb
CHANGED
@@ -37,7 +37,7 @@ describe 'unquoted_string_in_case' do
|
|
37
37
|
include ::foo
|
38
38
|
}
|
39
39
|
/(Darwin|FreeBSD)/: {
|
40
|
-
|
40
|
+
foo { 'bar': }
|
41
41
|
}
|
42
42
|
default: {
|
43
43
|
$rootgroup = 'root'
|
@@ -189,7 +189,7 @@ describe 'unquoted_string_in_case' do
|
|
189
189
|
include ::foo
|
190
190
|
}
|
191
191
|
/(Darwin|FreeBSD)/: {
|
192
|
-
|
192
|
+
foo { 'bar': }
|
193
193
|
}
|
194
194
|
default: {
|
195
195
|
$rootgroup = 'root'
|
@@ -253,7 +253,7 @@ describe 'unquoted_string_in_case' do
|
|
253
253
|
$rootgroup = wheel
|
254
254
|
}
|
255
255
|
redhat,'debian': {
|
256
|
-
|
256
|
+
foo { 'bar': }
|
257
257
|
}
|
258
258
|
/(Darwin|FreeBSD)/: {
|
259
259
|
$rootgroup = 'wheel'
|
@@ -296,7 +296,7 @@ describe 'unquoted_string_in_case' do
|
|
296
296
|
$rootgroup = wheel
|
297
297
|
}
|
298
298
|
'redhat','debian': {
|
299
|
-
|
299
|
+
foo { 'bar': }
|
300
300
|
}
|
301
301
|
/(Darwin|FreeBSD)/: {
|
302
302
|
$rootgroup = 'wheel'
|