Skip to main content

InSpec/Deprecations/AttributeDefault

Cookstyle cops page

The Cookstyle cops department: InSpec/Deprecations

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

The Chef InSpec inputs default option has been replaced with the value option.

Examples

incorrect

login_defs_umask = input('login_defs_umask', default: '077', description: 'Default umask to set in login.defs')

correct

login_defs_umask = input('login_defs_umask', value: '077', description: 'Default umask to set in login.defs')

Configurable attributes

NameDefault valueConfigurable values
Version Added7.14.0String
Include
  • **/controls/*.rb
Array

Thank you for your feedback!

×










Search Results