foodcritic 13.1.0 → 13.1.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 +5 -0
- data/lib/foodcritic/linter.rb +1 -1
- data/lib/foodcritic/rules/fc106.rb +1 -1
- data/lib/foodcritic/rules/fc110.rb +1 -1
- data/lib/foodcritic/rules/fc111.rb +1 -1
- data/lib/foodcritic/rules/fc112.rb +1 -1
- data/lib/foodcritic/rules/fc113.rb +1 -1
- data/lib/foodcritic/rules/fc119.rb +1 -1
- data/lib/foodcritic/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b858aa4f622933d71f53374eb8fc6dc128bf64edf373dabe496d479f7e6810a4
|
4
|
+
data.tar.gz: 157fb6af5a3bbbac77b837a045dcf5479375a0107a907387e58cec6cfd557896
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa6c67bbace23b89f175be01b8a4f2d070713ee4040749cc2747934f85ee64ce2323366ba8298676209bc9623a047eb47ca030c7d57acb3997d26affad8c7919
|
7
|
+
data.tar.gz: 14c7e53a8247e861a2e6edbde44cf95b5b60bde02343cd15cfe4e721dd9c8eebe78170b1f0945a551200fe8764ea80c74bd3bb4c10dcf490cb1b10d33a6a3ffd
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Foodcritic Changelog:
|
2
2
|
|
3
|
+
## [13.1.1](https://github.com/Foodcritic/foodcritic/tree/v13.1.1) (2018-04-12)
|
4
|
+
|
5
|
+
- Fixed an error in the detection of attributes.rb files when using root alias functionality
|
6
|
+
- Updated rules that used the 'deprecation' tag to instead use the 'deprecated' tag. All rules for deprecated functionality now have the same catch all tag.
|
7
|
+
|
3
8
|
## [13.1.0](https://github.com/Foodcritic/foodcritic/tree/v13.1.0) (2018-04-12)
|
4
9
|
|
5
10
|
### Speed improvements
|
data/lib/foodcritic/linter.rb
CHANGED
@@ -277,7 +277,7 @@ module FoodCritic
|
|
277
277
|
else
|
278
278
|
# determine the difference to the root of the CB from our file's directory
|
279
279
|
relative_difference = case File.basename(file)
|
280
|
-
when "recipe.rb", "
|
280
|
+
when "recipe.rb", "attributes.rb", "metadata.rb" then ""
|
281
281
|
else # everything else is 1 directory up ie. cookbook/recipes/default.rb
|
282
282
|
".."
|
283
283
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
rule "FC111", "search using deprecated sort flag" do
|
2
|
-
tags %w{
|
2
|
+
tags %w{deprecated chef13}
|
3
3
|
recipe do |ast|
|
4
4
|
# search(:node, 'role:web', :sort => true)
|
5
5
|
ast.xpath("//method_add_arg[fcall/ident/@value='search'][arg_paren/args_add_block/args_add/bare_assoc_hash/assoc_new/symbol/ident/@value = 'sort']")
|
@@ -1,5 +1,5 @@
|
|
1
1
|
rule "FC113", "Resource declares deprecated use_inline_resources" do
|
2
|
-
tags %w{
|
2
|
+
tags %w{deprecated chef15 lwrp}
|
3
3
|
library do |ast|
|
4
4
|
matches = []
|
5
5
|
ast.xpath('//const_path_ref/const[@value="LWRPBase"]/..//const[@value="Provider"]/../../..').select do |x|
|
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: 13.1.
|
4
|
+
version: 13.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Crump
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber-core
|
@@ -554,5 +554,5 @@ rubyforge_project:
|
|
554
554
|
rubygems_version: 2.7.5
|
555
555
|
signing_key:
|
556
556
|
specification_version: 4
|
557
|
-
summary: foodcritic-13.1.
|
557
|
+
summary: foodcritic-13.1.1
|
558
558
|
test_files: []
|