Sha256: 09401ac2c454299940eab73a38ae4e329c1adea70fa5c9dd11d4d0c402467806

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
cookstyle-6.11.4 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-6.10.2 lib/rubocop/monkey_patches/registry_cop.rb