Last active
September 25, 2020 19:13
-
-
Save r7kamura/5d39cd15ade28981a946b12f810740ed to your computer and use it in GitHub Desktop.
A Ruby script to print cop names which include "space".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'activesupport' | |
gem 'rubocop', '0.84.0' | |
gem 'rubocop-performance', '1.6.0' | |
gem 'rubocop-rails', '2.5.2' | |
end | |
require 'active_support/core_ext/class/subclasses' | |
require 'rubocop' | |
require 'rubocop/performance' | |
require 'rubocop/rails' | |
puts RuboCop::Cop::Cop.descendants.map(&:to_s).grep(/space/i).sort |
Author
r7kamura
commented
Sep 25, 2020
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment