foodcritic 15.1.0 → 16.0.0
Sign up to get free protection for your applications and to get access to all the features.
data/lib/foodcritic/linter.rb
CHANGED
@@ -9,7 +9,7 @@ module FoodCritic
|
|
9
9
|
|
10
10
|
# The default version that will be used to determine relevant rules. This
|
11
11
|
# can be over-ridden at the command line with the `--chef-version` option.
|
12
|
-
DEFAULT_CHEF_VERSION = "
|
12
|
+
DEFAULT_CHEF_VERSION = "15.0.293".freeze
|
13
13
|
attr_reader :chef_version
|
14
14
|
|
15
15
|
# Perform a lint check. This method is intended for use by the command-line
|
@@ -1,10 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
# metadata do |ast, filename|
|
8
|
-
# [file_match(filename)] unless (declared_dependencies(ast) & %w{build-essential dmg chef_handler chef_hostname mac_os_x swap sysctl}).empty?
|
9
|
-
# end
|
10
|
-
# end
|
1
|
+
rule "FC121", "Cookbook depends on cookbook made obsolete by Chef 14" do
|
2
|
+
tags %w{correctness}
|
3
|
+
metadata do |ast, filename|
|
4
|
+
[file_match(filename)] unless (declared_dependencies(ast) & %w{build-essential dmg chef_handler chef_hostname mac_os_x swap sysctl}).empty?
|
5
|
+
end
|
6
|
+
end
|
data/lib/foodcritic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foodcritic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 16.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Crump
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber-core
|
@@ -172,8 +172,8 @@ files:
|
|
172
172
|
- Gemfile
|
173
173
|
- LICENSE
|
174
174
|
- bin/foodcritic
|
175
|
-
- chef_dsl_metadata/
|
176
|
-
- chef_dsl_metadata/
|
175
|
+
- chef_dsl_metadata/chef_14.12.9.json
|
176
|
+
- chef_dsl_metadata/chef_15.0.293.json
|
177
177
|
- foodcritic.gemspec
|
178
178
|
- lib/foodcritic.rb
|
179
179
|
- lib/foodcritic/api.rb
|
@@ -321,9 +321,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
321
321
|
- !ruby/object:Gem::Version
|
322
322
|
version: '0'
|
323
323
|
requirements: []
|
324
|
-
|
325
|
-
rubygems_version: 2.7.7
|
324
|
+
rubygems_version: 3.0.3
|
326
325
|
signing_key:
|
327
326
|
specification_version: 4
|
328
|
-
summary: foodcritic-
|
327
|
+
summary: foodcritic-16.0.0
|
329
328
|
test_files: []
|