Sha256: d32d65a173cae40019a01da2bb0bd08c84baa4851edc2265963c8aa97a1a06b4
Contents?: true
Size: 928 Bytes
Versions: 35
Compression:
Stored size: 928 Bytes
Contents
# frozen_string_literal: true module RailsAppGenerator # Custom add-ons for RailsAppGenerator module AddOns # Add Rubocop to rails application class Rubocop < RailsAppGenerator::Addon # required_gem gem.version('rubocop', '1.34.0', 'RuboCop is a Ruby code style checking and code formatting tool.') # TODO: This needs to go into the development group required_gem gem.version('rubocop-rails', '2.15.2', 'NOTE: MOVE TO DEVELOPMENT GROUP: RuboCop linter with focused on enforcing Rails best practices and coding conventions.') def apply template '.rubocop.yml.erb', '.rubocop.yml' end def before_template # This will cleanup the basic Rails 7 code base # May want to make this a setting in the future say 'Rubocop to cleanup the default Rails 7 code base' run('rubocop -A --format worst --config .rubocop.yml') end end end end
Version data entries
35 entries across 35 versions & 1 rubygems