class RuboCop::Cop::Registry
Public Instance Methods
Source
# File lib/rubocop/monkey_patches/registry_cop.rb, line 6 def print_warning(name, path) message = "#{path}: Warning: no department given for #{name}." if path.end_with?('.rb') message += ' Run `cookstyle -a --only Migration/DepartmentName` to fix.' end warn message end
we monkeypatch this warning to replace rubocop with cookstyle