Skip to main content

UseInlineResourcesDefined

The department is: UseInlineResourcesDefined

The full name of the cop is: Chef/Deprecations/UseInlineResourcesDefined

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

use_inline_resources became the default in Chef Infra Client 13+ and no longer needs to be called in resources

Examples

incorrect

use_inline_resources
use_inline_resources if defined?(use_inline_resources)
use_inline_resources if respond_to?(:use_inline_resources)

Configurable attributes

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

Thank you for your feedback!

×









Search Results