puppet-lint 2.5.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +522 -0
- data/lib/puppet-lint/bin.rb +71 -6
- data/lib/puppet-lint/checkplugin.rb +43 -9
- data/lib/puppet-lint/checks.rb +16 -16
- data/lib/puppet-lint/configuration.rb +134 -134
- data/lib/puppet-lint/data.rb +28 -28
- data/lib/puppet-lint/lexer/string_slurper.rb +138 -140
- data/lib/puppet-lint/lexer/token.rb +188 -190
- data/lib/puppet-lint/lexer.rb +416 -417
- data/lib/puppet-lint/monkeypatches.rb +1 -1
- data/lib/puppet-lint/optparser.rb +5 -1
- data/lib/puppet-lint/plugins/check_classes/arrow_on_right_operand_line.rb +6 -4
- data/lib/puppet-lint/plugins/check_classes/autoloader_layout.rb +5 -3
- data/lib/puppet-lint/plugins/check_classes/class_inherits_from_params_class.rb +6 -4
- data/lib/puppet-lint/plugins/check_classes/code_on_top_scope.rb +5 -3
- data/lib/puppet-lint/plugins/check_classes/inherits_across_namespaces.rb +5 -3
- data/lib/puppet-lint/plugins/check_classes/names_containing_dash.rb +5 -3
- data/lib/puppet-lint/plugins/check_classes/names_containing_uppercase.rb +7 -5
- data/lib/puppet-lint/plugins/check_classes/nested_classes_or_defines.rb +5 -3
- data/lib/puppet-lint/plugins/check_classes/parameter_order.rb +7 -4
- data/lib/puppet-lint/plugins/check_classes/right_to_left_relationship.rb +5 -3
- data/lib/puppet-lint/plugins/check_classes/variable_scope.rb +15 -13
- data/lib/puppet-lint/plugins/check_comments/slash_comments.rb +9 -7
- data/lib/puppet-lint/plugins/check_comments/star_comments.rb +10 -8
- data/lib/puppet-lint/plugins/check_conditionals/case_without_default.rb +6 -4
- data/lib/puppet-lint/plugins/check_conditionals/selector_inside_resource.rb +5 -3
- data/lib/puppet-lint/plugins/check_documentation/documentation.rb +7 -3
- data/lib/puppet-lint/plugins/check_nodes/unquoted_node_name.rb +15 -11
- data/lib/puppet-lint/plugins/check_resources/duplicate_params.rb +5 -3
- data/lib/puppet-lint/plugins/check_resources/ensure_first_param.rb +8 -5
- data/lib/puppet-lint/plugins/check_resources/ensure_not_symlink_target.rb +11 -8
- data/lib/puppet-lint/plugins/check_resources/file_mode.rb +14 -9
- data/lib/puppet-lint/plugins/check_resources/unquoted_file_mode.rb +11 -6
- data/lib/puppet-lint/plugins/check_resources/unquoted_resource_title.rb +6 -4
- data/lib/puppet-lint/plugins/check_strings/double_quoted_strings.rb +12 -7
- data/lib/puppet-lint/plugins/check_strings/only_variable_string.rb +8 -6
- data/lib/puppet-lint/plugins/check_strings/puppet_url_without_modules.rb +14 -8
- data/lib/puppet-lint/plugins/check_strings/quoted_booleans.rb +11 -7
- data/lib/puppet-lint/plugins/check_strings/single_quote_string_with_variables.rb +11 -6
- data/lib/puppet-lint/plugins/check_strings/variables_not_enclosed.rb +12 -8
- data/lib/puppet-lint/plugins/check_variables/variable_contains_dash.rb +11 -7
- data/lib/puppet-lint/plugins/check_variables/variable_is_lowercase.rb +11 -7
- data/lib/puppet-lint/plugins/check_whitespace/140chars.rb +3 -8
- data/lib/puppet-lint/plugins/check_whitespace/2sp_soft_tabs.rb +10 -8
- data/lib/puppet-lint/plugins/check_whitespace/80chars.rb +3 -8
- data/lib/puppet-lint/plugins/check_whitespace/arrow_alignment.rb +10 -8
- data/lib/puppet-lint/plugins/check_whitespace/hard_tabs.rb +11 -7
- data/lib/puppet-lint/plugins/check_whitespace/line_length.rb +29 -0
- data/lib/puppet-lint/plugins/check_whitespace/trailing_whitespace.rb +13 -7
- data/lib/puppet-lint/plugins.rb +63 -61
- data/lib/puppet-lint/report/github.rb +17 -0
- data/lib/puppet-lint/report/sarif_template.json +63 -0
- data/lib/puppet-lint/tasks/puppet-lint.rb +84 -83
- data/lib/puppet-lint/tasks/release_test.rb +4 -1
- data/lib/puppet-lint/version.rb +1 -1
- data/lib/puppet-lint.rb +27 -12
- data/spec/acceptance/puppet_lint_spec.rb +46 -0
- data/spec/spec_helper.rb +92 -91
- data/spec/spec_helper_acceptance.rb +6 -0
- data/spec/spec_helper_acceptance_local.rb +38 -0
- data/spec/{puppet-lint → unit/puppet-lint}/bin_spec.rb +79 -35
- data/spec/{puppet-lint → unit/puppet-lint}/checks_spec.rb +36 -36
- data/spec/unit/puppet-lint/configuration_spec.rb +88 -0
- data/spec/{puppet-lint → unit/puppet-lint}/data_spec.rb +6 -3
- data/spec/{puppet-lint → unit/puppet-lint}/ignore_overrides_spec.rb +17 -17
- data/spec/{puppet-lint → unit/puppet-lint}/lexer/string_slurper_spec.rb +128 -128
- data/spec/{puppet-lint → unit/puppet-lint}/lexer/token_spec.rb +1 -1
- data/spec/{puppet-lint → unit/puppet-lint}/lexer_spec.rb +653 -671
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_classes/arrow_on_right_operand_line_spec.rb +16 -16
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_classes/autoloader_layout_spec.rb +13 -13
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_classes/class_inherits_from_params_class_spec.rb +3 -3
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_classes/code_on_top_scope_spec.rb +4 -4
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_classes/inherits_across_namespaces_spec.rb +4 -4
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_classes/name_contains_uppercase_spec.rb +10 -10
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_classes/names_containing_dash_spec.rb +7 -7
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_classes/nested_classes_or_defines_spec.rb +7 -7
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_classes/parameter_order_spec.rb +9 -9
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_classes/right_to_left_relationship_spec.rb +3 -3
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_classes/variable_scope_spec.rb +25 -25
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_comments/slash_comments_spec.rb +7 -7
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_comments/star_comments_spec.rb +13 -13
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_conditionals/case_without_default_spec.rb +10 -10
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_conditionals/selector_inside_resource_spec.rb +3 -3
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_documentation/documentation_spec.rb +8 -8
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_nodes/unquoted_node_name_spec.rb +24 -24
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_resources/duplicate_params_spec.rb +9 -9
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_resources/ensure_first_param_spec.rb +19 -19
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_resources/ensure_not_symlink_target_spec.rb +10 -10
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_resources/file_mode_spec.rb +40 -40
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_resources/unquoted_file_mode_spec.rb +20 -20
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_resources/unquoted_resource_title_spec.rb +24 -24
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_strings/double_quoted_strings_spec.rb +27 -27
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_strings/only_variable_string_spec.rb +18 -18
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_strings/puppet_url_without_modules_spec.rb +9 -9
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_strings/quoted_booleans_spec.rb +22 -22
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_strings/single_quote_string_with_variables_spec.rb +2 -2
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_strings/variables_not_enclosed_spec.rb +21 -21
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_variables/variable_contains_dash_spec.rb +6 -6
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_variables/variable_is_lowercase_spec.rb +7 -7
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_whitespace/140chars_spec.rb +5 -5
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_whitespace/2sp_soft_tabs_spec.rb +2 -2
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_whitespace/80chars_spec.rb +6 -6
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_whitespace/arrow_alignment_spec.rb +127 -127
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_whitespace/hard_tabs_spec.rb +7 -7
- data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_whitespace/trailing_whitespace_spec.rb +15 -15
- data/spec/unit/puppet-lint/puppet-lint_spec.rb +18 -0
- metadata +63 -119
- data/CHANGELOG.md +0 -33
- data/HISTORY.md +0 -1130
- data/spec/puppet-lint/configuration_spec.rb +0 -66
- data/spec/puppet-lint_spec.rb +0 -16
data/spec/{puppet-lint → unit/puppet-lint}/plugins/check_whitespace/trailing_whitespace_spec.rb
RENAMED
@@ -7,11 +7,11 @@ describe 'trailing_whitespace' do
|
|
7
7
|
context 'line with trailing whitespace' do
|
8
8
|
let(:code) { 'foo ' }
|
9
9
|
|
10
|
-
it '
|
10
|
+
it 'only detects a single problem' do
|
11
11
|
expect(problems).to have(1).problem
|
12
12
|
end
|
13
13
|
|
14
|
-
it '
|
14
|
+
it 'creates an error' do
|
15
15
|
expect(problems).to contain_error(msg).on_line(1).in_column(4)
|
16
16
|
end
|
17
17
|
end
|
@@ -25,37 +25,37 @@ describe 'trailing_whitespace' do
|
|
25
25
|
].join("\n")
|
26
26
|
end
|
27
27
|
|
28
|
-
it '
|
28
|
+
it 'only detects a single problem' do
|
29
29
|
expect(problems).to have(1).problem
|
30
30
|
end
|
31
31
|
|
32
|
-
it '
|
32
|
+
it 'creates an error' do
|
33
33
|
expect(problems).to contain_error(msg).on_line(2).in_column(1)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
38
|
context 'with fix enabled' do
|
39
|
-
before do
|
39
|
+
before(:each) do
|
40
40
|
PuppetLint.configuration.fix = true
|
41
41
|
end
|
42
42
|
|
43
|
-
after do
|
43
|
+
after(:each) do
|
44
44
|
PuppetLint.configuration.fix = false
|
45
45
|
end
|
46
46
|
|
47
47
|
context 'single line with trailing whitespace' do
|
48
48
|
let(:code) { 'foo ' }
|
49
49
|
|
50
|
-
it '
|
50
|
+
it 'only detects a single problem' do
|
51
51
|
expect(problems).to have(1).problem
|
52
52
|
end
|
53
53
|
|
54
|
-
it '
|
54
|
+
it 'fixes the manifest' do
|
55
55
|
expect(problems).to contain_fixed(msg).on_line(1).in_column(4)
|
56
56
|
end
|
57
57
|
|
58
|
-
it '
|
58
|
+
it 'removes the trailing whitespace' do
|
59
59
|
expect(manifest).to eq('foo')
|
60
60
|
end
|
61
61
|
end
|
@@ -63,15 +63,15 @@ describe 'trailing_whitespace' do
|
|
63
63
|
context 'multiple lines with trailing whitespace' do
|
64
64
|
let(:code) { "foo \nbar" }
|
65
65
|
|
66
|
-
it '
|
66
|
+
it 'only detects a single problem' do
|
67
67
|
expect(problems).to have(1).problem
|
68
68
|
end
|
69
69
|
|
70
|
-
it '
|
70
|
+
it 'fixes the manifest' do
|
71
71
|
expect(problems).to contain_fixed(msg).on_line(1).in_column(4)
|
72
72
|
end
|
73
73
|
|
74
|
-
it '
|
74
|
+
it 'removes the trailing whitespace' do
|
75
75
|
expect(manifest).to eq("foo\nbar")
|
76
76
|
end
|
77
77
|
end
|
@@ -93,15 +93,15 @@ describe 'trailing_whitespace' do
|
|
93
93
|
].join("\n")
|
94
94
|
end
|
95
95
|
|
96
|
-
it '
|
96
|
+
it 'only detects a single problem' do
|
97
97
|
expect(problems).to have(1).problem
|
98
98
|
end
|
99
99
|
|
100
|
-
it '
|
100
|
+
it 'creates an error' do
|
101
101
|
expect(problems).to contain_fixed(msg).on_line(2).in_column(1)
|
102
102
|
end
|
103
103
|
|
104
|
-
it '
|
104
|
+
it 'removes the trailing whitespace' do
|
105
105
|
expect(manifest).to eq(fixed)
|
106
106
|
end
|
107
107
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# rubocop: disable Naming/FileName
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe PuppetLint do
|
6
|
+
subject(:linter) { described_class.new }
|
7
|
+
|
8
|
+
it 'accepts manifests as a string' do
|
9
|
+
linter.code = 'class foo { }'
|
10
|
+
expect(linter.code).not_to be_nil
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'returns empty manifest when empty one given as the input' do
|
14
|
+
linter.code = ''
|
15
|
+
linter.run
|
16
|
+
expect(linter.manifest).to eq('')
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Sharpe
|
8
8
|
- Puppet, Inc.
|
9
9
|
- Community Contributors
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-10-13 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
|
-
description:
|
16
|
-
|
17
|
-
style guide and alerts you to any discrepancies.
|
15
|
+
description: " Checks your Puppet manifests against the Puppetlabs style guide
|
16
|
+
and alerts you to any discrepancies.'\n"
|
18
17
|
email:
|
19
18
|
- tim@sharpe.id.au
|
20
19
|
- modules-team@puppet.com
|
@@ -23,8 +22,7 @@ executables:
|
|
23
22
|
extensions: []
|
24
23
|
extra_rdoc_files: []
|
25
24
|
files:
|
26
|
-
-
|
27
|
-
- HISTORY.md
|
25
|
+
- ".rubocop.yml"
|
28
26
|
- LICENSE
|
29
27
|
- README.md
|
30
28
|
- bin/puppet-lint
|
@@ -76,11 +74,15 @@ files:
|
|
76
74
|
- lib/puppet-lint/plugins/check_whitespace/80chars.rb
|
77
75
|
- lib/puppet-lint/plugins/check_whitespace/arrow_alignment.rb
|
78
76
|
- lib/puppet-lint/plugins/check_whitespace/hard_tabs.rb
|
77
|
+
- lib/puppet-lint/plugins/check_whitespace/line_length.rb
|
79
78
|
- lib/puppet-lint/plugins/check_whitespace/trailing_whitespace.rb
|
79
|
+
- lib/puppet-lint/report/github.rb
|
80
|
+
- lib/puppet-lint/report/sarif_template.json
|
80
81
|
- lib/puppet-lint/tasks/gemfile_rewrite.rb
|
81
82
|
- lib/puppet-lint/tasks/puppet-lint.rb
|
82
83
|
- lib/puppet-lint/tasks/release_test.rb
|
83
84
|
- lib/puppet-lint/version.rb
|
85
|
+
- spec/acceptance/puppet_lint_spec.rb
|
84
86
|
- spec/fixtures/test/manifests/fail.pp
|
85
87
|
- spec/fixtures/test/manifests/ignore.pp
|
86
88
|
- spec/fixtures/test/manifests/ignore_multiple_block.pp
|
@@ -93,58 +95,60 @@ files:
|
|
93
95
|
- spec/fixtures/test/manifests/unterminated_control_comment.pp
|
94
96
|
- spec/fixtures/test/manifests/url_interpolation.pp
|
95
97
|
- spec/fixtures/test/manifests/warning.pp
|
96
|
-
- spec/puppet-lint/bin_spec.rb
|
97
|
-
- spec/puppet-lint/checks_spec.rb
|
98
|
-
- spec/puppet-lint/configuration_spec.rb
|
99
|
-
- spec/puppet-lint/data_spec.rb
|
100
|
-
- spec/puppet-lint/ignore_overrides_spec.rb
|
101
|
-
- spec/puppet-lint/lexer/string_slurper_spec.rb
|
102
|
-
- spec/puppet-lint/lexer/token_spec.rb
|
103
|
-
- spec/puppet-lint/lexer_spec.rb
|
104
|
-
- spec/puppet-lint/plugins/check_classes/arrow_on_right_operand_line_spec.rb
|
105
|
-
- spec/puppet-lint/plugins/check_classes/autoloader_layout_spec.rb
|
106
|
-
- spec/puppet-lint/plugins/check_classes/class_inherits_from_params_class_spec.rb
|
107
|
-
- spec/puppet-lint/plugins/check_classes/code_on_top_scope_spec.rb
|
108
|
-
- spec/puppet-lint/plugins/check_classes/inherits_across_namespaces_spec.rb
|
109
|
-
- spec/puppet-lint/plugins/check_classes/name_contains_uppercase_spec.rb
|
110
|
-
- spec/puppet-lint/plugins/check_classes/names_containing_dash_spec.rb
|
111
|
-
- spec/puppet-lint/plugins/check_classes/nested_classes_or_defines_spec.rb
|
112
|
-
- spec/puppet-lint/plugins/check_classes/parameter_order_spec.rb
|
113
|
-
- spec/puppet-lint/plugins/check_classes/right_to_left_relationship_spec.rb
|
114
|
-
- spec/puppet-lint/plugins/check_classes/variable_scope_spec.rb
|
115
|
-
- spec/puppet-lint/plugins/check_comments/slash_comments_spec.rb
|
116
|
-
- spec/puppet-lint/plugins/check_comments/star_comments_spec.rb
|
117
|
-
- spec/puppet-lint/plugins/check_conditionals/case_without_default_spec.rb
|
118
|
-
- spec/puppet-lint/plugins/check_conditionals/selector_inside_resource_spec.rb
|
119
|
-
- spec/puppet-lint/plugins/check_documentation/documentation_spec.rb
|
120
|
-
- spec/puppet-lint/plugins/check_nodes/unquoted_node_name_spec.rb
|
121
|
-
- spec/puppet-lint/plugins/check_resources/duplicate_params_spec.rb
|
122
|
-
- spec/puppet-lint/plugins/check_resources/ensure_first_param_spec.rb
|
123
|
-
- spec/puppet-lint/plugins/check_resources/ensure_not_symlink_target_spec.rb
|
124
|
-
- spec/puppet-lint/plugins/check_resources/file_mode_spec.rb
|
125
|
-
- spec/puppet-lint/plugins/check_resources/unquoted_file_mode_spec.rb
|
126
|
-
- spec/puppet-lint/plugins/check_resources/unquoted_resource_title_spec.rb
|
127
|
-
- spec/puppet-lint/plugins/check_strings/double_quoted_strings_spec.rb
|
128
|
-
- spec/puppet-lint/plugins/check_strings/only_variable_string_spec.rb
|
129
|
-
- spec/puppet-lint/plugins/check_strings/puppet_url_without_modules_spec.rb
|
130
|
-
- spec/puppet-lint/plugins/check_strings/quoted_booleans_spec.rb
|
131
|
-
- spec/puppet-lint/plugins/check_strings/single_quote_string_with_variables_spec.rb
|
132
|
-
- spec/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb
|
133
|
-
- spec/puppet-lint/plugins/check_variables/variable_contains_dash_spec.rb
|
134
|
-
- spec/puppet-lint/plugins/check_variables/variable_is_lowercase_spec.rb
|
135
|
-
- spec/puppet-lint/plugins/check_whitespace/140chars_spec.rb
|
136
|
-
- spec/puppet-lint/plugins/check_whitespace/2sp_soft_tabs_spec.rb
|
137
|
-
- spec/puppet-lint/plugins/check_whitespace/80chars_spec.rb
|
138
|
-
- spec/puppet-lint/plugins/check_whitespace/arrow_alignment_spec.rb
|
139
|
-
- spec/puppet-lint/plugins/check_whitespace/hard_tabs_spec.rb
|
140
|
-
- spec/puppet-lint/plugins/check_whitespace/trailing_whitespace_spec.rb
|
141
|
-
- spec/puppet-lint_spec.rb
|
142
98
|
- spec/spec_helper.rb
|
99
|
+
- spec/spec_helper_acceptance.rb
|
100
|
+
- spec/spec_helper_acceptance_local.rb
|
101
|
+
- spec/unit/puppet-lint/bin_spec.rb
|
102
|
+
- spec/unit/puppet-lint/checks_spec.rb
|
103
|
+
- spec/unit/puppet-lint/configuration_spec.rb
|
104
|
+
- spec/unit/puppet-lint/data_spec.rb
|
105
|
+
- spec/unit/puppet-lint/ignore_overrides_spec.rb
|
106
|
+
- spec/unit/puppet-lint/lexer/string_slurper_spec.rb
|
107
|
+
- spec/unit/puppet-lint/lexer/token_spec.rb
|
108
|
+
- spec/unit/puppet-lint/lexer_spec.rb
|
109
|
+
- spec/unit/puppet-lint/plugins/check_classes/arrow_on_right_operand_line_spec.rb
|
110
|
+
- spec/unit/puppet-lint/plugins/check_classes/autoloader_layout_spec.rb
|
111
|
+
- spec/unit/puppet-lint/plugins/check_classes/class_inherits_from_params_class_spec.rb
|
112
|
+
- spec/unit/puppet-lint/plugins/check_classes/code_on_top_scope_spec.rb
|
113
|
+
- spec/unit/puppet-lint/plugins/check_classes/inherits_across_namespaces_spec.rb
|
114
|
+
- spec/unit/puppet-lint/plugins/check_classes/name_contains_uppercase_spec.rb
|
115
|
+
- spec/unit/puppet-lint/plugins/check_classes/names_containing_dash_spec.rb
|
116
|
+
- spec/unit/puppet-lint/plugins/check_classes/nested_classes_or_defines_spec.rb
|
117
|
+
- spec/unit/puppet-lint/plugins/check_classes/parameter_order_spec.rb
|
118
|
+
- spec/unit/puppet-lint/plugins/check_classes/right_to_left_relationship_spec.rb
|
119
|
+
- spec/unit/puppet-lint/plugins/check_classes/variable_scope_spec.rb
|
120
|
+
- spec/unit/puppet-lint/plugins/check_comments/slash_comments_spec.rb
|
121
|
+
- spec/unit/puppet-lint/plugins/check_comments/star_comments_spec.rb
|
122
|
+
- spec/unit/puppet-lint/plugins/check_conditionals/case_without_default_spec.rb
|
123
|
+
- spec/unit/puppet-lint/plugins/check_conditionals/selector_inside_resource_spec.rb
|
124
|
+
- spec/unit/puppet-lint/plugins/check_documentation/documentation_spec.rb
|
125
|
+
- spec/unit/puppet-lint/plugins/check_nodes/unquoted_node_name_spec.rb
|
126
|
+
- spec/unit/puppet-lint/plugins/check_resources/duplicate_params_spec.rb
|
127
|
+
- spec/unit/puppet-lint/plugins/check_resources/ensure_first_param_spec.rb
|
128
|
+
- spec/unit/puppet-lint/plugins/check_resources/ensure_not_symlink_target_spec.rb
|
129
|
+
- spec/unit/puppet-lint/plugins/check_resources/file_mode_spec.rb
|
130
|
+
- spec/unit/puppet-lint/plugins/check_resources/unquoted_file_mode_spec.rb
|
131
|
+
- spec/unit/puppet-lint/plugins/check_resources/unquoted_resource_title_spec.rb
|
132
|
+
- spec/unit/puppet-lint/plugins/check_strings/double_quoted_strings_spec.rb
|
133
|
+
- spec/unit/puppet-lint/plugins/check_strings/only_variable_string_spec.rb
|
134
|
+
- spec/unit/puppet-lint/plugins/check_strings/puppet_url_without_modules_spec.rb
|
135
|
+
- spec/unit/puppet-lint/plugins/check_strings/quoted_booleans_spec.rb
|
136
|
+
- spec/unit/puppet-lint/plugins/check_strings/single_quote_string_with_variables_spec.rb
|
137
|
+
- spec/unit/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb
|
138
|
+
- spec/unit/puppet-lint/plugins/check_variables/variable_contains_dash_spec.rb
|
139
|
+
- spec/unit/puppet-lint/plugins/check_variables/variable_is_lowercase_spec.rb
|
140
|
+
- spec/unit/puppet-lint/plugins/check_whitespace/140chars_spec.rb
|
141
|
+
- spec/unit/puppet-lint/plugins/check_whitespace/2sp_soft_tabs_spec.rb
|
142
|
+
- spec/unit/puppet-lint/plugins/check_whitespace/80chars_spec.rb
|
143
|
+
- spec/unit/puppet-lint/plugins/check_whitespace/arrow_alignment_spec.rb
|
144
|
+
- spec/unit/puppet-lint/plugins/check_whitespace/hard_tabs_spec.rb
|
145
|
+
- spec/unit/puppet-lint/plugins/check_whitespace/trailing_whitespace_spec.rb
|
146
|
+
- spec/unit/puppet-lint/puppet-lint_spec.rb
|
143
147
|
homepage: https://github.com/puppetlabs/puppet-lint/
|
144
148
|
licenses:
|
145
149
|
- MIT
|
146
150
|
metadata: {}
|
147
|
-
post_install_message:
|
151
|
+
post_install_message:
|
148
152
|
rdoc_options: []
|
149
153
|
require_paths:
|
150
154
|
- lib
|
@@ -152,75 +156,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
152
156
|
requirements:
|
153
157
|
- - ">="
|
154
158
|
- !ruby/object:Gem::Version
|
155
|
-
version: '
|
159
|
+
version: '2.7'
|
156
160
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
161
|
requirements:
|
158
162
|
- - ">="
|
159
163
|
- !ruby/object:Gem::Version
|
160
164
|
version: '0'
|
161
165
|
requirements: []
|
162
|
-
|
163
|
-
|
164
|
-
signing_key:
|
166
|
+
rubygems_version: 3.1.6
|
167
|
+
signing_key:
|
165
168
|
specification_version: 4
|
166
169
|
summary: Ensure your Puppet manifests conform with the Puppetlabs style guide
|
167
|
-
test_files:
|
168
|
-
- spec/fixtures/test/manifests/fail.pp
|
169
|
-
- spec/fixtures/test/manifests/ignore.pp
|
170
|
-
- spec/fixtures/test/manifests/ignore_multiple_block.pp
|
171
|
-
- spec/fixtures/test/manifests/ignore_multiple_line.pp
|
172
|
-
- spec/fixtures/test/manifests/ignore_reason.pp
|
173
|
-
- spec/fixtures/test/manifests/init.pp
|
174
|
-
- spec/fixtures/test/manifests/malformed.pp
|
175
|
-
- spec/fixtures/test/manifests/mismatched_control_comment.pp
|
176
|
-
- spec/fixtures/test/manifests/two_warnings.pp
|
177
|
-
- spec/fixtures/test/manifests/unterminated_control_comment.pp
|
178
|
-
- spec/fixtures/test/manifests/url_interpolation.pp
|
179
|
-
- spec/fixtures/test/manifests/warning.pp
|
180
|
-
- spec/puppet-lint/bin_spec.rb
|
181
|
-
- spec/puppet-lint/checks_spec.rb
|
182
|
-
- spec/puppet-lint/configuration_spec.rb
|
183
|
-
- spec/puppet-lint/data_spec.rb
|
184
|
-
- spec/puppet-lint/ignore_overrides_spec.rb
|
185
|
-
- spec/puppet-lint/lexer/string_slurper_spec.rb
|
186
|
-
- spec/puppet-lint/lexer/token_spec.rb
|
187
|
-
- spec/puppet-lint/lexer_spec.rb
|
188
|
-
- spec/puppet-lint/plugins/check_classes/arrow_on_right_operand_line_spec.rb
|
189
|
-
- spec/puppet-lint/plugins/check_classes/autoloader_layout_spec.rb
|
190
|
-
- spec/puppet-lint/plugins/check_classes/class_inherits_from_params_class_spec.rb
|
191
|
-
- spec/puppet-lint/plugins/check_classes/code_on_top_scope_spec.rb
|
192
|
-
- spec/puppet-lint/plugins/check_classes/inherits_across_namespaces_spec.rb
|
193
|
-
- spec/puppet-lint/plugins/check_classes/name_contains_uppercase_spec.rb
|
194
|
-
- spec/puppet-lint/plugins/check_classes/names_containing_dash_spec.rb
|
195
|
-
- spec/puppet-lint/plugins/check_classes/nested_classes_or_defines_spec.rb
|
196
|
-
- spec/puppet-lint/plugins/check_classes/parameter_order_spec.rb
|
197
|
-
- spec/puppet-lint/plugins/check_classes/right_to_left_relationship_spec.rb
|
198
|
-
- spec/puppet-lint/plugins/check_classes/variable_scope_spec.rb
|
199
|
-
- spec/puppet-lint/plugins/check_comments/slash_comments_spec.rb
|
200
|
-
- spec/puppet-lint/plugins/check_comments/star_comments_spec.rb
|
201
|
-
- spec/puppet-lint/plugins/check_conditionals/case_without_default_spec.rb
|
202
|
-
- spec/puppet-lint/plugins/check_conditionals/selector_inside_resource_spec.rb
|
203
|
-
- spec/puppet-lint/plugins/check_documentation/documentation_spec.rb
|
204
|
-
- spec/puppet-lint/plugins/check_nodes/unquoted_node_name_spec.rb
|
205
|
-
- spec/puppet-lint/plugins/check_resources/duplicate_params_spec.rb
|
206
|
-
- spec/puppet-lint/plugins/check_resources/ensure_first_param_spec.rb
|
207
|
-
- spec/puppet-lint/plugins/check_resources/ensure_not_symlink_target_spec.rb
|
208
|
-
- spec/puppet-lint/plugins/check_resources/file_mode_spec.rb
|
209
|
-
- spec/puppet-lint/plugins/check_resources/unquoted_file_mode_spec.rb
|
210
|
-
- spec/puppet-lint/plugins/check_resources/unquoted_resource_title_spec.rb
|
211
|
-
- spec/puppet-lint/plugins/check_strings/double_quoted_strings_spec.rb
|
212
|
-
- spec/puppet-lint/plugins/check_strings/only_variable_string_spec.rb
|
213
|
-
- spec/puppet-lint/plugins/check_strings/puppet_url_without_modules_spec.rb
|
214
|
-
- spec/puppet-lint/plugins/check_strings/quoted_booleans_spec.rb
|
215
|
-
- spec/puppet-lint/plugins/check_strings/single_quote_string_with_variables_spec.rb
|
216
|
-
- spec/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb
|
217
|
-
- spec/puppet-lint/plugins/check_variables/variable_contains_dash_spec.rb
|
218
|
-
- spec/puppet-lint/plugins/check_variables/variable_is_lowercase_spec.rb
|
219
|
-
- spec/puppet-lint/plugins/check_whitespace/140chars_spec.rb
|
220
|
-
- spec/puppet-lint/plugins/check_whitespace/2sp_soft_tabs_spec.rb
|
221
|
-
- spec/puppet-lint/plugins/check_whitespace/80chars_spec.rb
|
222
|
-
- spec/puppet-lint/plugins/check_whitespace/arrow_alignment_spec.rb
|
223
|
-
- spec/puppet-lint/plugins/check_whitespace/hard_tabs_spec.rb
|
224
|
-
- spec/puppet-lint/plugins/check_whitespace/trailing_whitespace_spec.rb
|
225
|
-
- spec/puppet-lint_spec.rb
|
226
|
-
- spec/spec_helper.rb
|
170
|
+
test_files: []
|
data/CHANGELOG.md
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# Changelog
|
2
|
-
|
3
|
-
## [2.5.2](https://github.com/puppetlabs/puppet-lint/tree/2.5.2) (2021-09-14)
|
4
|
-
|
5
|
-
[Full Changelog](https://github.com/puppetlabs/puppet-lint/compare/2.5.1...2.5.2)
|
6
|
-
|
7
|
-
**Closed issues:**
|
8
|
-
|
9
|
-
- Release 2.5.1 contains stuff in bin/ [\#22](https://github.com/puppetlabs/puppet-lint/issues/22)
|
10
|
-
## [2.5.1](https://github.com/puppetlabs/puppet-lint/tree/2.5.1) (2021-09-13) [YANKED]
|
11
|
-
|
12
|
-
> **NOTE:** This release was yanked as there were unexpected artefacts published in the build
|
13
|
-
|
14
|
-
[Full Changelog](https://github.com/puppetlabs/puppet-lint/compare/2.5.0...2.5.1)
|
15
|
-
|
16
|
-
**Fixed bugs:**
|
17
|
-
|
18
|
-
- double\_quoted\_strings does not permit space escape sequence [\#16](https://github.com/puppetlabs/puppet-lint/issues/16)
|
19
|
-
|
20
|
-
**Closed issues:**
|
21
|
-
|
22
|
-
- SPIKE: Add Puppetlabs automated release workflow [\#7](https://github.com/puppetlabs/puppet-lint/issues/7)
|
23
|
-
- Update testing to test against latest puppet/ruby versions [\#5](https://github.com/puppetlabs/puppet-lint/issues/5)
|
24
|
-
- Add in Puppetlabs Github Actions for testing [\#4](https://github.com/puppetlabs/puppet-lint/issues/4)
|
25
|
-
- Prepare gem for release [\#3](https://github.com/puppetlabs/puppet-lint/issues/3)
|
26
|
-
|
27
|
-
**Merged pull requests:**
|
28
|
-
|
29
|
-
- \(GH-16\) Do not warn on "\s" string literal [\#20](https://github.com/puppetlabs/puppet-lint/pull/20) ([sanfrancrisko](https://github.com/sanfrancrisko))
|
30
|
-
- \(maint\) Prepare repo and gem for next release [\#15](https://github.com/puppetlabs/puppet-lint/pull/15) ([da-ar](https://github.com/da-ar))
|
31
|
-
|
32
|
-
|
33
|
-
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|