I was just looking at Foodcritic, and wondered about FC003…
Modified version This modified example would not match the FC003 rule: if Chef::Config[:solo] Chef::Log.warn("This recipe uses search. Chef Solo does not
nodes = search(:node, “hostname:[* TO *] AND
Would it not be better to wrap search() globally and emit that
Chef::Log.warn() each time that function is called inside a Solo run,
and not expect each recipe to do the above?