Skip to main content

Chef/RedundantCode/SensitivePropertyInResource

Cookstyle cops page

The Cookstyle cops department: Chef/RedundantCode

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Every Chef Infra resource already includes a sensitive property with a default value of false.

incorrect

property :sensitive, [true, false], default: false

Examples

Configurable attributes

NameDefault valueConfigurable values
Version Added5.16.0String
Include
  • **/resources/*.rb
  • **/libraries/*.rb
Array

Thank you for your feedback!

×









Search Results