summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2016-05-26 10:20:54 +0200
committerTim Meusel <tim@bastelfreak.de>2016-05-26 10:20:54 +0200
commit4c4abb1ba78af40e897e70dcf6c3693fab8e93b2 (patch)
tree4bfcca31b7db62ce385492b4692e0f4b43666045 /Rakefile
parent9c9c140ce32395afcf8d9b5d8e4f92e4e3bb3007 (diff)
modulesync 0.6.3
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Rakefile b/Rakefile
index 0ffcb86..56ffc74 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,12 +1,13 @@
require 'puppetlabs_spec_helper/rake_tasks'
-require 'puppet-lint/tasks/puppet-lint'
-require 'puppet-syntax/tasks/puppet-syntax'
-require 'metadata-json-lint/rake_task'
require 'puppet_blacksmith/rake_tasks'
require 'voxpupuli/release/rake_tasks'
require 'rubocop/rake_task'
+require 'puppet-strings/rake_tasks'
-RuboCop::RakeTask.new
+RuboCop::RakeTask.new(:rubocop) do |task|
+ # These make the rubocop experience maybe slightly less terrible
+ task.options = ['-D', '-S', '-E']
+end
PuppetLint.configuration.log_format = '%{path}:%{linenumber}:%{check}:%{KIND}:%{message}'
PuppetLint.configuration.fail_on_warnings = true
@@ -19,6 +20,7 @@ PuppetLint.configuration.send('disable_single_quote_string_with_variables')
exclude_paths = %w(
pkg/**/*
vendor/**/*
+ .vendor/**/*
spec/**/*
)
PuppetLint.configuration.ignore_paths = exclude_paths
@@ -29,10 +31,11 @@ RSpec::Core::RakeTask.new(:acceptance) do |t|
t.pattern = 'spec/acceptance'
end
-desc 'Run metadata_lint, lint, syntax, and spec tests.'
+desc 'Run tests metadata_lint, lint, syntax, spec'
task test: [
:metadata_lint,
:lint,
:syntax,
:spec,
]
+# vim: syntax=ruby