puppet-lint-trailing_comma-check 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8cb09e585f4e0be3ef0b2a58225b5bd2d99decea
|
|
4
|
+
data.tar.gz: 5faccaae68952e06b1497b244fb8309f34902c08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd36c2cbb35ecfe8221352e087d0328d7b281bf6b33c76a1f244c434b2e0c0592af51430c284e579f69509131351a6702b097eac7f235965d1fc24b0779e337e
|
|
7
|
+
data.tar.gz: a6c2929e7469c25218cf47972f5fc1a08573a0bb1fabd3ca65ab501da70ce2929fa1827109d9aee377450e09afb73de362bfc7e340ba4767249f8a3ab720d47a
|
|
@@ -10,6 +10,9 @@ PuppetLint.new_check(:trailing_comma) do
|
|
|
10
10
|
break if cur_token.type == :RBRACK
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Ignore resource references
|
|
14
|
+
next if token.prev_code_token && \
|
|
15
|
+
token.prev_code_token.type == :CLASSREF
|
|
13
16
|
arrays << {
|
|
14
17
|
:start => token_idx,
|
|
15
18
|
:end => real_idx,
|
|
@@ -49,6 +49,12 @@ describe 'trailing_comma' do
|
|
|
49
49
|
},
|
|
50
50
|
'qux' => 'ghi',
|
|
51
51
|
}
|
|
52
|
+
|
|
53
|
+
service { 'bar':
|
|
54
|
+
subscribe => File[
|
|
55
|
+
'/etc/baz.conf', '/etc/baz.conf.d'
|
|
56
|
+
],
|
|
57
|
+
}
|
|
52
58
|
EOS
|
|
53
59
|
}
|
|
54
60
|
|
|
@@ -102,6 +108,12 @@ describe 'trailing_comma' do
|
|
|
102
108
|
},
|
|
103
109
|
'qux' => 'ghi'
|
|
104
110
|
}
|
|
111
|
+
|
|
112
|
+
service { 'bar':
|
|
113
|
+
subscribe => File[
|
|
114
|
+
'/etc/baz.conf', '/etc/baz.conf.d'
|
|
115
|
+
],
|
|
116
|
+
}
|
|
105
117
|
EOS
|
|
106
118
|
}
|
|
107
119
|
|
|
@@ -174,6 +186,12 @@ describe 'trailing_comma' do
|
|
|
174
186
|
},
|
|
175
187
|
'qux' => 'ghi',
|
|
176
188
|
}
|
|
189
|
+
|
|
190
|
+
service { 'bar':
|
|
191
|
+
subscribe => File[
|
|
192
|
+
'/etc/baz.conf', '/etc/baz.conf.d'
|
|
193
|
+
],
|
|
194
|
+
}
|
|
177
195
|
EOS
|
|
178
196
|
}
|
|
179
197
|
|
|
@@ -231,6 +249,12 @@ describe 'trailing_comma' do
|
|
|
231
249
|
},
|
|
232
250
|
'qux' => 'ghi'
|
|
233
251
|
}
|
|
252
|
+
|
|
253
|
+
service { 'bar':
|
|
254
|
+
subscribe => File[
|
|
255
|
+
'/etc/baz.conf', '/etc/baz.conf.d'
|
|
256
|
+
],
|
|
257
|
+
}
|
|
234
258
|
EOS
|
|
235
259
|
}
|
|
236
260
|
|
|
@@ -292,6 +316,12 @@ describe 'trailing_comma' do
|
|
|
292
316
|
},
|
|
293
317
|
'qux' => 'ghi',
|
|
294
318
|
}
|
|
319
|
+
|
|
320
|
+
service { 'bar':
|
|
321
|
+
subscribe => File[
|
|
322
|
+
'/etc/baz.conf', '/etc/baz.conf.d'
|
|
323
|
+
],
|
|
324
|
+
}
|
|
295
325
|
EOS
|
|
296
326
|
)
|
|
297
327
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: puppet-lint-trailing_comma-check
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Camptocamp
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-02-
|
|
11
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: puppet-lint
|