Browse Source

Add Gemfile and puppet 4 checks

In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins.

Change-Id: Id2eac03d246a9dbee6ef678c2d581f0837a9e133
changes/83/207283/1
Colleen Murphy 3 years ago
parent
commit
4411c10176
2 changed files with 32 additions and 0 deletions
  1. 2
    0
      .gitignore
  2. 30
    0
      Gemfile

+ 2
- 0
.gitignore View File

@@ -0,0 +1,2 @@
1
+Gemfile.lock
2
+.bundled_gems/

+ 30
- 0
Gemfile View File

@@ -0,0 +1,30 @@
1
+source 'https://rubygems.org'
2
+
3
+group :development, :test do
4
+  gem 'puppetlabs_spec_helper', :require => false
5
+
6
+  gem 'metadata-json-lint'
7
+  # This is nice and all, but let's not worry about it until we've actually
8
+  # got puppet 4.x sorted
9
+  # gem 'puppet-lint-param-docs'
10
+  gem 'puppet-lint-absolute_classname-check'
11
+  gem 'puppet-lint-absolute_template_path'
12
+  gem 'puppet-lint-trailing_newline-check'
13
+
14
+  # Puppet 4.x related lint checks
15
+  gem 'puppet-lint-unquoted_string-check'
16
+  gem 'puppet-lint-empty_string-check'
17
+  gem 'puppet-lint-leading_zero-check'
18
+  gem 'puppet-lint-variable_contains_upcase'
19
+  gem 'puppet-lint-spaceship_operator_without_tag-check'
20
+  gem 'puppet-lint-undef_in_function-check'
21
+
22
+  if puppetversion = ENV['PUPPET_GEM_VERSION']
23
+    gem 'puppet', puppetversion, :require => false
24
+  else
25
+    gem 'puppet', '~> 3.0', :require => false
26
+  end
27
+
28
+end
29
+
30
+# vim:ft=ruby

Loading…
Cancel
Save