puppet-lint 2.4.2 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,10 @@
1
- require 'simplecov'
2
- SimpleCov.start do
3
- add_filter('/spec/')
4
- add_filter('/vendor/')
5
- add_group('Checks', 'lib/puppet-lint/plugins')
1
+ if ENV['COVERAGE'] == 'yes' && RUBY_VERSION.start_with?('2.6.')
2
+ require 'simplecov'
3
+ SimpleCov.start do
4
+ add_filter('/spec/')
5
+ add_filter('/vendor/')
6
+ add_group('Checks', 'lib/puppet-lint/plugins')
7
+ end
6
8
  end
7
9
 
8
10
  require 'puppet-lint'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.2
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Sharpe
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-31 00:00:00.000000000 Z
11
+ date: 2021-07-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  Checks your Puppet manifests against the Puppetlabs
@@ -19,17 +19,9 @@ executables:
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
- - ".gitignore"
23
- - ".rspec"
24
- - ".rubocop.yml"
25
- - ".rubocop_todo.yml"
26
- - ".travis.yml"
27
22
  - CHANGELOG.md
28
- - Gemfile
29
23
  - LICENSE
30
24
  - README.md
31
- - Rakefile
32
- - appveyor.yml
33
25
  - bin/puppet-lint
34
26
  - lib/puppet-lint.rb
35
27
  - lib/puppet-lint/bin.rb
@@ -84,7 +76,6 @@ files:
84
76
  - lib/puppet-lint/tasks/puppet-lint.rb
85
77
  - lib/puppet-lint/tasks/release_test.rb
86
78
  - lib/puppet-lint/version.rb
87
- - puppet-lint.gemspec
88
79
  - spec/fixtures/test/manifests/fail.pp
89
80
  - spec/fixtures/test/manifests/ignore.pp
90
81
  - spec/fixtures/test/manifests/ignore_multiple_block.pp
@@ -145,9 +136,10 @@ files:
145
136
  - spec/puppet-lint_spec.rb
146
137
  - spec/spec_helper.rb
147
138
  homepage: https://github.com/rodjek/puppet-lint/
148
- licenses: []
139
+ licenses:
140
+ - MIT
149
141
  metadata: {}
150
- post_install_message:
142
+ post_install_message:
151
143
  rdoc_options: []
152
144
  require_paths:
153
145
  - lib
@@ -162,8 +154,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
154
  - !ruby/object:Gem::Version
163
155
  version: '0'
164
156
  requirements: []
165
- rubygems_version: 3.0.6
166
- signing_key:
157
+ rubyforge_project:
158
+ rubygems_version: 2.7.6.2
159
+ signing_key:
167
160
  specification_version: 4
168
161
  summary: Ensure your Puppet manifests conform with the Puppetlabs style guide
169
162
  test_files:
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
- *.gem
2
- .bundle/
3
- .rbenv-version
4
- .ruby-version
5
- Gemfile.lock
6
- vendor/
7
- coverage/
8
- *.swp
9
- /_site/
10
- .idea
11
- /*.pp
12
- /tmp/
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.rubocop.yml DELETED
@@ -1,74 +0,0 @@
1
- ---
2
- inherit_from: './.rubocop_todo.yml'
3
- AllCops:
4
- TargetRubyVersion: 1.9
5
-
6
- Style/HashSyntax:
7
- EnforcedStyle: hash_rockets
8
-
9
- Layout/FirstArrayElementLineBreak:
10
- Enabled: true
11
- Layout/FirstHashElementLineBreak:
12
- Enabled: true
13
- Layout/FirstMethodArgumentLineBreak:
14
- Enabled: true
15
- Layout/FirstMethodParameterLineBreak:
16
- Enabled: true
17
- Layout/IndentArray:
18
- EnforcedStyle: consistent
19
- Layout/MultilineArrayBraceLayout:
20
- EnforcedStyle: new_line
21
- Layout/MultilineAssignmentLayout:
22
- Enabled: true
23
- EnforcedStyle: same_line
24
- Layout/MultilineHashBraceLayout:
25
- EnforcedStyle: new_line
26
- Layout/MultilineMethodDefinitionBraceLayout:
27
- EnforcedStyle: new_line
28
-
29
- Style/AutoResourceCleanup:
30
- Enabled: true
31
- Style/BlockDelimiters:
32
- EnforcedStyle: braces_for_chaining
33
- Style/BracesAroundHashParameters:
34
- EnforcedStyle: context_dependent
35
- Style/Encoding:
36
- Enabled: false
37
- Style/MethodCallWithArgsParentheses:
38
- Enabled: true
39
- IgnoreMacros: true
40
- IgnoredMethods:
41
- - puts
42
- - require
43
- - include
44
- - it
45
- - context
46
- - describe
47
- - to
48
- - to_not
49
- - raise
50
- - desc
51
- - task
52
- - exit
53
- - should
54
- - gem
55
- - group
56
- - attr_reader
57
- - attr_accessor
58
- - attr_writer
59
- - source
60
- Style/MethodCalledOnDoEndBlock:
61
- Enabled: true
62
- Style/RegexpLiteral:
63
- EnforcedStyle: percent_r
64
- Style/TrailingCommaInArguments:
65
- EnforcedStyleForMultiline: no_comma
66
- Style/TrailingCommaInLiteral:
67
- EnforcedStyleForMultiline: comma
68
- Style/FormatStringToken:
69
- Enabled: false
70
- Style/FileName:
71
- Exclude:
72
- - 'lib/puppet-lint.rb'
73
- - 'lib/puppet-lint/tasks/puppet-lint.rb'
74
- - 'spec/puppet-lint_spec.rb'
data/.rubocop_todo.yml DELETED
@@ -1,89 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2017-08-28 12:57:58 +1000 using RuboCop version 0.49.1.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 3
10
- # Configuration parameters: Include.
11
- # Include: **/Gemfile, **/gems.rb
12
- Bundler/DuplicatedGem:
13
- Exclude:
14
- - 'Gemfile'
15
-
16
- # Offense count: 2
17
- # Cop supports --auto-correct.
18
- # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
19
- # Include: **/Gemfile, **/gems.rb
20
- Bundler/OrderedGems:
21
- Exclude:
22
- - 'Gemfile'
23
-
24
- # Offense count: 9
25
- # Configuration parameters: AllowSafeAssignment.
26
- Lint/AssignmentInCondition:
27
- Exclude:
28
- - 'lib/puppet-lint/lexer.rb'
29
- - 'lib/puppet-lint/plugins/check_classes/variable_scope.rb'
30
-
31
- # Offense count: 52
32
- Metrics/AbcSize:
33
- Max: 153
34
-
35
- # Offense count: 121
36
- # Configuration parameters: CountComments, ExcludedMethods.
37
- Metrics/BlockLength:
38
- Max: 1136
39
-
40
- # Offense count: 8
41
- # Configuration parameters: CountBlocks.
42
- Metrics/BlockNesting:
43
- Max: 5
44
-
45
- # Offense count: 2
46
- # Configuration parameters: CountComments.
47
- Metrics/ClassLength:
48
- Max: 385
49
-
50
- # Offense count: 20
51
- Metrics/CyclomaticComplexity:
52
- Max: 26
53
-
54
- # Offense count: 238
55
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
56
- # URISchemes: http, https
57
- Metrics/LineLength:
58
- Max: 223
59
-
60
- # Offense count: 65
61
- # Configuration parameters: CountComments.
62
- Metrics/MethodLength:
63
- Max: 105
64
-
65
- # Offense count: 18
66
- Metrics/PerceivedComplexity:
67
- Max: 28
68
-
69
- # Offense count: 1
70
- # Cop supports --auto-correct.
71
- Performance/RedundantBlockCall:
72
- Exclude:
73
- - 'lib/puppet-lint/tasks/puppet-lint.rb'
74
-
75
- # Offense count: 7
76
- # Configuration parameters: EnforcedStyle, SupportedStyles.
77
- # SupportedStyles: nested, compact
78
- Style/ClassAndModuleChildren:
79
- Exclude:
80
- - 'lib/puppet-lint.rb'
81
- - 'lib/puppet-lint/bin.rb'
82
- - 'lib/puppet-lint/checkplugin.rb'
83
- - 'lib/puppet-lint/checks.rb'
84
- - 'lib/puppet-lint/data.rb'
85
- - 'lib/puppet-lint/optparser.rb'
86
-
87
- # Offense count: 20
88
- Style/MultilineBlockChain:
89
- Enabled: false
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,44 +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.user = 'rodjek'
15
- config.project = 'puppet-lint'
16
- config.future_release = version.to_s
17
- config.exclude_labels = %w[duplicate question invalid wontfix release-pr documentation]
18
- config.enhancement_labels = %w[feature]
19
- end
20
- rescue LoadError
21
- $stderr.puts 'Changelog generation requires Ruby 2.0 or higher'
22
- end
23
-
24
- begin
25
- require 'rubocop/rake_task'
26
-
27
- RuboCop::RakeTask.new(:rubocop) do |task|
28
- task.options = %w[-D -E]
29
- task.patterns = [
30
- 'lib/**/*.rb',
31
- 'spec/**/*.rb',
32
- 'bin/*',
33
- '*.gemspec',
34
- 'Gemfile',
35
- 'Rakefile',
36
- ]
37
- end
38
- rescue LoadError
39
- $stderr.puts 'Rubocop is not available for this version of Ruby.'
40
- end
41
-
42
- task :ci => [:test, :release_test]
43
-
44
- # 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