Skip to main content

Chef/Sharing/IncludePropertyDescriptions

Cookstyle cops page

The Cookstyle cops department: Chef/Sharing

Enabled by defaultSupports autocorrectionTarget Chef Version
Not EnabledNo13.9+

Resource properties should include description fields to allow automated documentation. Requires Chef Infra Client 13.9 or later.

Examples

incorrect

property :foo, String

correct

property :foo, String, description: "Set the important thing to..."

Configurable attributes

NameDefault valueConfigurable values
Version Added6.1.0String
Include
  • **/libraries/*.rb
  • **/resources/*.rb
Array

Thank you for your feedback!

×