Sha256: 8e3c113849cbed965931dd562bed4b067ba506dbeee83d313a918dfdb4871876
Contents?: true
Size: 572 Bytes
Versions: 6
Compression:
Stored size: 572 Bytes
Contents
module Stationed module Generators module Plugins module Rubocop def self.prepended(base) base.class_option :rubocop, type: :boolean, default: true, desc: 'Include configuration and tasks to run Rubocop.' end def finish_template return super unless options[:rubocop] gem 'rubocop', group: :development copy_file 'rubocop.rake', 'lib/tasks/rubocop.rake' copy_file 'rubocop.yml', '.rubocop.yml' super end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems