| author | ymh <ymh.work@gmail.com> |
| Fri, 14 Oct 2016 01:02:10 +0200 | |
| changeset 329 | 0a2c2ad49d75 |
| parent 28 | b0b56e0f8c7f |
| child 406 | cf0f23803a53 |
| permissions | -rw-r--r-- |
require 'rubygems' require 'puppetlabs_spec_helper/rake_tasks' exclude_paths = [ "pkg/**/*", "vendor/**/*", "spec/**/*", ] require 'puppet-doc-lint/rake_task' PuppetDocLint.configuration.ignore_paths = exclude_paths require 'puppet-lint/tasks/puppet-lint' require 'puppet-syntax/tasks/puppet-syntax' PuppetSyntax.exclude_paths = exclude_paths PuppetSyntax.future_parser = true if ENV['FUTURE_PARSER'] == 'true' disable_checks = [ '80chars', 'class_inherits_from_params_class', 'class_parameter_defaults', 'documentation', 'single_quote_string_with_variables' ].each { |check| PuppetLint.configuration.send("disable_#{check}") } PuppetLint.configuration.ignore_paths = exclude_paths PuppetLint.configuration.log_format = "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}"