Skip to main content

OctalModeAsString

The department is: OctalModeAsString

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

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll Versions

do not represent file modes as Strings containing octal values.

Examples

incorrect

file '/etc/some_file' do
  mode '0o755'
end

correct

file '/etc/some_file' do
  mode '0755'
end

Configurable attributes

NameDefault valueConfigurable values
Version Added6.21.0String
Include
    Array

    Was this page helpful?

    ×









    Search Results