Class: Hephaestus::RubocopGenerator
- Inherits:
-
Generators::Base
- Object
- Rails::Generators::Base
- Generators::Base
- Hephaestus::RubocopGenerator
- Defined in:
- lib/hephaestus/generators/rubocop_generator.rb
Instance Method Summary collapse
Methods inherited from Generators::Base
default_source_root, inherited
Methods included from ExitOnFailure
Methods included from Actions
#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #gem, #replace_in_file, #replace_in_files
Instance Method Details
#lint ⇒ Object
12 13 14 15 16 |
# File 'lib/hephaestus/generators/rubocop_generator.rb', line 12 def lint Bundler.with_unbundled_env do run("bundle exec rubocop -A", abort_on_failure: false) end end |
#rubocop ⇒ Object
8 9 10 |
# File 'lib/hephaestus/generators/rubocop_generator.rb', line 8 def rubocop copy_file(".rubocop.yml", ".rubocop.yml") end |