Skip to main content

SearchUsesPositionalParameters

All Cookstyle Cops


The department is: Chef/Deprecations

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


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

correct

query(:node, ‘:') search(:node, ‘:’, start: 0, rows: 1000, filter_result: { :ip_address => [“ipaddress”] }) search(:node, ‘:’, start: 0, rows: 1000) search(:node, ‘:’, start: 0)

Examples

Configurable attributes

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

Was this page helpful?