Foodcritic 10.3 released

Foodcritic 10.3 has been released to Rubygems and will be shipped with the next release of Chef-DK. This release comes with a massive under the hood change to testing to improve velocity and quality, and also ships with a handful of new / improved rules.

What’s New

  • Added FC069 to ensure standardized licenses are defined in metadata
  • Added FC070 to detect invalid platform supports in metadata
  • Added FC071 to ensure a LICENSE file is included with the cookbook
  • Added FC072 to detect attributes defined in metadata
  • Added FC073 to detect root alias collisions with non-root alias files
  • Added FC074 to detect setting the default_action in a LWRP without using the default_action DSL
  • Added FC075 to detect node.save usage
  • Updated FC008 to fail if the ChefDK generated boilerplate is included
  • Updated FC024 to not recommend adding amazon as an equivalent platform to Redhat as Amazon is its own platform family in Chef 13
  • Updated FC045 to no longer fail if metadata.rb cannot be found
  • Added support for the Chef 13 root alias cookbook structure changes defined in https://github.com/chef/chef-rfc/blob/master/rfc033-root-aliases.md
  • Testing has been completed reworked to simplify testing and allow for far more robust functional tests. Minitest unit tests have been converted to rspec and a new functional testing framework has been added utilizing rspec. Tests for a large number of the existing rules have been converted to this new framework. The new testing framework allows for simple all-in-one tests that are easier to read and much simpler to write. Additionally the regression tests have been reworked, and are now enabled in Travis CI, which will require regeneration of the expected output if new tests are added using rake regen_regression. See the readme for additional details on running tests.

-Tim