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 +8 -8
- data/lib/puppet-lint/plugins/check_absolute_classname.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmRhNWUzOWE4NjU5NzIwZjcwNGQ3OGU0NTQ4ZGRmZDlkNGI2Y2NjYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWQ3YTE2MWZmMDY2YjYyNDBhM2EyOTAyMDJmMDY1NTgyODhlMzI5MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmVlZGYyNzU1MjYyNWNlZTBkOTM5NjQ2ZGEwNjQwYjIwMTkyY2ZlMDMwOTM4
|
10
|
+
NWM1NGZkZTAzZjg0Njg3MGE0ZjlkYjJhOTgwYmFjYmI0MDcyYWVmOThkMDc5
|
11
|
+
NTIxZTNkN2IxMTUzZmM5NjkwZmEzZjNmMDU1MmQ1MjM0NThlZTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
10
|
+
if n && n.type == :LPAREN
|
10
11
|
in_function += 1
|
11
|
-
elsif in_function > 0 &&
|
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.
|
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-
|
11
|
+
date: 2015-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: puppet-lint
|