aboutsummaryrefslogtreecommitdiffstats
path: root/Gemfile
diff options
context:
space:
mode:
authorGael Chamoulaud <gchamoul@redhat.com>2015-03-17 10:21:58 +0100
committerGael Chamoulaud <gchamoul@redhat.com>2015-03-17 10:23:32 +0100
commit653d7dcb13efd8c18e65051114700b81f160d812 (patch)
tree96a59e44260de4185479cc594f491a8dea17dbef /Gemfile
parent68e85e520d73527bc04bd70807b749091391d8e4 (diff)
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 <gchamoul@redhat.com>
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile16
1 files changed, 14 insertions, 2 deletions
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']