Skip to content

Commit

Permalink
only include rubocop when we need it
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jul 29, 2016
1 parent 4ef10f7 commit cc87a06
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions moduleroot/Rakefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet_blacksmith/rake_tasks'
require 'voxpupuli/release/rake_tasks'
require 'rubocop/rake_task'
require 'puppet-strings/rake_tasks'

RuboCop::RakeTask.new(:rubocop) do |task|
# These make the rubocop experience maybe slightly less terrible
task.options = ['-D', '-S', '-E']
if RUBY_VERSION >= '2.0.0'
require 'rubocop/rake_task'

RuboCop::RakeTask.new(:rubocop) do |task|
# These make the rubocop experience maybe slightly less terrible
task.options = ['-D', '-S', '-E']
end
end

PuppetLint.configuration.log_format = '%{path}:%{linenumber}:%{check}:%{KIND}:%{message}'
Expand Down

0 comments on commit cc87a06

Please sign in to comment.