Extends foodcritic with additional rules for Optoro Cookbooks
All Optoro cookbooks need to have the MIT license specified in the metadta.rb file
A MIT LICENSE file must be present in all Optoro cookbooks
OP003 - maintainer_email must be set to [email protected] in metadata
Set maintainer_email in metadata.rb to [email protected]
Kitchen-ec2 version 0.10.0 is the minimum version required
Berkshelf version 4.0 is the minimum version required
thor gem must be included in the Gemfile
You must include a Thorfile in your cookbook
Strainerfiles are no longer used in cookbooks, should be removed
Every recipe must have a spec file associated with it
Your Thorfile must include the -G option when foodcritic is run, this is required to get these rules evaluated during the test
e.g. - execute_command('bundle exec foodcritic -f any -B ./ -G')
Foodcritic version 5.0 is the minimum version required
knife test has been deprecated. It no longer needs to run
Use chef-zero gem 4.4.0 or higher
Use chef gem 12.6.0 or higher
You must have a source_url in your metadta that is pointing to the source code repository