puppet-lint-explicit_hiera_class_param_lookup-check 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 25f922c2cb240bc79774e4407794ebd6b09cb6b4
4
- data.tar.gz: 1185f445dd37b80d5fa737bb25b1d43624a70325
3
+ metadata.gz: 9d78fb1aec02dfbce78e457d7fb07026a419ffb4
4
+ data.tar.gz: 6321e709196073636f407cae3c3aa9abe03cb2ba
5
5
  SHA512:
6
- metadata.gz: 2696348e5561792596abe245b667b2abbe056d8a2c8b4ecc1ab9ae44806eb471e75e1739d3b6c7805d90e1901b2f1dd5bbb6f030e775f1ea7f88e3ba7b1f2912
7
- data.tar.gz: dd5cc305e7468711d443b52607c2bac50d768f3375fc7ac9cd10e54cd47b758b83af79e108732637a0008e29073899c99d637a8d7e13c71a24c9f255a06987c5
6
+ metadata.gz: 0d98755a180f46b2bbb5b54bea338601e8b30291289c4488c25e92101095bf99189c90f447166d8912366d85990a535bdc33f43fb3c147eaf54ab0a3c3b1d9da
7
+ data.tar.gz: 16ec51044d83354847df85ecc81b71675caf17eb5ec1d1404e8ccb3aebe331ebbf0fa17f9f4c711fa2c6073fa5a90ab8750c0379ed0b3f858f2620be46f80eef
data/README.md CHANGED
@@ -31,7 +31,12 @@ This plugin provides a new check to `puppet-lint`.
31
31
 
32
32
  explicit hiera() lookup of my::sample::key
33
33
 
34
- #### Author
34
+ ## Other puppet-lint plugins
35
+
36
+ You can find a list of my `puppet-lint` plugins in the
37
+ [unixdaemon puppet-lint-plugins](https://github.com/deanwilson/unixdaemon-puppet-lint-plugins) repo.
38
+
39
+ ### Author
35
40
 
36
41
  [Dean Wilson](http://www.unixdaemon.net)
37
42
 
@@ -6,6 +6,8 @@ PuppetLint.new_check(:explicit_hiera_class_param_lookup) do
6
6
  t.type == :NAME and t.value == 'hiera'
7
7
  }.each do |token|
8
8
 
9
+ next unless token.next_code_token.type == :LPAREN
10
+
9
11
  hiera_key = token.next_code_token.next_code_token
10
12
 
11
13
  notify :error, {
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint-explicit_hiera_class_param_lookup-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Wilson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-28 00:00:00.000000000 Z
11
+ date: 2016-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puppet-lint
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '1.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rspec
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -98,16 +104,16 @@ dependencies:
98
104
  name: rubocop
99
105
  requirement: !ruby/object:Gem::Requirement
100
106
  requirements:
101
- - - ">="
107
+ - - "~>"
102
108
  - !ruby/object:Gem::Version
103
- version: '0'
109
+ version: 0.36.0
104
110
  type: :development
105
111
  prerelease: false
106
112
  version_requirements: !ruby/object:Gem::Requirement
107
113
  requirements:
108
- - - ">="
114
+ - - "~>"
109
115
  - !ruby/object:Gem::Version
110
- version: '0'
116
+ version: 0.36.0
111
117
  description: |2
112
118
  Extends puppet-lint to ensure there are no explicit calls to hiera()
113
119
  in the class parameters.