Chef/Modernize/DslIncludeInResource
The Cookstyle cops department: Chef/Modernize
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | Yes | All Versions |
Chef Infra Client 12.4+ includes the Chef::DSL::Recipe in the resource and provider classed by default so there is no need to include this DSL in your resources or providers.
Examples
incorrect
include Chef::DSL::Recipe
include Chef::DSL::IncludeRecipe
Configurable attributes
Name | Default value | Configurable values |
---|---|---|
Version Added | 5.17.0 | String |
Include |
| Array |