daptiv-foodcritic-rules 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/foodcritic/rules/rules.rb +4 -2
- metadata +11 -17
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1d9734166784cd0f24827eb0ede6a83cd92eead3
|
4
|
+
data.tar.gz: 65a6ebb9f527c6367c6ed8d694dff83b414e9216
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9d793fa580346ab4db01d4883fa3ec3a5d9ae4cf0efc5938ad41378b186eb4957b3bb364e7789ec618006c057016f2974249984f2151f767ae5a18acb08bf043
|
7
|
+
data.tar.gz: 30d193c08511c6ec3f0bb71b8064e08c07689629a5ef4f7fd384f01591f2ffc6e920452d560aa9ef2fab25e5c524a03adcb16446aa24f61aca59308405e2eae5
|
@@ -162,7 +162,9 @@ rule 'DAPTIV001', 'Missing .tailor file. All cookbooks should comply with style
|
|
162
162
|
end
|
163
163
|
|
164
164
|
rule 'DAPTIV002', 'Prefer include_attribute syntax to require_relative.' do
|
165
|
-
recipe do |ast|
|
166
|
-
|
165
|
+
recipe do |ast, path|
|
166
|
+
if path.include?('recipes') || path.include?('attributes')
|
167
|
+
ast.xpath('//command[ident/@value="require_relative"]')
|
168
|
+
end
|
167
169
|
end
|
168
170
|
end
|
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daptiv-foodcritic-rules
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Shawn Neal
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-09-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: foodcritic
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 2.2.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 2.2.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
description: Daptiv Foodcritic 2.2 and greater rules for Chef 11 and greater
|
@@ -54,26 +49,25 @@ files:
|
|
54
49
|
homepage: https://github.com/daptiv/foodcritic_rules
|
55
50
|
licenses:
|
56
51
|
- APACHE2
|
52
|
+
metadata: {}
|
57
53
|
post_install_message:
|
58
54
|
rdoc_options: []
|
59
55
|
require_paths:
|
60
56
|
- lib
|
61
57
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
58
|
requirements:
|
64
|
-
- -
|
59
|
+
- - '>='
|
65
60
|
- !ruby/object:Gem::Version
|
66
61
|
version: '0'
|
67
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
63
|
requirements:
|
70
|
-
- -
|
64
|
+
- - '>='
|
71
65
|
- !ruby/object:Gem::Version
|
72
66
|
version: '0'
|
73
67
|
requirements: []
|
74
68
|
rubyforge_project:
|
75
|
-
rubygems_version:
|
69
|
+
rubygems_version: 2.0.14
|
76
70
|
signing_key:
|
77
|
-
specification_version:
|
71
|
+
specification_version: 4
|
78
72
|
summary: Daptiv Foodcritic rules for Chef
|
79
73
|
test_files: []
|