-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRakefile
31 lines (27 loc) · 922 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require 'voxpupuli/test/rake'
require 'voxpupuli/acceptance/rake'
require 'voxpupuli/release/rake_tasks'
require 'ra10ke'
require 'onceover/rake_tasks'
Ra10ke::RakeTask.new
namespace :voxpupuli do
namespace :custom do
desc 'Lint with all puppet-lint checks'
task :lint_all do
# re-enable by puppetlabs disabled checks from puppetlabs/spec_helper
# see: https://github.com/puppetlabs/puppetlabs_spec_helper/blob/70de49db0a242f83e9ff39ea8a03c830339f8368/lib/puppetlabs_spec_helper/rake_tasks.rb#L169-L177
puppet_lint_enable_checks = %w[
140chars
class_inherits_from_params_class
class_parameter_defaults
autoloader_layout
documentation
single_quote_string_with_variables
]
puppet_lint_enable_checks.each do |check|
PuppetLint.configuration.send(:"enable_#{check}")
end
Rake::Task[:lint].invoke
end
end
end