Skip to main content

Chef/Correctness/InvalidPlatformMetadata

Cookstyle cops page

The Cookstyle cops department: Chef/Correctness

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!

×