class RuboCop::CLI
def print_available_cops
def print_available_cops cops = Cop::Cop.all show_all = @options[:show_cops].empty? if show_all puts "# Available cops (#{cops.length}) + config for #{Dir.pwd}: " end cops.types.sort!.each { |type| print_cops_of_type(cops, type, show_all) } end