28
|
1 |
require 'rubygems' |
|
2 |
require 'puppetlabs_spec_helper/rake_tasks' |
|
3 |
|
|
4 |
exclude_paths = [ |
|
5 |
"pkg/**/*", |
|
6 |
"vendor/**/*", |
|
7 |
"spec/**/*", |
|
8 |
] |
|
9 |
|
|
10 |
require 'puppet-doc-lint/rake_task' |
|
11 |
PuppetDocLint.configuration.ignore_paths = exclude_paths |
|
12 |
|
|
13 |
require 'puppet-lint/tasks/puppet-lint' |
|
14 |
require 'puppet-syntax/tasks/puppet-syntax' |
|
15 |
|
|
16 |
PuppetSyntax.exclude_paths = exclude_paths |
|
17 |
PuppetSyntax.future_parser = true if ENV['FUTURE_PARSER'] == 'true' |
|
18 |
|
|
19 |
disable_checks = [ |
|
20 |
'80chars', |
|
21 |
'class_inherits_from_params_class', |
|
22 |
'class_parameter_defaults', |
|
23 |
'documentation', |
|
24 |
'single_quote_string_with_variables' |
|
25 |
].each { |check| PuppetLint.configuration.send("disable_#{check}") } |
|
26 |
|
|
27 |
PuppetLint.configuration.ignore_paths = exclude_paths |
|
28 |
PuppetLint.configuration.log_format = "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}" |