puppet-lint 2.4.0 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -1014
- data/HISTORY.md +1130 -0
- data/lib/puppet-lint/data.rb +9 -9
- data/lib/puppet-lint/lexer/string_slurper.rb +21 -5
- data/lib/puppet-lint/lexer/token.rb +6 -0
- data/lib/puppet-lint/lexer.rb +16 -5
- data/lib/puppet-lint/plugins/check_classes/parameter_order.rb +12 -1
- data/lib/puppet-lint/plugins/check_documentation/documentation.rb +4 -0
- data/lib/puppet-lint/plugins/check_resources/ensure_first_param.rb +1 -1
- data/lib/puppet-lint/plugins/check_strings/double_quoted_strings.rb +1 -1
- data/lib/puppet-lint/tasks/puppet-lint.rb +14 -0
- data/lib/puppet-lint/tasks/release_test.rb +3 -1
- data/lib/puppet-lint/version.rb +1 -1
- data/lib/puppet-lint.rb +1 -1
- data/spec/puppet-lint/bin_spec.rb +8 -8
- data/spec/puppet-lint/lexer/string_slurper_spec.rb +68 -2
- data/spec/puppet-lint/lexer_spec.rb +56 -0
- data/spec/puppet-lint/plugins/check_classes/parameter_order_spec.rb +18 -0
- data/spec/puppet-lint/plugins/check_classes/variable_scope_spec.rb +14 -0
- data/spec/puppet-lint/plugins/check_documentation/documentation_spec.rb +18 -0
- data/spec/puppet-lint/plugins/check_strings/double_quoted_strings_spec.rb +6 -5
- data/spec/puppet-lint/plugins/check_variables/variable_is_lowercase_spec.rb +28 -0
- data/spec/spec_helper.rb +7 -5
- metadata +16 -18
- data/.gitignore +0 -12
- data/.rspec +0 -2
- data/.rubocop.yml +0 -74
- data/.rubocop_todo.yml +0 -89
- data/.travis.yml +0 -26
- data/Gemfile +0 -40
- data/Rakefile +0 -42
- data/appveyor.yml +0 -35
- data/puppet-lint.gemspec +0 -19
data/.travis.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
---
|
2
|
-
language: ruby
|
3
|
-
dist: trusty
|
4
|
-
sudo: false
|
5
|
-
branches:
|
6
|
-
only:
|
7
|
-
- master
|
8
|
-
bundler_args: --without development system_tests
|
9
|
-
script:
|
10
|
-
- bundle exec rake $CHECK
|
11
|
-
env:
|
12
|
-
- CHECK=ci
|
13
|
-
rvm:
|
14
|
-
- 1.8.7
|
15
|
-
- 1.9.3
|
16
|
-
- 2.0.0
|
17
|
-
- 2.1.10
|
18
|
-
- 2.2.10
|
19
|
-
- 2.3.8
|
20
|
-
- 2.4.7
|
21
|
-
- 2.5.6
|
22
|
-
- 2.6.4
|
23
|
-
matrix:
|
24
|
-
include:
|
25
|
-
- rvm: 2.6.4
|
26
|
-
env: CHECK=rubocop
|
data/Gemfile
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gemspec
|
4
|
-
|
5
|
-
group :test do
|
6
|
-
gem 'rake', '~> 10.0'
|
7
|
-
gem 'rspec-its', '~> 1.0'
|
8
|
-
gem 'rspec-collection_matchers', '~> 1.0'
|
9
|
-
|
10
|
-
if RUBY_VERSION < '2.0'
|
11
|
-
# json 2.x requires ruby 2.0. Lock to 1.8
|
12
|
-
gem 'json', '= 1.8'
|
13
|
-
# json_pure 2.0.2 requires ruby 2.0, and 2.0.1 requires ruby 1.9. Lock to 1.8.3.
|
14
|
-
gem 'json_pure', '= 1.8.3'
|
15
|
-
# addressable 2.4.0 requires ruby 1.9.0. Lock to 2.3.8.
|
16
|
-
gem 'addressable', '= 2.3.8'
|
17
|
-
gem 'diff-lcs', '< 1.3'
|
18
|
-
gem 'rspec', '<= 3.4'
|
19
|
-
else
|
20
|
-
gem 'rspec', '~> 3.0'
|
21
|
-
gem 'json'
|
22
|
-
end
|
23
|
-
|
24
|
-
if RUBY_VERSION > '1.8'
|
25
|
-
# requires ruby 1.9+, on 1.8 we'll fall back to the old regex parsing
|
26
|
-
gem 'rspec-json_expectations', '~> 1.4'
|
27
|
-
end
|
28
|
-
|
29
|
-
gem 'rubocop', '0.49.1' if RUBY_VERSION > '2.0'
|
30
|
-
gem 'simplecov', :require => false
|
31
|
-
end
|
32
|
-
|
33
|
-
group :development do
|
34
|
-
# For Changelog generation
|
35
|
-
if RUBY_VERSION > '1.9'
|
36
|
-
gem 'github_changelog_generator', :require => false if RUBY_VERSION >= '2.2.2'
|
37
|
-
gem 'github_changelog_generator', '~> 1.13.0', :require => false if RUBY_VERSION < '2.2.2'
|
38
|
-
gem 'rack', '~> 1.0', :require => false if RUBY_VERSION < '2.2.2'
|
39
|
-
end
|
40
|
-
end
|
data/Rakefile
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'rspec/core/rake_task'
|
3
|
-
require 'puppet-lint'
|
4
|
-
require 'puppet-lint/tasks/release_test'
|
5
|
-
|
6
|
-
task :default => :test
|
7
|
-
|
8
|
-
RSpec::Core::RakeTask.new(:test)
|
9
|
-
|
10
|
-
begin
|
11
|
-
require 'github_changelog_generator/task'
|
12
|
-
GitHubChangelogGenerator::RakeTask.new(:changelog) do |config|
|
13
|
-
version = PuppetLint::VERSION
|
14
|
-
config.future_release = version.to_s
|
15
|
-
config.exclude_labels = %w[duplicate question invalid wontfix release-pr documentation]
|
16
|
-
config.enhancement_labels = %w[feature]
|
17
|
-
end
|
18
|
-
rescue LoadError
|
19
|
-
$stderr.puts 'Changelog generation requires Ruby 2.0 or higher'
|
20
|
-
end
|
21
|
-
|
22
|
-
begin
|
23
|
-
require 'rubocop/rake_task'
|
24
|
-
|
25
|
-
RuboCop::RakeTask.new(:rubocop) do |task|
|
26
|
-
task.options = %w[-D -E]
|
27
|
-
task.patterns = [
|
28
|
-
'lib/**/*.rb',
|
29
|
-
'spec/**/*.rb',
|
30
|
-
'bin/*',
|
31
|
-
'*.gemspec',
|
32
|
-
'Gemfile',
|
33
|
-
'Rakefile',
|
34
|
-
]
|
35
|
-
end
|
36
|
-
rescue LoadError
|
37
|
-
$stderr.puts 'Rubocop is not available for this version of Ruby.'
|
38
|
-
end
|
39
|
-
|
40
|
-
task :ci => [:test, :release_test]
|
41
|
-
|
42
|
-
# vim: syntax=ruby
|
data/appveyor.yml
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
build: off
|
2
|
-
|
3
|
-
branches:
|
4
|
-
only:
|
5
|
-
- master
|
6
|
-
|
7
|
-
# ruby versions under test
|
8
|
-
environment:
|
9
|
-
matrix:
|
10
|
-
- RUBY_VERSION: 193
|
11
|
-
- RUBY_VERSION: 200
|
12
|
-
- RUBY_VERSION: 21
|
13
|
-
- RUBY_VERSION: 22
|
14
|
-
- RUBY_VERSION: 23-x64
|
15
|
-
- RUBY_VERSION: 24-x64
|
16
|
-
- RUBY_VERSION: 25-x64
|
17
|
-
- RUBY_VERSION: 26-x64
|
18
|
-
|
19
|
-
matrix:
|
20
|
-
allow_failures:
|
21
|
-
- RUBY_VERSION: 193
|
22
|
-
|
23
|
-
install:
|
24
|
-
- SET PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
|
25
|
-
- SET LOG_SPEC_ORDER=true
|
26
|
-
- bundle install --jobs 4 --retry 2 --without development
|
27
|
-
|
28
|
-
before_test:
|
29
|
-
- type Gemfile.lock
|
30
|
-
- ruby -v
|
31
|
-
- gem -v
|
32
|
-
- bundle -v
|
33
|
-
|
34
|
-
test_script:
|
35
|
-
- bundle exec rake ci
|
data/puppet-lint.gemspec
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
$LOAD_PATH.push(File.expand_path('../lib', __FILE__))
|
2
|
-
require 'puppet-lint/version'
|
3
|
-
|
4
|
-
Gem::Specification.new do |s|
|
5
|
-
s.name = 'puppet-lint'
|
6
|
-
s.version = PuppetLint::VERSION.dup
|
7
|
-
s.homepage = 'https://github.com/rodjek/puppet-lint/'
|
8
|
-
s.summary = 'Ensure your Puppet manifests conform with the Puppetlabs style guide'
|
9
|
-
s.description = 'Checks your Puppet manifests against the Puppetlabs
|
10
|
-
style guide and alerts you to any discrepancies.'
|
11
|
-
|
12
|
-
s.files = `git ls-files`.split("\n")
|
13
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
15
|
-
s.require_paths = ['lib']
|
16
|
-
|
17
|
-
s.authors = ['Tim Sharpe']
|
18
|
-
s.email = 'tim@sharpe.id.au'
|
19
|
-
end
|