daptiv-foodcritic-rules 0.0.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foodcritic/rules/rules.rb +1 -11
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6433c6c26d9a284e4234058748785e0586ea6d9e
|
4
|
+
data.tar.gz: 31a73324391c4d75a224d93c72b4e20f314878cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df5ee0239e17941f3321444b9bed3e742b3e076a903f6a48f1f44c0ea7ad0f2943b4d79a25ab9a412ad0e21c6d9afd72e721da2c989ffb4ff5432baaf0448355
|
7
|
+
data.tar.gz: 9dd67cbdb3b6390462d2f175d0fc43cdce42e5fccd9b83710e35e7127cdfcfd88b06b7a11b9663674e95c2d1f123f7d4e86f2d4e0f0ae88b764c58bdc34c0e60
|
@@ -151,17 +151,7 @@ end
|
|
151
151
|
#######################################################################################################################
|
152
152
|
# Daptiv Rules
|
153
153
|
|
154
|
-
rule 'DAPTIV001', '
|
155
|
-
tags %w{style tailor}
|
156
|
-
cookbook do |path|
|
157
|
-
filepath = File.join(path, '.tailor')
|
158
|
-
unless File.exists?(filepath)
|
159
|
-
[ file_match(filepath) ]
|
160
|
-
end
|
161
|
-
end
|
162
|
-
end
|
163
|
-
|
164
|
-
rule 'DAPTIV002', 'Prefer include_attribute syntax to require_relative.' do
|
154
|
+
rule 'DAPTIV001', 'Prefer include_attribute syntax to require_relative.' do
|
165
155
|
recipe do |ast, path|
|
166
156
|
if path.include?('recipes') || path.include?('attributes')
|
167
157
|
ast.xpath('//command[ident/@value="require_relative"]')
|
metadata
CHANGED
@@ -1,41 +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
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shawn Neal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foodcritic
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Daptiv Foodcritic 2.2 and greater rules for Chef 11 and greater
|
@@ -56,17 +56,17 @@ require_paths:
|
|
56
56
|
- lib
|
57
57
|
required_ruby_version: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- -
|
64
|
+
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
requirements: []
|
68
68
|
rubyforge_project:
|
69
|
-
rubygems_version: 2.
|
69
|
+
rubygems_version: 2.4.5
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: Daptiv Foodcritic rules for Chef
|