Add Puppet 4.x lint checks
- 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. Change-Id: I5f5859ab24c4d5f2f0b3737303ece9ddcb70927f Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
parent
127ce4d5df
commit
f7ba060eea
13
Gemfile
13
Gemfile
@ -2,8 +2,19 @@ source 'https://rubygems.org'
|
||||
|
||||
group :development, :test do
|
||||
gem 'puppetlabs_spec_helper', :require => false
|
||||
gem 'puppet-lint', '~> 0.3.2'
|
||||
|
||||
gem 'puppet-lint', '~> 1.1.0'
|
||||
gem 'metadata-json-lint'
|
||||
gem 'puppet-lint-absolute_classname-check'
|
||||
gem 'puppet-lint-absolute_template_path'
|
||||
gem 'puppet-lint-trailing_newline-check'
|
||||
|
||||
# Puppet 4.x related lint checks
|
||||
gem 'puppet-lint-unquoted_string-check'
|
||||
gem 'puppet-lint-leading_zero-check'
|
||||
gem 'puppet-lint-variable_contains_upcase'
|
||||
gem 'puppet-lint-numericvariable'
|
||||
|
||||
gem 'rspec-puppet', '~> 1.0.1'
|
||||
gem 'rake', '10.1.1'
|
||||
gem 'rspec', '< 2.99'
|
||||
|
@ -74,7 +74,7 @@ class tempest(
|
||||
$swift_available = false
|
||||
) {
|
||||
|
||||
include 'tempest::params'
|
||||
include '::tempest::params'
|
||||
|
||||
if $install_from_source {
|
||||
ensure_packages([
|
||||
|
@ -9,4 +9,4 @@
|
||||
# Learn more about module testing here:
|
||||
# http://docs.puppetlabs.com/guides/tests_smoke.html
|
||||
#
|
||||
include tempest
|
||||
include ::tempest
|
||||
|
Loading…
Reference in New Issue
Block a user