foodcritic 10.3.0 → 10.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/chef_dsl_metadata/chef_13.0.113.json +19573 -0
- data/lib/foodcritic/rake_task.rb +5 -1
- data/lib/foodcritic/version.rb +1 -1
- metadata +3 -2
data/lib/foodcritic/rake_task.rb
CHANGED
@@ -19,7 +19,11 @@ module FoodCritic
|
|
19
19
|
task(name) do
|
20
20
|
puts "Starting Foodcritic linting..."
|
21
21
|
result = FoodCritic::Linter.new.check(default_options.merge(options))
|
22
|
-
printer = options[:context]
|
22
|
+
printer = if options[:context]
|
23
|
+
ContextOutput.new($stdout)
|
24
|
+
else
|
25
|
+
SummaryOutput.new($stdout)
|
26
|
+
end
|
23
27
|
printer.output(result) if result.warnings.any?
|
24
28
|
abort if result.failed?
|
25
29
|
puts "Completed!"
|
data/lib/foodcritic/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foodcritic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.3.
|
4
|
+
version: 10.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Crump
|
@@ -183,6 +183,7 @@ files:
|
|
183
183
|
- chef_dsl_metadata/chef_12.7.2.json
|
184
184
|
- chef_dsl_metadata/chef_12.8.1.json
|
185
185
|
- chef_dsl_metadata/chef_12.9.38.json
|
186
|
+
- chef_dsl_metadata/chef_13.0.113.json
|
186
187
|
- features/002_check_string_interpolation.feature
|
187
188
|
- features/004_check_service_resource_used.feature
|
188
189
|
- features/005_check_for_resource_repetition.feature
|
@@ -489,5 +490,5 @@ rubyforge_project:
|
|
489
490
|
rubygems_version: 2.6.11
|
490
491
|
signing_key:
|
491
492
|
specification_version: 4
|
492
|
-
summary: foodcritic-10.3.
|
493
|
+
summary: foodcritic-10.3.1
|
493
494
|
test_files: []
|