class RuboCop::Cop::Chef::Deprecations::FoodcriticTesting

The Foodcritic cookbook linter has been deprecated and should no longer be used for validating cookbooks.

@example

#### incorrect
gem 'foodcritic'
require 'foodcritic'

Constants

MSG
RESTRICT_ON_SEND

Public Instance Methods

on_send(node) click to toggle source
# File lib/rubocop/cop/chef/deprecation/foodcritic_testing.rb, line 34
def on_send(node)
  return unless node.arguments.first == s(:str, 'foodcritic')

  add_offense(node, message: MSG, severity: :warning)
end