puppet-lint-array_formatting-check 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/puppet-lint/plugins/check_array_formatting.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6db238b016698657a3c3d1c3356b79b3b5bedd4b8649ba7563af25928c567f57
|
4
|
+
data.tar.gz: 4937cb887937b74910d103cdf29c334c738f8b8d3fc51814a29d3e1ffdbd0977
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 117612e561d787d5bc9a5c5a1fdfb67ed13b763811e3bd8152460fc306fb5b06fedafa9370305f8a3f35156a1b6fd312e7d98916f72dccd7d957521fbcc4f011
|
7
|
+
data.tar.gz: 7693dd7c1919bf1ba0917dae4786793ff58c99805f6c2e30c211a7b3799e4cc157c1652a553215c29fd6ad5d4e9e23dea5d18b4667585a9ff6ad310a8d4a6a57
|
@@ -36,7 +36,7 @@ PuppetLint.new_check(:array_formatting) do
|
|
36
36
|
# We're really only keeping track of array *items* here for the sake of the length calculation.
|
37
37
|
# We're going to ignore everything that doesn't count as an *item*, like commas, comments, and whitespaces
|
38
38
|
# We need to push NEWLINE(s) though because there might be too many
|
39
|
-
elsif !%i[COMMA
|
39
|
+
elsif !%i[COMMA WHITESPACE INDENT].include?(token.type)
|
40
40
|
manifest_array.push token
|
41
41
|
end
|
42
42
|
# Advance. (We're still looking for that RBRACK)
|