puppet-lint-manifest_whitespace-check 0.0.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3d91ac8fb2a3196f56aa2e30c76acdfa62f1b318
4
- data.tar.gz: a8a98d0f46aada6c955650901e3fe9cdec2b565d
2
+ SHA256:
3
+ metadata.gz: 6bdb4da2f82834a517b3f17c513548157e9b09e316dc1ef23ce29f0deabd0874
4
+ data.tar.gz: cfea1846383662116b388a3257708cf9e1c441c0c9eae86df6c4982442a062bc
5
5
  SHA512:
6
- metadata.gz: f1bd0c7f396ce8307204b2fbb4b843cf570fecc32181a0c1ddf6095f60642f3518a072508d496d5b3af9fd84581180340736b1f212e41be3b64d3d9253807d1d
7
- data.tar.gz: d3484a2404a91a7d558a1a8fb57c95e42f26abd43a8db0d5ba98cb6bdaefea39048b353cdf269dac72df4eeaca873759775117548d52c65c9c48088042798dcb
6
+ metadata.gz: 895dd3bc23d6deb63a6a1e9837dec0ae2ab735859ac50ecc6e5d93d1a594f5b6709a53f2b139e291e0ec82a27e1b71eaf158dd278ec2b773e671275e4ba0acff
7
+ data.tar.gz: 8c1fed89f0a3e49872288f298a36847b561a4a0aaacee85aa0b30673c3ac4aceb92a4e9ee59f32a00a88965f5d51a0cae7ee793a5fc287fa6a4613f26de620fc
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ PuppetLint.new_check(:manifest_whitespace_inherits_name_single_space_before) do
4
+ def check
5
+ tokens.select { |token| token.type == :INHERITS }.each do |inherits_token|
6
+ name_token = inherits_token.next_token_of(:NAME)
7
+ next unless name_token
8
+
9
+ next_token = inherits_token.next_token
10
+ next unless tokens.index(name_token) != tokens.index(inherits_token) + 2 ||
11
+ !is_single_space(next_token)
12
+
13
+ notify(
14
+ :error,
15
+ message: 'there should be a single space between the inherits statement and the name',
16
+ line: next_token.line,
17
+ column: next_token.column,
18
+ token: next_token,
19
+ )
20
+ end
21
+ end
22
+
23
+ def fix(problem)
24
+ raise PuppetLint::NoFix if problem[:token].type != :WHITESPACE
25
+
26
+ problem[:token].value = ' '
27
+ end
28
+ end
29
+
30
+ PuppetLint.new_check(:manifest_whitespace_inherits_name_single_space_after) do
31
+ def check
32
+ tokens.select { |token| token.type == :INHERITS }.each do |inherits_token|
33
+ name_token = inherits_token.next_token_of(:NAME)
34
+ next unless name_token
35
+
36
+ next_token = name_token.next_token
37
+ bracket_token = name_token.next_token_of(%i[LPAREN LBRACE])
38
+ next unless tokens.index(name_token) != tokens.index(bracket_token) - 2 ||
39
+ !is_single_space(next_token)
40
+
41
+ notify(
42
+ :error,
43
+ message: 'there should be a single space between the class or resource name and the first bracket',
44
+ line: next_token.line,
45
+ column: next_token.column,
46
+ token: next_token,
47
+ )
48
+ end
49
+ end
50
+
51
+ def fix(problem)
52
+ token = problem[:token]
53
+ bracket_token = token.prev_token.next_token_of(%i[LPAREN LBRACE])
54
+
55
+ if token == bracket_token
56
+ add_token(tokens.index(bracket_token), new_single_space)
57
+ return
58
+ end
59
+
60
+ while token != bracket_token
61
+ unless %i[WHITESPACE INDENT NEWLINE].include?(token.type)
62
+ raise PuppetLint::NoFix
63
+ end
64
+
65
+ remove_token(token)
66
+ token = token.next_token
67
+ end
68
+
69
+ add_token(tokens.index(bracket_token), new_single_space)
70
+ end
71
+ end
@@ -6,7 +6,7 @@ PuppetLint.new_check(:manifest_whitespace_class_opening_curly_brace) do
6
6
  class_token = class_idx[:tokens].first
7
7
  bracket_token = class_token.next_token_of(:LBRACE)
8
8
  prev_token = bracket_token.prev_token
9
- prev_code_token = bracket_token.prev_token_of(:RPAREN)
9
+ prev_code_token = bracket_token.prev_token_of(%i[RPAREN NAME])
10
10
 
11
11
  next unless prev_code_token
12
12
  next unless tokens.index(prev_code_token) != tokens.index(bracket_token) - 2 ||
@@ -24,7 +24,7 @@ PuppetLint.new_check(:manifest_whitespace_class_opening_curly_brace) do
24
24
 
25
25
  def fix(problem)
26
26
  token = problem[:token]
27
- prev_code_token = token.prev_token_of(:RPAREN).next_token
27
+ prev_code_token = token.prev_token_of(%i[RPAREN NAME]).next_token
28
28
 
29
29
  while token != prev_code_token
30
30
  unless %i[WHITESPACE INDENT NEWLINE].include?(prev_code_token.type)
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ PuppetLint.new_check(:manifest_whitespace_two_empty_lines) do
4
+ def check
5
+ tokens.select { |token| token.type == :NEWLINE }.each do |token|
6
+ prev_newline = token.prev_token_of(:NEWLINE)
7
+ next unless prev_newline
8
+
9
+ prev_newline = prev_newline.prev_token_of(:NEWLINE)
10
+ next unless prev_newline
11
+
12
+ good_to_go = true
13
+ tokens.index(prev_newline).upto(tokens.index(token)).each do |between_token_idx|
14
+ unless %i[NEWLINE WHITESPACE INDENT].include?(tokens[between_token_idx].type)
15
+ good_to_go = false
16
+ break
17
+ end
18
+ end
19
+ next unless good_to_go
20
+
21
+ notify(
22
+ :error,
23
+ message: 'there should be no two consecutive empty lines',
24
+ line: token.line,
25
+ column: token.column,
26
+ token: token,
27
+ )
28
+ end
29
+ end
30
+
31
+ def fix(problem)
32
+ token = problem[:token]
33
+ remove_token(token)
34
+ end
35
+ end
@@ -556,4 +556,91 @@ describe 'manifest_whitespace_class_opening_curly_brace' do
556
556
  end
557
557
  end
558
558
  end
559
+
560
+ context 'with good inherits' do
561
+ let(:code) do
562
+ <<~EOF
563
+ # example
564
+ #
565
+ # Main class, includes all other classes.
566
+ #
567
+
568
+ class example (
569
+ String $content,
570
+ ) inherits other::example {
571
+ class { 'example2':
572
+ param1 => 'value1',
573
+ }
574
+ }
575
+ EOF
576
+ end
577
+
578
+ context 'with fix disabled' do
579
+ it 'should detect no problem' do
580
+ expect(problems).to have(0).problems
581
+ end
582
+ end
583
+ end
584
+
585
+ context 'with bad inherits' do
586
+ let(:code) do
587
+ <<~EOF
588
+ # example
589
+ #
590
+ # Main class, includes all other classes.
591
+ #
592
+
593
+ class example (
594
+ String $content,
595
+ ) inherits other::example{
596
+ class { 'example2':
597
+ param1 => 'value1',
598
+ }
599
+ }
600
+ EOF
601
+ end
602
+
603
+ context 'with fix disabled' do
604
+ it 'should detect a single problem' do
605
+ expect(problems).to have(1).problem
606
+ end
607
+
608
+ it 'should create a error' do
609
+ expect(problems).to contain_error(opening_curly_brace_same_line_msg).on_line(8).in_column(26)
610
+ end
611
+ end
612
+
613
+ context 'with fix enabled' do
614
+ before do
615
+ PuppetLint.configuration.fix = true
616
+ end
617
+
618
+ after do
619
+ PuppetLint.configuration.fix = false
620
+ end
621
+
622
+ it 'should detect a missing space' do
623
+ expect(problems).to have(1).problem
624
+ end
625
+
626
+ it 'should add the space' do
627
+ expect(manifest).to eq(
628
+ <<~EOF,
629
+ # example
630
+ #
631
+ # Main class, includes all other classes.
632
+ #
633
+
634
+ class example (
635
+ String $content,
636
+ ) inherits other::example {
637
+ class { 'example2':
638
+ param1 => 'value1',
639
+ }
640
+ }
641
+ EOF
642
+ )
643
+ end
644
+ end
645
+ end
559
646
  end
@@ -0,0 +1,308 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe 'manifest_whitespace_inherits_name_single_space_before' do
6
+ let(:single_space_msg) { 'there should be a single space between the inherits statement and the name' }
7
+
8
+ context 'with two spaces' do
9
+ let(:code) do
10
+ <<~EOF
11
+ # example
12
+ #
13
+ # Main class, includes all other classes.
14
+ #
15
+
16
+ class example inherits other::example {
17
+ class { 'example2':
18
+ param1 => 'value1',
19
+ }
20
+ }
21
+ EOF
22
+ end
23
+
24
+ context 'with fix disabled' do
25
+ it 'should detect a single problem' do
26
+ expect(problems).to have(1).problem
27
+ end
28
+
29
+ it 'should create a error' do
30
+ expect(problems).to contain_error(single_space_msg).on_line(6).in_column(23)
31
+ end
32
+ end
33
+
34
+ context 'with fix enabled' do
35
+ before do
36
+ PuppetLint.configuration.fix = true
37
+ end
38
+
39
+ after do
40
+ PuppetLint.configuration.fix = false
41
+ end
42
+
43
+ it 'should detect a single problem' do
44
+ expect(problems).to have(1).problem
45
+ end
46
+
47
+ it 'should fix the manifest' do
48
+ expect(problems).to contain_fixed(single_space_msg)
49
+ end
50
+
51
+ it 'should fix the space' do
52
+ expect(manifest).to eq(
53
+ <<~EOF,
54
+ # example
55
+ #
56
+ # Main class, includes all other classes.
57
+ #
58
+
59
+ class example inherits other::example {
60
+ class { 'example2':
61
+ param1 => 'value1',
62
+ }
63
+ }
64
+ EOF
65
+ )
66
+ end
67
+ end
68
+ end
69
+ end
70
+
71
+ describe 'manifest_whitespace_inherits_name_single_space_after' do
72
+ let(:single_space_msg) { 'there should be a single space between the class or resource name and the first bracket' }
73
+
74
+ context 'with no spaces' do
75
+ let(:code) do
76
+ <<~EOF
77
+ # example
78
+ #
79
+ # Main class, includes all other classes.
80
+ #
81
+
82
+ class example inherits other::example{
83
+ class { 'example2':
84
+ param1 => 'value1',
85
+ }
86
+ }
87
+ EOF
88
+ end
89
+
90
+ context 'with fix disabled' do
91
+ it 'should detect a single problem' do
92
+ expect(problems).to have(1).problem
93
+ end
94
+
95
+ it 'should create a error' do
96
+ expect(problems).to contain_error(single_space_msg).on_line(6).in_column(38)
97
+ end
98
+ end
99
+
100
+ context 'with fix enabled' do
101
+ before do
102
+ PuppetLint.configuration.fix = true
103
+ end
104
+
105
+ after do
106
+ PuppetLint.configuration.fix = false
107
+ end
108
+
109
+ it 'should detect a single problem' do
110
+ expect(problems).to have(1).problem
111
+ end
112
+
113
+ it 'should fix the manifest' do
114
+ expect(problems).to contain_fixed(single_space_msg)
115
+ end
116
+
117
+ it 'should fix the newline' do
118
+ expect(manifest).to eq(
119
+ <<~EOF,
120
+ # example
121
+ #
122
+ # Main class, includes all other classes.
123
+ #
124
+
125
+ class example inherits other::example {
126
+ class { 'example2':
127
+ param1 => 'value1',
128
+ }
129
+ }
130
+ EOF
131
+ )
132
+ end
133
+ end
134
+ end
135
+
136
+ context 'with two spaces' do
137
+ let(:code) do
138
+ <<~EOF
139
+ # example
140
+ #
141
+ # Main class, includes all other classes.
142
+ #
143
+
144
+ class example inherits other::example {
145
+ class { 'example2':
146
+ param1 => 'value1',
147
+ }
148
+ }
149
+ EOF
150
+ end
151
+
152
+ context 'with fix disabled' do
153
+ it 'should detect a single problem' do
154
+ expect(problems).to have(1).problem
155
+ end
156
+
157
+ it 'should create a error' do
158
+ expect(problems).to contain_error(single_space_msg).on_line(6).in_column(38)
159
+ end
160
+ end
161
+
162
+ context 'with fix enabled' do
163
+ before do
164
+ PuppetLint.configuration.fix = true
165
+ end
166
+
167
+ after do
168
+ PuppetLint.configuration.fix = false
169
+ end
170
+
171
+ it 'should detect a single problem' do
172
+ expect(problems).to have(1).problem
173
+ end
174
+
175
+ it 'should fix the manifest' do
176
+ expect(problems).to contain_fixed(single_space_msg)
177
+ end
178
+
179
+ it 'should fix the space' do
180
+ expect(manifest).to eq(
181
+ <<~EOF,
182
+ # example
183
+ #
184
+ # Main class, includes all other classes.
185
+ #
186
+
187
+ class example inherits other::example {
188
+ class { 'example2':
189
+ param1 => 'value1',
190
+ }
191
+ }
192
+ EOF
193
+ )
194
+ end
195
+ end
196
+ end
197
+
198
+ context 'with newline' do
199
+ let(:code) do
200
+ <<~EOF
201
+ # example
202
+ #
203
+ # Main class, includes all other classes.
204
+ #
205
+
206
+ class example inherits other::example
207
+
208
+
209
+ {
210
+ class { 'example2':
211
+ param1 => 'value1',
212
+ }
213
+ }
214
+ EOF
215
+ end
216
+
217
+ context 'with fix disabled' do
218
+ it 'should detect a single problem' do
219
+ expect(problems).to have(1).problem
220
+ end
221
+
222
+ it 'should create a error' do
223
+ expect(problems).to contain_error(single_space_msg).on_line(6).in_column(38)
224
+ end
225
+ end
226
+
227
+ context 'with fix enabled' do
228
+ before do
229
+ PuppetLint.configuration.fix = true
230
+ end
231
+
232
+ after do
233
+ PuppetLint.configuration.fix = false
234
+ end
235
+
236
+ it 'should detect a single problem' do
237
+ expect(problems).to have(1).problem
238
+ end
239
+
240
+ it 'should fix the manifest' do
241
+ expect(problems).to contain_fixed(single_space_msg)
242
+ end
243
+
244
+ it 'should fix the newline' do
245
+ expect(manifest).to eq(
246
+ <<~EOF,
247
+ # example
248
+ #
249
+ # Main class, includes all other classes.
250
+ #
251
+
252
+ class example inherits other::example {
253
+ class { 'example2':
254
+ param1 => 'value1',
255
+ }
256
+ }
257
+ EOF
258
+ )
259
+ end
260
+ end
261
+ end
262
+
263
+ context 'with comment' do
264
+ let(:code) do
265
+ <<~EOF
266
+ # example
267
+ #
268
+ # Main class, includes all other classes.
269
+ #
270
+
271
+ class example inherits other::example # the class
272
+ {
273
+ class { 'example2':
274
+ param1 => 'value1',
275
+ }
276
+ }
277
+ EOF
278
+ end
279
+
280
+ context 'with fix disabled' do
281
+ it 'should detect a single problem' do
282
+ expect(problems).to have(1).problem
283
+ end
284
+
285
+ it 'should create a error' do
286
+ expect(problems).to contain_error(single_space_msg).on_line(6).in_column(38)
287
+ end
288
+ end
289
+
290
+ context 'with fix enabled' do
291
+ before do
292
+ PuppetLint.configuration.fix = true
293
+ end
294
+
295
+ after do
296
+ PuppetLint.configuration.fix = false
297
+ end
298
+
299
+ it 'should detect a single problem' do
300
+ expect(problems).to have(1).problem
301
+ end
302
+
303
+ it 'should not fix the manifest' do
304
+ expect(problems).to contain_error(single_space_msg).on_line(6).in_column(38)
305
+ end
306
+ end
307
+ end
308
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe 'manifest_whitespace_two_empty_lines' do
6
+ let(:single_space_msg) { 'there should be no two consecutive empty lines' }
7
+
8
+ context 'with two spaces' do
9
+ let(:code) do
10
+ <<~EOF
11
+ class { 'example2':
12
+ param1 => 'value1',
13
+
14
+
15
+ param2 => 'value2',
16
+ }
17
+ EOF
18
+ end
19
+
20
+ context 'with fix disabled' do
21
+ it 'should detect a single problem' do
22
+ expect(problems).to have(1).problem
23
+ end
24
+
25
+ it 'should create a error' do
26
+ expect(problems).to contain_error(single_space_msg).on_line(4).in_column(1)
27
+ end
28
+ end
29
+
30
+ context 'with fix enabled' do
31
+ before do
32
+ PuppetLint.configuration.fix = true
33
+ end
34
+
35
+ after do
36
+ PuppetLint.configuration.fix = false
37
+ end
38
+
39
+ it 'should detect a single problem' do
40
+ expect(problems).to have(1).problem
41
+ end
42
+
43
+ it 'should fix the manifest' do
44
+ expect(problems).to contain_fixed(single_space_msg)
45
+ end
46
+
47
+ it 'should fix the space' do
48
+ expect(manifest).to eq(
49
+ <<~EOF,
50
+ class { 'example2':
51
+ param1 => 'value1',
52
+
53
+ param2 => 'value2',
54
+ }
55
+ EOF
56
+ )
57
+ end
58
+ end
59
+ end
60
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint-manifest_whitespace-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jo Vandeginste
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-19 00:00:00.000000000 Z
11
+ date: 2020-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puppet-lint
@@ -31,89 +31,89 @@ dependencies:
31
31
  - !ruby/object:Gem::Version
32
32
  version: '3.0'
33
33
  - !ruby/object:Gem::Dependency
34
- name: rspec
34
+ name: coveralls
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '3.0'
39
+ version: '0'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: '3.0'
46
+ version: '0'
47
47
  - !ruby/object:Gem::Dependency
48
- name: rspec-its
48
+ name: mime-types
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '1.0'
53
+ version: '0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: '1.0'
60
+ version: '0'
61
61
  - !ruby/object:Gem::Dependency
62
- name: rspec-collection_matchers
62
+ name: rake
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: '1.0'
67
+ version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - "~>"
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: '1.0'
74
+ version: '0'
75
75
  - !ruby/object:Gem::Dependency
76
- name: mime-types
76
+ name: rspec
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ">="
79
+ - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '0'
81
+ version: '3.0'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ">="
86
+ - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '0'
88
+ version: '3.0'
89
89
  - !ruby/object:Gem::Dependency
90
- name: coveralls
90
+ name: rspec-collection_matchers
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ">="
93
+ - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '0'
95
+ version: '1.0'
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - ">="
100
+ - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '0'
102
+ version: '1.0'
103
103
  - !ruby/object:Gem::Dependency
104
- name: rake
104
+ name: rspec-its
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ">="
107
+ - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '0'
109
+ version: '1.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ">="
114
+ - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '0'
116
+ version: '1.0'
117
117
  description: " A new check for puppet-lint that validates generic whitespace issues
118
118
  in manifests.\n"
119
119
  email: jo.vandeginste@kuleuven.be
@@ -124,14 +124,18 @@ files:
124
124
  - LICENSE
125
125
  - README.md
126
126
  - lib/puppet-lint/plugins/check_manifest_whitespace_arrow_spaces.rb
127
+ - lib/puppet-lint/plugins/check_manifest_whitespace_class_inherits_single_space.rb
127
128
  - lib/puppet-lint/plugins/check_manifest_whitespace_class_name_single_space.rb
128
129
  - lib/puppet-lint/plugins/check_manifest_whitespace_class_opening_curly_brace.rb
130
+ - lib/puppet-lint/plugins/check_manifest_whitespace_empty_lines.rb
129
131
  - lib/puppet-lint/plugins/check_manifest_whitespace_newline_beginning_of_file.rb
130
132
  - lib/puppet-lint/plugins/check_manifest_whitespace_newline_end_of_file.rb
131
133
  - lib/puppet-lint/plugins/tools.rb
132
134
  - spec/puppet-lint/plugins/manifest_whitespace_arrow_spaces_spec.rb
133
135
  - spec/puppet-lint/plugins/manifest_whitespace_class_header_spec.rb
136
+ - spec/puppet-lint/plugins/manifest_whitespace_class_inherits_spec.rb
134
137
  - spec/puppet-lint/plugins/manifest_whitespace_double_newline_end_of_file_spec.rb
138
+ - spec/puppet-lint/plugins/manifest_whitespace_double_newline_spec.rb
135
139
  - spec/puppet-lint/plugins/manifest_whitespace_missing_newline_end_of_file_spec.rb
136
140
  - spec/puppet-lint/plugins/manifest_whitespace_newline_begin_of_file_spec.rb
137
141
  - spec/spec_helper.rb
@@ -155,14 +159,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
159
  version: '0'
156
160
  requirements: []
157
161
  rubyforge_project:
158
- rubygems_version: 2.6.14
162
+ rubygems_version: 2.7.7
159
163
  signing_key:
160
164
  specification_version: 4
161
165
  summary: A puppet-lint check to validate whitespace in manifests
162
166
  test_files:
167
+ - spec/spec_helper.rb
168
+ - spec/puppet-lint/plugins/manifest_whitespace_class_inherits_spec.rb
169
+ - spec/puppet-lint/plugins/manifest_whitespace_missing_newline_end_of_file_spec.rb
170
+ - spec/puppet-lint/plugins/manifest_whitespace_newline_begin_of_file_spec.rb
163
171
  - spec/puppet-lint/plugins/manifest_whitespace_class_header_spec.rb
164
172
  - spec/puppet-lint/plugins/manifest_whitespace_double_newline_end_of_file_spec.rb
165
- - spec/puppet-lint/plugins/manifest_whitespace_missing_newline_end_of_file_spec.rb
173
+ - spec/puppet-lint/plugins/manifest_whitespace_double_newline_spec.rb
166
174
  - spec/puppet-lint/plugins/manifest_whitespace_arrow_spaces_spec.rb
167
- - spec/puppet-lint/plugins/manifest_whitespace_newline_begin_of_file_spec.rb
168
- - spec/spec_helper.rb