Hey Everyone,
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.
Implemented enhancements:
- Added
FC079to detect the usage of the easy_install_package resource which is deprecated in Chef 13. Tags: deprecated, chef13. - Added
FC080to detect user resources that include the supports property, which is deprecated in Chef 13. Tags: deprecated, chef13. - Added
FC081to detect a cookbook that depends on the partial_search cookbook as partial search functionality is built into Chef 12 and later. Tags: chef12. - Added
FC082to detect the usage of node.set and node.set_unless which will be removed in Chef 14. Tags: deprecated, chef14. - Added
FC083to detect execute resources that include the path property, which is deprecated in Chef 12. Tags: deprecated, chef12. - Added
FC084to detect usage of the deprecated Chef::REST class. Tags: deprecated, chef13. - Added
FC085to detect usage of new_resource.updated_by_last_action to converge resources. Tags: deprecated, chef13. - Updated and refactored API methods
declared_dependencies,supported_platforms, andword_list_values - Deprecated API methods
checks_for_chef_soloandchef_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
Fixed bugs:
- 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
licenseandsupermarkettag to FC078. - Updated the
fieldandfield_valueAPI methods to correctly recognize additional formats of data in the metdata.
-Tim