Class: RuboCop::Cop::Registry
- Inherits:
-
Object
- Object
- RuboCop::Cop::Registry
- Defined in:
- lib/rubocop/monkey_patches/registry_cop.rb
Instance Method Summary collapse
-
#print_warning(name, path) ⇒ Object
we monkeypatch this warning to replace rubocop with cookstyle.
Instance Method Details
#print_warning(name, path) ⇒ Object
we monkeypatch this warning to replace rubocop with cookstyle
6 7 8 9 10 11 12 |
# File 'lib/rubocop/monkey_patches/registry_cop.rb', line 6 def print_warning(name, path) = "#{path}: Warning: no department given for #{name}." if path.end_with?('.rb') += ' Run `cookstyle -a --only Migration/DepartmentName` to fix.' end warn end |