foodcritic-rackspace-rules 1.4.1 → 1.5.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/rackspace/rules/version.rb +1 -1
- data/lib/foodcritic/rules/rules.rb +18 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 175f01b330bb7de9440ad9dcbbdc7a4bcea08a81
|
4
|
+
data.tar.gz: 83db7c542016ebb75f460f543fac54c87f2a879f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 909c7ffec2b0944f56e1a6be330140215bca706603607dfbb00af8f09d47f05aa650315889b0dd0ecd06bedb2aef128f67b9fb25d838372fbacf4f6c35ce4e8c
|
7
|
+
data.tar.gz: 25afb977b0df40a7665c53511077b5077cfe1b8229f23cfbb5f76734eebb9868ad6ea257b3e390afeaf395bb29535164d4a5b15c9bf19946a4fe1f7d011533e1
|
@@ -72,7 +72,7 @@ end # rule
|
|
72
72
|
rule 'RACK003', 'Cookbook is missing a standard file' do
|
73
73
|
tags %w(style rackspace)
|
74
74
|
|
75
|
-
expected_files = %w(README.md metadata.rb
|
75
|
+
expected_files = %w(README.md metadata.rb Gemfile Berksfile Rakefile .kitchen.yml .rubocop.yml CHANGELOG.md )
|
76
76
|
|
77
77
|
cookbook do |path|
|
78
78
|
matches = []
|
@@ -224,3 +224,20 @@ rule 'RACK009', 'Berksfile.lock must not be in .gitignore' do
|
|
224
224
|
matches
|
225
225
|
end
|
226
226
|
end # rule
|
227
|
+
|
228
|
+
rule 'RACK010', 'Cookbook contains dummy encrypted_data_bag_secret' do
|
229
|
+
tags %w(style rackspace-support)
|
230
|
+
|
231
|
+
cookbook do |path|
|
232
|
+
matches = []
|
233
|
+
if File.exist?("#{path}/test/integration/encrypted_data_bag_secret")
|
234
|
+
matches << {
|
235
|
+
filename: 'test/integration/encrypted_data_bag_secret',
|
236
|
+
matched: 'exists',
|
237
|
+
line: 0,
|
238
|
+
column: 0
|
239
|
+
}
|
240
|
+
end
|
241
|
+
matches
|
242
|
+
end # cookbook
|
243
|
+
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.5.0
|
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-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,3 +91,4 @@ signing_key:
|
|
91
91
|
specification_version: 4
|
92
92
|
summary: Foodcritic rules for rackops cookbooks or stacks
|
93
93
|
test_files: []
|
94
|
+
has_rdoc:
|