Skip to main content

Chef/Correctness/OctalModeAsString

Cookstyle cops page

The Cookstyle cops department: Chef/Correctness

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll Versions

Don’t 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

    Thank you for your feedback!

    ×











    Search Results