Skip to main content

IncludeRecipeWithParentheses

All Cookstyle Cops


The department is: Chef/Style

The full name of the cop is: Chef/Style/IncludeRecipeWithParentheses


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

There is no need to wrap the recipe in parentheses when using the include_recipe helper.

Examples

incorrect

include_recipe('foo::bar')

correct

include_recipe 'foo::bar'

Configurable attributes

NameDefault valueConfigurable values
Version Added6.11.0String
Exclude
  • **/attributes/*.rb
  • **/metadata.rb
  • **/Berksfile
Array

Was this page helpful?