-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
32 lines (26 loc) · 1.02 KB
/
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
32
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-syntax/tasks/puppet-syntax'
require 'puppet-lint/tasks/puppet-lint'
require 'puppet_blacksmith/rake_tasks'
if ENV['PUPPET_GEM_VERSION'] =~ /3.4/ && ENV['RUBY_VERSION'] !~ /1.8/
require 'puppet-doc-lint/rake_task'
end
PuppetLint.configuration.fail_on_warnings
PuppetLint.configuration.relative = true
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
PuppetLint.configuration.send('disable_class_parameter_defaults')
PuppetLint.configuration.send('disable_documentation')
PuppetLint.configuration.send('disable_single_quote_string_with_variables')
Rake::Task[:lint].clear
PuppetLint::RakeTask.new :lint do |config|
config.ignore_paths = ["**/spec/**/*.pp", "**/vendor/**/*.pp"]
config.log_format = '%{path}:%{linenumber}:%{KIND}: %{message}'
end
PuppetSyntax.exclude_paths = ["**/spec/**/*", "**/vendor/**/*"]
desc "Run syntax, lint, and spec tests."
task :test => [
:syntax,
:lint,
:spec
]