Add Puppet 4.x lint checks
- This change adds Puppet-lint bits for checking Puppet manifests. Change-Id: I82869d8f9f6c64ac2a95429f453c3cb76c046974 Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
parent
d94dc61792
commit
0d6b04c21a
2
.gitignore
vendored
2
.gitignore
vendored
@ -45,6 +45,8 @@ nosetests.xml
|
||||
|
||||
*~
|
||||
*.swp
|
||||
*.bundle
|
||||
Gemfile.lock
|
||||
|
||||
doc/_build
|
||||
|
||||
|
24
Gemfile
Normal file
24
Gemfile
Normal file
@ -0,0 +1,24 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
group :development, :test do
|
||||
gem 'puppetlabs_spec_helper', :require => false
|
||||
|
||||
gem 'puppet-lint', '~> 1.1'
|
||||
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'
|
||||
end
|
||||
|
||||
if puppetversion = ENV['PUPPET_GEM_VERSION']
|
||||
gem 'puppet', puppetversion, :require => false
|
||||
else
|
||||
gem 'puppet', :require => false
|
||||
end
|
||||
|
||||
# vim:ft=ruby
|
Loading…
x
Reference in New Issue
Block a user