puppet-lint-trailing_comma-check 0.4.1 → 0.4.2

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
  SHA256:
3
- metadata.gz: 86adcccda246662d25e00fa8d9daa1527e6203493c1ee0cbd2bda4e2c4b769cc
4
- data.tar.gz: 26976dd1f21925da59d0a0ddc11339ab7a9a1044ae740267b237d601d1547637
3
+ metadata.gz: 88f6254b5b943d5d1db6f192ee09f985f9415d5633646fe8a5d078e608a6c12f
4
+ data.tar.gz: d44381bacafa7ffd15724c85d6e7000a96cad1c5d1e5e6f6638f9bad5a81dadd
5
5
  SHA512:
6
- metadata.gz: 294d7eb8f6f53ea7c349b961ad0a6216aae23c95294b15c7b4089d42507e0743eb3685732c66cdbdfdeb119ff48a5caf95080c14ecee91485f89f2500bca42a7
7
- data.tar.gz: 6b239638d055253653177221acf1a5c9d0b8e6611bd0825c611017236c64761995c0d79f96d93e3db5e3791f9f072486e57d83fd0f1b274e0d6cd4ffc25e3563
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 != :MATCH
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|
@@ -66,6 +66,10 @@ describe 'trailing_comma' do
66
66
  if $var =~ Sensitive {
67
67
  $foo = $var.unwrap
68
68
  }
69
+
70
+ if $var !~ Mymodule::MyType {
71
+ fail("encountered error ${err}")
72
+ }
69
73
  EOS
70
74
  }
71
75
 
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.1
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-10-24 00:00:00.000000000 Z
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: |2
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.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