Sha256: 12ce17bdf6eb0e614471c83b90329d06f7bc7e9d2af329fe52cb51b4aef78e79

Contents?: true

Size: 653 Bytes

Versions: 13

Compression:

Stored size: 653 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
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rails_app_generator-0.2.15 lib/rails_app_generator/addons/rubocop.rb
rails_app_generator-0.2.14 lib/rails_app_generator/addons/rubocop.rb
rails_app_generator-0.2.13 lib/rails_app_generator/addons/rubocop.rb
rails_app_generator-0.2.12 lib/rails_app_generator/addons/rubocop.rb
rails_app_generator-0.2.11 lib/rails_app_generator/addons/rubocop.rb
rails_app_generator-0.2.10 lib/rails_app_generator/addons/rubocop.rb
rails_app_generator-0.2.9 lib/rails_app_generator/addons/rubocop.rb
rails_app_generator-0.2.8 lib/rails_app_generator/addons/rubocop.rb
rails_app_generator-0.2.7 lib/rails_app_generator/addons/rubocop.rb
rails_app_generator-0.2.6 lib/rails_app_generator/addons/rubocop.rb
rails_app_generator-0.2.5 lib/rails_app_generator/addons/rubocop.rb
rails_app_generator-0.2.4 lib/rails_app_generator/addons/rubocop.rb
rails_app_generator-0.2.3 lib/rails_app_generator/addons/rubocop.rb