puppet-lint-trailing_comma-check 0.4.1 → 0.4.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88f6254b5b943d5d1db6f192ee09f985f9415d5633646fe8a5d078e608a6c12f
|
4
|
+
data.tar.gz: d44381bacafa7ffd15724c85d6e7000a96cad1c5d1e5e6f6638f9bad5a81dadd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 421c4cfe94c27a82569a88b4e9b709b259e32c9a4b772128d33744c2230704e9da975f4e130429eb3675075ed0b51ecf9b77e905122dc77c9e171c07f07a78f8
|
7
|
+
data.tar.gz: e5e0c305b05742384e0b2ff06976ef97b0bb5c1be079e9b69dc98da85e357e98ffb7e03a212dee2ec256b7e569c419116a1b5ad8158c626cca09eef50849542a
|
@@ -62,7 +62,7 @@ PuppetLint.new_check(:trailing_comma) do
|
|
62
62
|
# Ensure that we aren't matching a function return type:
|
63
63
|
token.prev_code_token.type != :RSHIFT && \
|
64
64
|
# Or a conditional matching a type:
|
65
|
-
token.prev_code_token.type
|
65
|
+
! [:MATCH, :NOMATCH].include?(token.prev_code_token.type)
|
66
66
|
real_idx = 0
|
67
67
|
|
68
68
|
tokens[token_idx+1..-1].each_with_index do |cur_token, cur_token_idx|
|
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.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet Community
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: puppet-lint
|
@@ -114,8 +114,7 @@ dependencies:
|
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
|
-
description:
|
118
|
-
A puppet-lint plugin to check for missing trailing commas.
|
117
|
+
description: " A puppet-lint plugin to check for missing trailing commas.\n"
|
119
118
|
email: raphael.pinson@camptocamp.com
|
120
119
|
executables: []
|
121
120
|
extensions: []
|
@@ -146,10 +145,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
145
|
version: '0'
|
147
146
|
requirements: []
|
148
147
|
rubyforge_project:
|
149
|
-
rubygems_version: 2.7.
|
148
|
+
rubygems_version: 2.7.8
|
150
149
|
signing_key:
|
151
150
|
specification_version: 4
|
152
151
|
summary: A puppet-lint plugin to check for missing trailing commas.
|
153
152
|
test_files:
|
154
|
-
- spec/puppet-lint/plugins/check_trailing_comma/check_trailing_comma_spec.rb
|
155
153
|
- spec/spec_helper.rb
|
154
|
+
- spec/puppet-lint/plugins/check_trailing_comma/check_trailing_comma_spec.rb
|