puppet-lint-optional_default-check 1.1.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/puppet-lint/plugins/check_optional_default.rb +2 -2
- data/spec/puppet-lint/plugins/check_optional_default_spec.rb +3 -3
- data/spec/spec_helper.rb +1 -24
- metadata +8 -103
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b276c23d1dcc5b195708d81c792565fdfef714269f04d1c0d035430ea1a606e1
|
4
|
+
data.tar.gz: 2ee78176d1b02c7e9bbd182be1f75353a924a2f0f0581a06fc836f04488e312b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ed1f86bcafa3a533eabf9ec9065e55a25cb351ea9dc3656260e87029ba987afaa43957003c0940986c39c268b9dfd4e14bf7952a7a5dad27e88b543b2e52561
|
7
|
+
data.tar.gz: 03f042825dfc1a158e473718a53d6d3f90a92e049aa2c69ce9339eb4b74286b104cb8fd907722bae687c56e33aa463780ea8d423c88f925004ee9e757bec408b
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,22 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [3.0.0](https://github.com/voxpupuli/puppet-lint-optional_default-check/tree/3.0.0) (2025-09-25)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/puppet-lint-optional_default-check/compare/2.0.0...3.0.0)
|
8
|
+
|
9
|
+
**Breaking changes:**
|
10
|
+
|
11
|
+
- Require Ruby 3.2+ & puppet-lint 5.1+ [\#18](https://github.com/voxpupuli/puppet-lint-optional_default-check/pull/18) ([bastelfreak](https://github.com/bastelfreak))
|
12
|
+
|
13
|
+
## [2.0.0](https://github.com/voxpupuli/puppet-lint-optional_default-check/tree/2.0.0) (2023-04-21)
|
14
|
+
|
15
|
+
[Full Changelog](https://github.com/voxpupuli/puppet-lint-optional_default-check/compare/1.1.0...2.0.0)
|
16
|
+
|
17
|
+
**Breaking changes:**
|
18
|
+
|
19
|
+
- Drop Ruby \< 2.7; Add RuboCop [\#10](https://github.com/voxpupuli/puppet-lint-optional_default-check/pull/10) ([bastelfreak](https://github.com/bastelfreak))
|
20
|
+
|
5
21
|
## [1.1.0](https://github.com/voxpupuli/puppet-lint-optional_default-check/tree/1.1.0) (2022-11-29)
|
6
22
|
|
7
23
|
[Full Changelog](https://github.com/voxpupuli/puppet-lint-optional_default-check/compare/1.0.0...1.1.0)
|
@@ -19,7 +19,7 @@ PuppetLint.new_check(:optional_default) do
|
|
19
19
|
:warning,
|
20
20
|
message: 'Optional parameter defaults to something other than undef',
|
21
21
|
line: param.line,
|
22
|
-
column: param.column
|
22
|
+
column: param.column,
|
23
23
|
)
|
24
24
|
end
|
25
25
|
|
@@ -34,7 +34,7 @@ PuppetLint.new_check(:optional_default) do
|
|
34
34
|
:warning,
|
35
35
|
message: 'Optional defined type parameter doesn\'t have a default',
|
36
36
|
line: param.line,
|
37
|
-
column: param.column
|
37
|
+
column: param.column,
|
38
38
|
)
|
39
39
|
end
|
40
40
|
end
|
@@ -13,7 +13,7 @@ describe 'optional_default' do
|
|
13
13
|
expect(problems).to have(1).problem
|
14
14
|
end
|
15
15
|
|
16
|
-
col = (type == 'class' ? 21 : 22)
|
16
|
+
col = ((type == 'class') ? 21 : 22)
|
17
17
|
it 'creates a warning' do
|
18
18
|
expect(problems).to contain_warning(msg).on_line(1).in_column(col)
|
19
19
|
end
|
@@ -25,7 +25,7 @@ describe 'optional_default' do
|
|
25
25
|
expect(problems).to have(1).problem
|
26
26
|
end
|
27
27
|
|
28
|
-
col = (type == 'class' ? 21 : 22)
|
28
|
+
col = ((type == 'class') ? 21 : 22)
|
29
29
|
it 'creates a warning' do
|
30
30
|
expect(problems).to contain_warning(msg).on_line(1).in_column(col)
|
31
31
|
end
|
@@ -74,7 +74,7 @@ describe 'optional_default' do
|
|
74
74
|
expect(problems).to have(1).problem
|
75
75
|
end
|
76
76
|
|
77
|
-
col = (type == 'class' ? 32 : 33)
|
77
|
+
col = ((type == 'class') ? 32 : 33)
|
78
78
|
it 'creates a warning' do
|
79
79
|
expect(problems).to contain_warning(msg).on_line(1).in_column(col)
|
80
80
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,29 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
begin
|
4
|
-
require 'simplecov'
|
5
|
-
require 'simplecov-console'
|
6
|
-
require 'codecov'
|
7
|
-
rescue LoadError
|
8
|
-
else
|
9
|
-
SimpleCov.start do
|
10
|
-
track_files 'lib/**/*.rb'
|
11
|
-
|
12
|
-
add_filter '/spec'
|
13
|
-
|
14
|
-
enable_coverage :branch
|
15
|
-
|
16
|
-
# do not track vendored files
|
17
|
-
add_filter '/vendor'
|
18
|
-
add_filter '/.vendor'
|
19
|
-
end
|
20
|
-
|
21
|
-
SimpleCov.formatters = [
|
22
|
-
SimpleCov::Formatter::Console,
|
23
|
-
SimpleCov::Formatter::Codecov,
|
24
|
-
]
|
25
|
-
end
|
26
|
-
|
27
3
|
require 'puppet-lint'
|
4
|
+
require 'rspec/collection_matchers'
|
28
5
|
|
29
6
|
PuppetLint::Plugins.load_spec_helper
|
metadata
CHANGED
@@ -1,119 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-lint-optional_default-check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vox Pupuli
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: puppet-lint
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '2.1'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '4'
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '2.1'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '4'
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: rspec
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '3.0'
|
40
|
-
type: :development
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '3.0'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: rspec-its
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '1.0'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '1.0'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: rspec-collection_matchers
|
63
14
|
requirement: !ruby/object:Gem::Requirement
|
64
15
|
requirements:
|
65
16
|
- - "~>"
|
66
17
|
- !ruby/object:Gem::Version
|
67
|
-
version: '1
|
68
|
-
type: :
|
18
|
+
version: '5.1'
|
19
|
+
type: :runtime
|
69
20
|
prerelease: false
|
70
21
|
version_requirements: !ruby/object:Gem::Requirement
|
71
22
|
requirements:
|
72
23
|
- - "~>"
|
73
24
|
- !ruby/object:Gem::Version
|
74
|
-
version: '1
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: rspec-json_expectations
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - ">="
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '0'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '0'
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: rake
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - ">="
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '0'
|
96
|
-
type: :development
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '0'
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: simplecov
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - ">="
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '0'
|
110
|
-
type: :development
|
111
|
-
prerelease: false
|
112
|
-
version_requirements: !ruby/object:Gem::Requirement
|
113
|
-
requirements:
|
114
|
-
- - ">="
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: '0'
|
25
|
+
version: '5.1'
|
117
26
|
description: " A puppet-lint plugin to check that Optional class/defined type parameters
|
118
27
|
don't default to anything other than `undef`.\n"
|
119
28
|
email: voxpupuli@groups.io
|
@@ -131,7 +40,6 @@ homepage: https://github.com/voxpupuli/puppet-lint-optional_default-check
|
|
131
40
|
licenses:
|
132
41
|
- MIT
|
133
42
|
metadata: {}
|
134
|
-
post_install_message:
|
135
43
|
rdoc_options: []
|
136
44
|
require_paths:
|
137
45
|
- lib
|
@@ -139,17 +47,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
47
|
requirements:
|
140
48
|
- - ">="
|
141
49
|
- !ruby/object:Gem::Version
|
142
|
-
version: 2
|
50
|
+
version: '3.2'
|
143
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
52
|
requirements:
|
145
53
|
- - ">="
|
146
54
|
- !ruby/object:Gem::Version
|
147
55
|
version: '0'
|
148
56
|
requirements: []
|
149
|
-
rubygems_version: 3.
|
150
|
-
signing_key:
|
57
|
+
rubygems_version: 3.6.9
|
151
58
|
specification_version: 4
|
152
59
|
summary: A puppet-lint plugin to check Optional parameters default to `undef`
|
153
|
-
test_files:
|
154
|
-
- spec/puppet-lint/plugins/check_optional_default_spec.rb
|
155
|
-
- spec/spec_helper.rb
|
60
|
+
test_files: []
|