lib/foodcritic/rules/fc043.rb



rule "FC043", "Prefer new notification syntax" do
  tags %w{correctness notifications deprecated}
  recipe do |ast|
    find_resources(ast).select do |resource|
      notifications(resource).any? { |notify| notify[:style] == :old }
    end
  end
end