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

Version Path
cookstyle-7.32.8 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.32.7 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-ng-8.0.0 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.32.2 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.32.1 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.32.0 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.31.9 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.31.7 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.31.3 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.31.1 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.31.0 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.30.4 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.30.3 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.30.1 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.28.2 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.27.0 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.26.1 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.25.10 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.25.9 lib/rubocop/monkey_patches/registry_cop.rb
cookstyle-7.25.8 lib/rubocop/monkey_patches/registry_cop.rb