dev/provisioning/modules/elasticsearch/Rakefile
author Chloe Laisne <chloe.laisne@gmail.com>
Sun, 25 Sep 2016 22:43:38 +0200
changeset 293 eba7dac7f27b
parent 28 b0b56e0f8c7f
child 406 cf0f23803a53
permissions -rw-r--r--
Add selected state to theme

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}"