class RuboCop::Cop::Chef::Style::ChefWhaaat
Checks for comments that mention “Chef” without context. Do you mean Chef
Infra or Chef
Software?
@example
#### incorrect Chef makes software Chef configures your systems #### correct Chef Software makes software Chef Infra configures your systems
Constants
- MSG
Public Instance Methods
on_new_investigation()
click to toggle source
# File lib/rubocop/cop/chef/style/chef_whaaat.rb, line 37 def on_new_investigation return unless processed_source.ast processed_source.comments.each do |comment| next unless comment.text.match?(/Chef [a-z]/) # https://rubular.com/r/0YzfDAbwJrDHix add_offense(comment, message: MSG, severity: :refactor) end end