puppet-lint-manifest_whitespace-check 0.2.5 → 0.2.6

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: c3fe61412435fe6e35447e02c54fe9b71937f5b1ceb30c65308eb8e1b61adaf0
4
- data.tar.gz: d50c16634bb1f6609b5029b163a615d21e26e49df289be506634ee2f5240c205
3
+ metadata.gz: bfd370ff80d1f947b2ff60f2328ec106465b4dbc6aa43b3e9b90d029cc217912
4
+ data.tar.gz: 03ad9c1bbc4c4620a82201068606984ea7229165af7bd00572920ae5af0c4316
5
5
  SHA512:
6
- metadata.gz: db462d214af83d3f3f32ae1d4aa91aad45c32d7c1ead916bc459cc56e1d345c258d4e28c3a5d48b2c13b890f7fa4a929177c3b91c3ce08d15a3618467c0d4a10
7
- data.tar.gz: 2d57e6f697d41bf685bbc8b403fa11a2408c0aae3995b462f3f7f700c29ebc840a236767e841dce0c37233bd124227e3eec2f047c95ca1150caf7603d1072c79
6
+ metadata.gz: deec8f90369d519039c09c721087c289dd9c4c7225c2caa760b21cdaeacd4611f7b95470a2c3c2732fdd3e045f78d872ac8f8935d200e2a48b9e578bac4f0745
7
+ data.tar.gz: 0b008268fd5686720c5e9d4173e78543f741dc8a41a7f9b97d2656cb4eae52a9b9b897fe07b59464d6f542a9f485bb9fdeaa5707e1650a21eb13f674467e9f4b
@@ -4,7 +4,7 @@ PuppetLint.new_check(:manifest_whitespace_missing_newline_end_of_file) do
4
4
  def check
5
5
  last_token = tokens.last
6
6
 
7
- if last_token.type != :NEWLINE
7
+ if last_token && last_token.type != :NEWLINE
8
8
  notify(
9
9
  :error,
10
10
  message: 'there should be a single newline at the end of a manifest',
@@ -25,7 +25,7 @@ PuppetLint.new_check(:manifest_whitespace_double_newline_end_of_file) do
25
25
  def check
26
26
  last_token = tokens.last
27
27
 
28
- if last_token.type == :NEWLINE
28
+ if last_token && last_token.type == :NEWLINE
29
29
  while last_token.prev_token && last_token.prev_token.type == :NEWLINE
30
30
  notify(
31
31
  :error,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint-manifest_whitespace-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jo Vandeginste
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-12 00:00:00.000000000 Z
11
+ date: 2022-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puppet-lint