Skip to main content

Chef/Correctness/MetadataMissingName

Cookstyle cops page

The Cookstyle cops department: Chef/Correctness

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

metadata.rb needs to include the name method or it will fail on Chef Infra Client 12 and later.

Examples


### correct

```ruby
name 'foo'

Configurable attributes

NameDefault valueConfigurable values
Version Added5.2.0String
Include
  • **/metadata.rb
Array

Thank you for your feedback!

×










Search Results