foodcritic-rackspace-rules 1.3.2 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foodcritic/rackspace/rules/version.rb +1 -1
- data/lib/foodcritic/rules/rules.rb +43 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b78b87efb36e5c6370ccb0eba7e56be1c21367ae
|
4
|
+
data.tar.gz: 6ff8bc4ba3befccd47df1226fbe63eb9117317e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4d74ca325c3c0a0bd7c66bdc2583f0803884dcbfbc6942e97ad25776232229f6d3110512af61d966d7824c132cc02d2a62502e6c69e3b54def04aee230b9bf0
|
7
|
+
data.tar.gz: 6fb1e0161c28704c6707ba06f1c9bdec3aa1e9dc417ea50d105c2c461dc9e0f488df0e68a5c195e52cf84103585416e93bc5c8b643cb7e0a1ecb0828498a59d9
|
@@ -181,3 +181,46 @@ rule 'RACK007', "Cookbook must be licensed Apache 2.0 (public) or All rights res
|
|
181
181
|
matches
|
182
182
|
end # metadata
|
183
183
|
end # rule
|
184
|
+
|
185
|
+
rule 'RACK008', 'Files expected by Support must exist' do
|
186
|
+
tags %w(style rackspace-support)
|
187
|
+
expected_files = %w(Berksfile.lock)
|
188
|
+
|
189
|
+
cookbook do |path|
|
190
|
+
matches = []
|
191
|
+
expected_files.each do |f|
|
192
|
+
next unless !File.exist?("#{path}/#{f}")
|
193
|
+
|
194
|
+
matches << {
|
195
|
+
filename: "#{f}",
|
196
|
+
matched: 'missing',
|
197
|
+
line: 0,
|
198
|
+
column: 0
|
199
|
+
}
|
200
|
+
end
|
201
|
+
matches
|
202
|
+
end # cookbook
|
203
|
+
end
|
204
|
+
|
205
|
+
rule 'RACK009', 'Berksfile.lock must not be in .gitignore' do
|
206
|
+
tags %w(style rackspace-support)
|
207
|
+
|
208
|
+
cookbook do
|
209
|
+
matches = []
|
210
|
+
|
211
|
+
gitignore = '.gitignore'
|
212
|
+
lines = File.readlines(gitignore)
|
213
|
+
|
214
|
+
lines.each do |line|
|
215
|
+
if line.include?('Berksfile.lock')
|
216
|
+
matches << {
|
217
|
+
filename: gitignore,
|
218
|
+
matched: 'Berksfile.lock should not be here',
|
219
|
+
line: lines.index(line),
|
220
|
+
column: 0
|
221
|
+
}
|
222
|
+
end
|
223
|
+
end
|
224
|
+
matches
|
225
|
+
end
|
226
|
+
end # rule
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foodcritic-rackspace-rules
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|