
In anticipation of puppet 4, start trying to deal with puppet 4 things that can be helpfully predicted by puppet lint plugins. This patch also corrects lint errors caught by the puppet-lint-absolute_classname-check gem. We disable the puppet-lint-empty_string-check gem to be corrected by a follow-up patch. We disable the disable_arrow_alignment check in the Rakefile. Previously, the system version of puppet-lint that was being run by 'rake lint' was too old to catch this. When using 'bundle exec rake lint' the gem is new enough to catch this. Whether we want to actually fix these lint errors is a different discussion, so this patch disables it for now. Change-Id: I2b2c8511367b2e97c30b7681125d9063b3e78a86
10 lines
457 B
Ruby
10 lines
457 B
Ruby
require 'rubygems'
|
|
require 'puppetlabs_spec_helper/rake_tasks'
|
|
require 'puppet-lint/tasks/puppet-lint'
|
|
PuppetLint.configuration.fail_on_warnings = true
|
|
PuppetLint.configuration.send('disable_80chars')
|
|
PuppetLint.configuration.send('disable_autoloader_layout')
|
|
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
|
|
PuppetLint.configuration.send('disable_class_parameter_defaults')
|
|
PuppetLint.configuration.send('disable_arrow_alignment')
|