Skip to main content

CookbookUsesSearch

All Cookstyle Cops


The department is: Chef/Effortless

The full name of the cop is: Chef/Effortless/CookbookUsesSearch


Enabled by defaultSupports autocorrectionTarget Chef Version
Not EnabledNoAll Versions

Search is not compatible with the Effortless Infra pattern

Examples

incorrect

search(:node, 'run_list:recipe\[bacula\:\:server\]')

Configurable attributes

NameDefault valueConfigurable values
Version Added5.1.0String
Exclude
  • **/metadata.rb
  • **/Berksfile
Array

Was this page helpful?