Foodcritic 11 has been released to Rubygems with 7 new cookbook rules and some important bug fixes. The even bigger news is that Foodcritic now has its own org on Github to make community collaboration that much easier. A huge thank you to Andrew Crump who originally authored Foodcritic, and has helped us to move forward with community driven Foodcritic development.
FC079to detect the usage of the easy_install_package resource which is deprecated in Chef 13. Tags: deprecated, chef13.
FC080to detect user resources that include the supports property, which is deprecated in Chef 13. Tags: deprecated, chef13.
FC081to detect a cookbook that depends on the partial_search cookbook as partial search functionality is built into Chef 12 and later. Tags: chef12.
FC082to detect the usage of node.set and node.set_unless which will be removed in Chef 14. Tags: deprecated, chef14.
FC083to detect execute resources that include the path property, which is deprecated in Chef 12. Tags: deprecated, chef12.
FC084to detect usage of the deprecated Chef::REST class. Tags: deprecated, chef13.
FC085to detect usage of new_resource.updated_by_last_action to converge resources. Tags: deprecated, chef13.
- Updated and refactored API methods
- Deprecated API methods
chef_solo_search_supported?have been removed.
- Added a new API method
json_file_to_hashfor loading json files as a hash.
- Added a new rake command to run the regression test on just a single cookbook
- Multiple rules have been rewritten to use Foodcritic APIs instead of using XPATH queries directly. This avoids false positives created by overly simplistic queries.
- Fixed FC069 to skip if the license metadata is any formatting of ‘All Rights Reserved’.
- Added the
supermarkettag to FC078.
- Updated the
field_valueAPI methods to correctly recognize additional formats of data in the metdata.