Skip to main content

MetadataMissingName

The department is: MetadataMissingName

The full name of the cop is: Chef/Correctness/MetadataMissingName

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