Module: Hoe::Rubocop
- Defined in:
- lib/hoe/rubocop.rb
Overview
Main module for hoe-rubocop
Constant Summary collapse
- VERSION =
'1.0.13!'
Instance Attribute Summary collapse
-
#rubocop ⇒ Object
Returns the value of attribute rubocop.
Instance Method Summary collapse
-
#define_rubocop_tasks ⇒ Object
Define the Rubocop Rake task.
-
#initialize_rubocop ⇒ Object
Initialize plugin.
Instance Attribute Details
#rubocop ⇒ Object
Returns the value of attribute rubocop.
24 25 26 |
# File 'lib/hoe/rubocop.rb', line 24 def rubocop @rubocop end |
Instance Method Details
#define_rubocop_tasks ⇒ Object
Define the Rubocop Rake task
32 33 34 35 |
# File 'lib/hoe/rubocop.rb', line 32 def define_rubocop_tasks FileUtils.rm_rf('pkg') if File.exist?('pkg') RuboCop::RakeTask.new(:rubocop) end |
#initialize_rubocop ⇒ Object
Initialize plugin
27 28 29 |
# File 'lib/hoe/rubocop.rb', line 27 def initialize_rubocop require 'rubocop/rake_task' end |