565c78cc7f
This changes the puppet-lint requirement to 1.1.x, so that we can use puppet-lint plugins. Most of these plugins are for 4.x compat, but some just catch common errors. This commit also remove custom metadata rake task (this task is now provided by puppetlabs_spec_helper). Conflicts: Gemfile Change-Id: I22369948db6a2f8ddab9b8c93c3a047ff2e229ca
13 lines
514 B
Ruby
13 lines
514 B
Ruby
require 'puppetlabs_spec_helper/rake_tasks'
|
|
require 'puppet-lint/tasks/puppet-lint'
|
|
require 'puppet-syntax/tasks/puppet-syntax'
|
|
|
|
PuppetLint.configuration.fail_on_warnings = true
|
|
PuppetLint.configuration.send('disable_80chars')
|
|
PuppetLint.configuration.send('disable_class_parameter_defaults')
|
|
PuppetLint.configuration.send('disable_only_variable_string')
|
|
|
|
exclude_tests_paths = ['pkg/**/*','vendor/**/*']
|
|
PuppetLint.configuration.ignore_paths = exclude_tests_paths
|
|
PuppetSyntax.exclude_paths = exclude_tests_paths
|