From 653d7dcb13efd8c18e65051114700b81f160d812 Mon Sep 17 00:00:00 2001 From: Gael Chamoulaud Date: Tue, 17 Mar 2015 10:21:58 +0100 Subject: 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: I2660b960b6ef696bd5dc8a6965b4a9aa25409b66 Signed-off-by: Gael Chamoulaud --- Gemfile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'Gemfile') diff --git a/Gemfile b/Gemfile index 790afc5..d3d3a07 100644 --- a/Gemfile +++ b/Gemfile @@ -2,9 +2,20 @@ source 'https://rubygems.org' group :development, :test do gem 'puppetlabs_spec_helper', :require => false - gem 'puppet-lint' - gem 'puppet-lint-param-docs', '1.1.0' + + gem 'puppet-lint', '~> 1.1' gem 'metadata-json-lint' + gem 'puppet-lint-param-docs' + 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 'rake', '10.1.1' gem 'puppet-syntax' gem 'rspec-puppet', :git => 'https://github.com/rodjek/rspec-puppet.git' @@ -13,6 +24,7 @@ group :development, :test do gem 'webmock' gem 'r10k' gem 'librarian-puppet-simple', '~> 0.0.3' + end if puppetversion = ENV['PUPPET_GEM_VERSION'] -- cgit 1.2.3-korg