class RuboCop::Cop::Generator
and test file when given a valid qualified cop name.
This generator will take a cop name and generate a source file
Source and test generator for new cops
def generated_test
def generated_test generate(TEST_TEMPLATE) end
def test_path
def test_path File.join('test', 'rubocop', 'cop', 'minitest', "#{snake_case(badge.cop_name.to_s)}_test.rb") end
def write_test
def write_test write_unless_file_exists(test_path, generated_test) end