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

Instance Method Summary collapse

Instance Attribute Details

#rubocopObject

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_tasksObject

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_rubocopObject

Initialize plugin



27
28
29
# File 'lib/hoe/rubocop.rb', line 27

def initialize_rubocop
  require 'rubocop/rake_task'
end