puppet-lint-absolute_classname-check 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWE2YWIwM2QzN2NhZjA2NWQ4MjUzYjBiMjc0NzMxZjIyZjAwYzMyOQ==
4
+ ZmRhNWUzOWE4NjU5NzIwZjcwNGQ3OGU0NTQ4ZGRmZDlkNGI2Y2NjYw==
5
5
  data.tar.gz: !binary |-
6
- MTI1ZjVjNWNiZDY5NGQ5YjJlNWE1Y2E5YWIxNzg1Y2JjZjI4NTBkZA==
6
+ OWQ3YTE2MWZmMDY2YjYyNDBhM2EyOTAyMDJmMDY1NTgyODhlMzI5MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTFmNmQzM2E1NDFmYWJhY2IxNGE3MzMyZTczZWNkYTRlNDkyZWZiOTNlNTgz
10
- MjI5MGJmNWJjMDhlMDhjYTI0YTk5ZTAzZjkxOGRkNWI0YWFiMDQ1YTZkZjQz
11
- NzQ1MGY5NWYwYjFiYmQ2MzcyOTA2Zjk2NTRjMWNhNGNiNTg5OTE=
9
+ ZmVlZGYyNzU1MjYyNWNlZTBkOTM5NjQ2ZGEwNjQwYjIwMTkyY2ZlMDMwOTM4
10
+ NWM1NGZkZTAzZjg0Njg3MGE0ZjlkYjJhOTgwYmFjYmI0MDcyYWVmOThkMDc5
11
+ NTIxZTNkN2IxMTUzZmM5NjkwZmEzZjNmMDU1MmQ1MjM0NThlZTU=
12
12
  data.tar.gz: !binary |-
13
- ODU5NmFkZmJkNGM5YzIyMDBiMWRjOThmN2I5YTUwMjNjMWE5N2YwNjIxN2Ri
14
- NGQ0ZWNiMzc5YzRkZmMwYjM5ZTIwYWQ0NWYzNjUyYzUxM2UwYTg2YWI0NTBh
15
- ZWY0YzNjMGZkYWFmOWJhYmFjOGFmZmJiNjQ4NWM3MWJmOWM1MTI=
13
+ N2RiOGRkMzk1ZmFiOTFjNzJmOTViYWU0YTk4Yzc2M2FhZWM4ZjJlY2FmYTM5
14
+ YzA3MWExZDJhZTMxYjUyMmU2NmE3NTA1YWIyZWVjNzA3ZjllMTRkZDg4MTIw
15
+ ZmJlMzE3ZWQ2M2QxOWNlNWRjZTM1OWIwZjgyZTQ2OGRlOGY3OGM=
@@ -5,10 +5,11 @@ PuppetLint.new_check(:relative_classname_inclusion) do
5
5
  s = token.next_code_token
6
6
  in_function = 0
7
7
  while s.type != :NEWLINE
8
+ n = s.next_code_token
8
9
  if s.type == :NAME || s.type == :SSTRING
9
- if s.next_code_token.type == :LPAREN
10
+ if n && n.type == :LPAREN
10
11
  in_function += 1
11
- elsif in_function > 0 && s.next_code_token.type == :RPAREN
12
+ elsif in_function > 0 && n && n.type == :RPAREN
12
13
  in_function -= 1
13
14
  elsif in_function == 0 && s.value !~ /^::/
14
15
  notify :warning, {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint-absolute_classname-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camptocamp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-14 00:00:00.000000000 Z
11
+ date: 2015-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puppet-lint