puppet-lint 2.5.0 → 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 +28 -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 +69 -120
- data/CHANGELOG.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,25 +1,28 @@
|
|
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
|
+
- Community Contributors
|
10
|
+
autorequire:
|
9
11
|
bindir: bin
|
10
12
|
cert_chain: []
|
11
|
-
date:
|
13
|
+
date: 2022-10-13 00:00:00.000000000 Z
|
12
14
|
dependencies: []
|
13
|
-
description:
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
description: " Checks your Puppet manifests against the Puppetlabs style guide
|
16
|
+
and alerts you to any discrepancies.'\n"
|
17
|
+
email:
|
18
|
+
- tim@sharpe.id.au
|
19
|
+
- modules-team@puppet.com
|
17
20
|
executables:
|
18
21
|
- puppet-lint
|
19
22
|
extensions: []
|
20
23
|
extra_rdoc_files: []
|
21
24
|
files:
|
22
|
-
-
|
25
|
+
- ".rubocop.yml"
|
23
26
|
- LICENSE
|
24
27
|
- README.md
|
25
28
|
- bin/puppet-lint
|
@@ -71,11 +74,15 @@ files:
|
|
71
74
|
- lib/puppet-lint/plugins/check_whitespace/80chars.rb
|
72
75
|
- lib/puppet-lint/plugins/check_whitespace/arrow_alignment.rb
|
73
76
|
- lib/puppet-lint/plugins/check_whitespace/hard_tabs.rb
|
77
|
+
- lib/puppet-lint/plugins/check_whitespace/line_length.rb
|
74
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
|
75
81
|
- lib/puppet-lint/tasks/gemfile_rewrite.rb
|
76
82
|
- lib/puppet-lint/tasks/puppet-lint.rb
|
77
83
|
- lib/puppet-lint/tasks/release_test.rb
|
78
84
|
- lib/puppet-lint/version.rb
|
85
|
+
- spec/acceptance/puppet_lint_spec.rb
|
79
86
|
- spec/fixtures/test/manifests/fail.pp
|
80
87
|
- spec/fixtures/test/manifests/ignore.pp
|
81
88
|
- spec/fixtures/test/manifests/ignore_multiple_block.pp
|
@@ -88,58 +95,60 @@ files:
|
|
88
95
|
- spec/fixtures/test/manifests/unterminated_control_comment.pp
|
89
96
|
- spec/fixtures/test/manifests/url_interpolation.pp
|
90
97
|
- spec/fixtures/test/manifests/warning.pp
|
91
|
-
- spec/puppet-lint/bin_spec.rb
|
92
|
-
- spec/puppet-lint/checks_spec.rb
|
93
|
-
- spec/puppet-lint/configuration_spec.rb
|
94
|
-
- spec/puppet-lint/data_spec.rb
|
95
|
-
- spec/puppet-lint/ignore_overrides_spec.rb
|
96
|
-
- spec/puppet-lint/lexer/string_slurper_spec.rb
|
97
|
-
- spec/puppet-lint/lexer/token_spec.rb
|
98
|
-
- spec/puppet-lint/lexer_spec.rb
|
99
|
-
- spec/puppet-lint/plugins/check_classes/arrow_on_right_operand_line_spec.rb
|
100
|
-
- spec/puppet-lint/plugins/check_classes/autoloader_layout_spec.rb
|
101
|
-
- spec/puppet-lint/plugins/check_classes/class_inherits_from_params_class_spec.rb
|
102
|
-
- spec/puppet-lint/plugins/check_classes/code_on_top_scope_spec.rb
|
103
|
-
- spec/puppet-lint/plugins/check_classes/inherits_across_namespaces_spec.rb
|
104
|
-
- spec/puppet-lint/plugins/check_classes/name_contains_uppercase_spec.rb
|
105
|
-
- spec/puppet-lint/plugins/check_classes/names_containing_dash_spec.rb
|
106
|
-
- spec/puppet-lint/plugins/check_classes/nested_classes_or_defines_spec.rb
|
107
|
-
- spec/puppet-lint/plugins/check_classes/parameter_order_spec.rb
|
108
|
-
- spec/puppet-lint/plugins/check_classes/right_to_left_relationship_spec.rb
|
109
|
-
- spec/puppet-lint/plugins/check_classes/variable_scope_spec.rb
|
110
|
-
- spec/puppet-lint/plugins/check_comments/slash_comments_spec.rb
|
111
|
-
- spec/puppet-lint/plugins/check_comments/star_comments_spec.rb
|
112
|
-
- spec/puppet-lint/plugins/check_conditionals/case_without_default_spec.rb
|
113
|
-
- spec/puppet-lint/plugins/check_conditionals/selector_inside_resource_spec.rb
|
114
|
-
- spec/puppet-lint/plugins/check_documentation/documentation_spec.rb
|
115
|
-
- spec/puppet-lint/plugins/check_nodes/unquoted_node_name_spec.rb
|
116
|
-
- spec/puppet-lint/plugins/check_resources/duplicate_params_spec.rb
|
117
|
-
- spec/puppet-lint/plugins/check_resources/ensure_first_param_spec.rb
|
118
|
-
- spec/puppet-lint/plugins/check_resources/ensure_not_symlink_target_spec.rb
|
119
|
-
- spec/puppet-lint/plugins/check_resources/file_mode_spec.rb
|
120
|
-
- spec/puppet-lint/plugins/check_resources/unquoted_file_mode_spec.rb
|
121
|
-
- spec/puppet-lint/plugins/check_resources/unquoted_resource_title_spec.rb
|
122
|
-
- spec/puppet-lint/plugins/check_strings/double_quoted_strings_spec.rb
|
123
|
-
- spec/puppet-lint/plugins/check_strings/only_variable_string_spec.rb
|
124
|
-
- spec/puppet-lint/plugins/check_strings/puppet_url_without_modules_spec.rb
|
125
|
-
- spec/puppet-lint/plugins/check_strings/quoted_booleans_spec.rb
|
126
|
-
- spec/puppet-lint/plugins/check_strings/single_quote_string_with_variables_spec.rb
|
127
|
-
- spec/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb
|
128
|
-
- spec/puppet-lint/plugins/check_variables/variable_contains_dash_spec.rb
|
129
|
-
- spec/puppet-lint/plugins/check_variables/variable_is_lowercase_spec.rb
|
130
|
-
- spec/puppet-lint/plugins/check_whitespace/140chars_spec.rb
|
131
|
-
- spec/puppet-lint/plugins/check_whitespace/2sp_soft_tabs_spec.rb
|
132
|
-
- spec/puppet-lint/plugins/check_whitespace/80chars_spec.rb
|
133
|
-
- spec/puppet-lint/plugins/check_whitespace/arrow_alignment_spec.rb
|
134
|
-
- spec/puppet-lint/plugins/check_whitespace/hard_tabs_spec.rb
|
135
|
-
- spec/puppet-lint/plugins/check_whitespace/trailing_whitespace_spec.rb
|
136
|
-
- spec/puppet-lint_spec.rb
|
137
98
|
- spec/spec_helper.rb
|
138
|
-
|
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
|
147
|
+
homepage: https://github.com/puppetlabs/puppet-lint/
|
139
148
|
licenses:
|
140
149
|
- MIT
|
141
150
|
metadata: {}
|
142
|
-
post_install_message:
|
151
|
+
post_install_message:
|
143
152
|
rdoc_options: []
|
144
153
|
require_paths:
|
145
154
|
- lib
|
@@ -147,75 +156,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
156
|
requirements:
|
148
157
|
- - ">="
|
149
158
|
- !ruby/object:Gem::Version
|
150
|
-
version: '
|
159
|
+
version: '2.7'
|
151
160
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
161
|
requirements:
|
153
162
|
- - ">="
|
154
163
|
- !ruby/object:Gem::Version
|
155
164
|
version: '0'
|
156
165
|
requirements: []
|
157
|
-
|
158
|
-
|
159
|
-
signing_key:
|
166
|
+
rubygems_version: 3.1.6
|
167
|
+
signing_key:
|
160
168
|
specification_version: 4
|
161
169
|
summary: Ensure your Puppet manifests conform with the Puppetlabs style guide
|
162
|
-
test_files:
|
163
|
-
- spec/fixtures/test/manifests/fail.pp
|
164
|
-
- spec/fixtures/test/manifests/ignore.pp
|
165
|
-
- spec/fixtures/test/manifests/ignore_multiple_block.pp
|
166
|
-
- spec/fixtures/test/manifests/ignore_multiple_line.pp
|
167
|
-
- spec/fixtures/test/manifests/ignore_reason.pp
|
168
|
-
- spec/fixtures/test/manifests/init.pp
|
169
|
-
- spec/fixtures/test/manifests/malformed.pp
|
170
|
-
- spec/fixtures/test/manifests/mismatched_control_comment.pp
|
171
|
-
- spec/fixtures/test/manifests/two_warnings.pp
|
172
|
-
- spec/fixtures/test/manifests/unterminated_control_comment.pp
|
173
|
-
- spec/fixtures/test/manifests/url_interpolation.pp
|
174
|
-
- spec/fixtures/test/manifests/warning.pp
|
175
|
-
- spec/puppet-lint/bin_spec.rb
|
176
|
-
- spec/puppet-lint/checks_spec.rb
|
177
|
-
- spec/puppet-lint/configuration_spec.rb
|
178
|
-
- spec/puppet-lint/data_spec.rb
|
179
|
-
- spec/puppet-lint/ignore_overrides_spec.rb
|
180
|
-
- spec/puppet-lint/lexer/string_slurper_spec.rb
|
181
|
-
- spec/puppet-lint/lexer/token_spec.rb
|
182
|
-
- spec/puppet-lint/lexer_spec.rb
|
183
|
-
- spec/puppet-lint/plugins/check_classes/arrow_on_right_operand_line_spec.rb
|
184
|
-
- spec/puppet-lint/plugins/check_classes/autoloader_layout_spec.rb
|
185
|
-
- spec/puppet-lint/plugins/check_classes/class_inherits_from_params_class_spec.rb
|
186
|
-
- spec/puppet-lint/plugins/check_classes/code_on_top_scope_spec.rb
|
187
|
-
- spec/puppet-lint/plugins/check_classes/inherits_across_namespaces_spec.rb
|
188
|
-
- spec/puppet-lint/plugins/check_classes/name_contains_uppercase_spec.rb
|
189
|
-
- spec/puppet-lint/plugins/check_classes/names_containing_dash_spec.rb
|
190
|
-
- spec/puppet-lint/plugins/check_classes/nested_classes_or_defines_spec.rb
|
191
|
-
- spec/puppet-lint/plugins/check_classes/parameter_order_spec.rb
|
192
|
-
- spec/puppet-lint/plugins/check_classes/right_to_left_relationship_spec.rb
|
193
|
-
- spec/puppet-lint/plugins/check_classes/variable_scope_spec.rb
|
194
|
-
- spec/puppet-lint/plugins/check_comments/slash_comments_spec.rb
|
195
|
-
- spec/puppet-lint/plugins/check_comments/star_comments_spec.rb
|
196
|
-
- spec/puppet-lint/plugins/check_conditionals/case_without_default_spec.rb
|
197
|
-
- spec/puppet-lint/plugins/check_conditionals/selector_inside_resource_spec.rb
|
198
|
-
- spec/puppet-lint/plugins/check_documentation/documentation_spec.rb
|
199
|
-
- spec/puppet-lint/plugins/check_nodes/unquoted_node_name_spec.rb
|
200
|
-
- spec/puppet-lint/plugins/check_resources/duplicate_params_spec.rb
|
201
|
-
- spec/puppet-lint/plugins/check_resources/ensure_first_param_spec.rb
|
202
|
-
- spec/puppet-lint/plugins/check_resources/ensure_not_symlink_target_spec.rb
|
203
|
-
- spec/puppet-lint/plugins/check_resources/file_mode_spec.rb
|
204
|
-
- spec/puppet-lint/plugins/check_resources/unquoted_file_mode_spec.rb
|
205
|
-
- spec/puppet-lint/plugins/check_resources/unquoted_resource_title_spec.rb
|
206
|
-
- spec/puppet-lint/plugins/check_strings/double_quoted_strings_spec.rb
|
207
|
-
- spec/puppet-lint/plugins/check_strings/only_variable_string_spec.rb
|
208
|
-
- spec/puppet-lint/plugins/check_strings/puppet_url_without_modules_spec.rb
|
209
|
-
- spec/puppet-lint/plugins/check_strings/quoted_booleans_spec.rb
|
210
|
-
- spec/puppet-lint/plugins/check_strings/single_quote_string_with_variables_spec.rb
|
211
|
-
- spec/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb
|
212
|
-
- spec/puppet-lint/plugins/check_variables/variable_contains_dash_spec.rb
|
213
|
-
- spec/puppet-lint/plugins/check_variables/variable_is_lowercase_spec.rb
|
214
|
-
- spec/puppet-lint/plugins/check_whitespace/140chars_spec.rb
|
215
|
-
- spec/puppet-lint/plugins/check_whitespace/2sp_soft_tabs_spec.rb
|
216
|
-
- spec/puppet-lint/plugins/check_whitespace/80chars_spec.rb
|
217
|
-
- spec/puppet-lint/plugins/check_whitespace/arrow_alignment_spec.rb
|
218
|
-
- spec/puppet-lint/plugins/check_whitespace/hard_tabs_spec.rb
|
219
|
-
- spec/puppet-lint/plugins/check_whitespace/trailing_whitespace_spec.rb
|
220
|
-
- spec/puppet-lint_spec.rb
|
221
|
-
- spec/spec_helper.rb
|
170
|
+
test_files: []
|