Skip to main content

Chef/Correctness/InvalidPlatformHelper

Cookstyle cops page

The Cookstyle cops department: Chef/Correctness

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll Versions

Pass valid platforms to the platform? helper. See Infra Language: Platform for a list of many common platform values.

Examples

incorrect

platform?('darwin')
platform?('rhel')
platform?('sles')

correct

platform?('mac_os_x')
platform?('redhat')
platform?('suse')

Configurable attributes

NameDefault valueConfigurable values
Version Added5.15.0String
Include
    Array

    Thank you for your feedback!

    ×










    Search Results