Class: Bankai::Generators::LintGenerator
- Defined in:
- lib/bankai/generators/lint_generator.rb
Overview
:nodoc:
Instance Method Summary collapse
- #configure_overcommit ⇒ Object
- #configure_rubocop ⇒ Object
- #install_overcommit ⇒ Object
- #rubocop_autocorrect ⇒ Object
- #rubocop_todo ⇒ Object
Methods inherited from Base
Instance Method Details
#configure_overcommit ⇒ Object
9 10 11 |
# File 'lib/bankai/generators/lint_generator.rb', line 9 def configure_overcommit template 'overcommit.yml.erb', '.overcommit.yml' end |
#configure_rubocop ⇒ Object
13 14 15 |
# File 'lib/bankai/generators/lint_generator.rb', line 13 def configure_rubocop template 'rubocop.yml.erb', '.rubocop.yml' end |
#install_overcommit ⇒ Object
17 18 19 |
# File 'lib/bankai/generators/lint_generator.rb', line 17 def install_overcommit execute_command :bundle, 'exec overcommit --install' end |
#rubocop_autocorrect ⇒ Object
21 22 23 |
# File 'lib/bankai/generators/lint_generator.rb', line 21 def rubocop_autocorrect execute_command :bundle, 'exec rubocop --auto-correct-all' end |
#rubocop_todo ⇒ Object
25 26 27 |
# File 'lib/bankai/generators/lint_generator.rb', line 25 def rubocop_todo execute_command :bundle, 'exec rubocop --auto-gen-config' end |