class RuboCop::CLI::Command::ShowDocsUrl

@api private
or documentation base url by default.
Prints out url to documentation of provided cops

def cops_array

def cops_array
  @cops_array ||= @options[:show_docs_url]
end

def initialize(env)

def initialize(env)
  super
  @config = @config_store.for(Dir.pwd)
end

def print_documentation_url

def print_documentation_url
  puts Cop::Documentation.default_base_url if cops_array.empty?
  cops_array.each do |cop_name|
    cop = registry_hash[cop_name]
    next if cop.empty?
    url = Cop::Documentation.url_for(cop.first, @config)
    puts url if url
  end
  puts
end

def registry_hash

def registry_hash
  @registry_hash ||= Cop::Registry.global.to_h
end

def run

def run
  print_documentation_url
end