Skip to main content

SensitivePropertyInResource

The department is: SensitivePropertyInResource

The full name of the cop is: Chef/RedundantCode/SensitivePropertyInResource

Enabled by default Supports autocorrection Target Chef Version
Enabled Yes All 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

Name Default value Configurable values
Version Added 5.16.0 String
Include
  • **/resources/*.rb
  • **/libraries/*.rb
Array

Was this page helpful?

×









Search Results