Skip to main content

InvalidPlatformMetadata

The department is: InvalidPlatformMetadata

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. See Infra Language: Platform for a list of many common platform values.

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

Thank you for your feedback!

×









Search Results