class RuboCop::Cop::Chef::Deprecations::LibrarianChefSpec
The Librarian-Chef depsolving project is no longer maintained and a Cheffile
should not be used for cookbook depsolving. Consider using Policyfiles instead.
@example
#### incorrect require 'chefspec/librarian'
Constants
- MSG
- RESTRICT_ON_SEND
Public Instance Methods
on_send(node)
click to toggle source
# File lib/rubocop/cop/chef/deprecation/librarian_chefspec.rb, line 33 def on_send(node) return unless node.arguments.first == s(:str, 'chefspec/librarian') add_offense(node, severity: :warning) end