Skip to main content

InvalidPlatformMetadata

All Cookstyle Cops


The department is: Chef/Correctness

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


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

metadata.rb supports methods should contain valid platforms.

Examples

incorrect

supports 'darwin'
supports 'mswin'

correct

supports 'mac_os_x'
supports 'windows'

Configurable attributes

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

Was this page helpful?