Sha256: 3a0dfbb3899b84cc2955ab1f90b658ca2bc286284fc2569480bc7c7bfde95ac6
Contents?: true
Size: 431 Bytes
Versions: 78
Compression:
Stored size: 431 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop class Registry # we monkeypatch this warning to replace rubocop with cookstyle 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 end end end
Version data entries
78 entries across 78 versions & 2 rubygems