puppet-lint 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/puppet-lint.rb +1 -3
- data/lib/puppet-lint/configuration.rb +7 -6
- data/lib/puppet-lint/plugin.rb +14 -24
- data/lib/puppet-lint/plugins/check_classes.rb +14 -10
- data/lib/puppet-lint/plugins/check_documentation.rb +10 -14
- data/lib/puppet-lint/plugins/check_resources.rb +56 -73
- data/lib/puppet-lint/version.rb +1 -1
- data/spec/puppet-lint/configuration_spec.rb +4 -1
- data/spec/puppet-lint/plugins/check_classes/autoloader_layout_spec.rb +51 -0
- data/spec/puppet-lint/plugins/check_classes/inherits_across_namespaces_spec.rb +23 -0
- data/spec/puppet-lint/plugins/check_classes/names_containing_dash_spec.rb +45 -0
- data/spec/puppet-lint/plugins/check_classes/nested_classes_or_defines_spec.rb +71 -0
- data/spec/puppet-lint/plugins/check_classes/parameter_order_spec.rb +67 -0
- data/spec/puppet-lint/plugins/check_classes/parameterised_classes_spec.rb +43 -0
- data/spec/puppet-lint/plugins/check_classes/right_to_left_relationship_spec.rb +23 -0
- data/spec/puppet-lint/plugins/check_classes/variable_scope_spec.rb +93 -0
- data/spec/puppet-lint/plugins/check_comments/slash_comments_spec.rb +16 -0
- data/spec/puppet-lint/plugins/check_comments/star_comments_spec.rb +19 -0
- data/spec/puppet-lint/plugins/{check_conditionals_spec.rb → check_conditionals/case_without_default_spec.rb} +1 -39
- data/spec/puppet-lint/plugins/check_conditionals/selector_inside_resource_spec.rb +33 -0
- data/spec/puppet-lint/plugins/{check_documentation_spec.rb → check_documentation/documentation_spec.rb} +1 -9
- data/spec/puppet-lint/plugins/check_resources/duplicate_params_spec.rb +23 -0
- data/spec/puppet-lint/plugins/check_resources/ensure_first_param_spec.rb +43 -0
- data/spec/puppet-lint/plugins/check_resources/ensure_not_symlink_target_spec.rb +26 -0
- data/spec/puppet-lint/plugins/check_resources/file_mode_spec.rb +43 -0
- data/spec/puppet-lint/plugins/check_resources/unquoted_file_mode_spec.rb +11 -0
- data/spec/puppet-lint/plugins/check_resources/unquoted_resource_title_spec.rb +110 -0
- data/spec/puppet-lint/plugins/check_strings/double_quoted_strings_spec.rb +83 -0
- data/spec/puppet-lint/plugins/check_strings/only_variable_string_spec.rb +16 -0
- data/spec/puppet-lint/plugins/check_strings/quoted_booleans_spec.rb +55 -0
- data/spec/puppet-lint/plugins/check_strings/single_quote_string_with_variables_spec.rb +16 -0
- data/spec/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb +29 -0
- data/spec/puppet-lint/plugins/{check_variables_spec.rb → check_variables/variable_contains_dash_spec.rb} +1 -9
- data/spec/puppet-lint/plugins/check_whitespace/2sp_soft_tabs_spec.rb +20 -0
- data/spec/puppet-lint/plugins/check_whitespace/80chars_spec.rb +38 -0
- data/spec/puppet-lint/plugins/{check_whitespace_spec.rb → check_whitespace/arrow_alignment_spec.rb} +1 -86
- data/spec/puppet-lint/plugins/check_whitespace/hard_tabs_spec.rb +16 -0
- data/spec/puppet-lint/plugins/check_whitespace/trailing_whitespace_spec.rb +16 -0
- data/spec/spec_helper.rb +17 -0
- metadata +122 -92
- data/spec/puppet-lint/plugins/check_classes_spec.rb +0 -390
- data/spec/puppet-lint/plugins/check_comments_spec.rb +0 -40
- data/spec/puppet-lint/plugins/check_resources_spec.rb +0 -249
- data/spec/puppet-lint/plugins/check_strings_spec.rb +0 -175
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'variables_not_enclosed' do
|
4
|
+
describe 'variable not enclosed in {}' do
|
5
|
+
let(:code) { '" $gronk"' }
|
6
|
+
|
7
|
+
its(:problems) {
|
8
|
+
should only_have_problem({
|
9
|
+
:kind => :warning,
|
10
|
+
:message => 'variable not enclosed in {}',
|
11
|
+
:linenumber => 1,
|
12
|
+
:column => 3,
|
13
|
+
})
|
14
|
+
}
|
15
|
+
end
|
16
|
+
|
17
|
+
describe 'variable not enclosed in {} after many tokens' do
|
18
|
+
let(:code) { ("'groovy'\n" * 20) + '" $gronk"' }
|
19
|
+
|
20
|
+
its(:problems) {
|
21
|
+
should only_have_problem({
|
22
|
+
:kind => :warning,
|
23
|
+
:message => 'variable not enclosed in {}',
|
24
|
+
:linenumber => 21,
|
25
|
+
:column => 3,
|
26
|
+
})
|
27
|
+
}
|
28
|
+
end
|
29
|
+
end
|
@@ -1,14 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
4
|
-
subject do
|
5
|
-
klass = described_class.new
|
6
|
-
fileinfo = {}
|
7
|
-
fileinfo[:fullpath] = defined?(fullpath).nil? ? '' : fullpath
|
8
|
-
klass.run(fileinfo, code)
|
9
|
-
klass
|
10
|
-
end
|
11
|
-
|
3
|
+
describe 'variable_contains_dash' do
|
12
4
|
describe 'a variable containing a dash' do
|
13
5
|
let(:code) { '$foo-bar' }
|
14
6
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe '2sp_soft_tabs' do
|
4
|
+
describe 'line indented by 3 spaces' do
|
5
|
+
let(:code) { "
|
6
|
+
file { 'foo':
|
7
|
+
foo => bar,
|
8
|
+
}"
|
9
|
+
}
|
10
|
+
|
11
|
+
its(:problems) {
|
12
|
+
should have_problem({
|
13
|
+
:kind => :error,
|
14
|
+
:message => 'two-space soft tabs not used',
|
15
|
+
:linenumber => 3,
|
16
|
+
:column => 1,
|
17
|
+
})
|
18
|
+
}
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe '80chars' do
|
5
|
+
describe 'file resource with a source line > 80c' do
|
6
|
+
let(:code) { "
|
7
|
+
file {
|
8
|
+
source => 'puppet:///modules/certificates/etc/ssl/private/wildcard.example.com.crt',
|
9
|
+
}"
|
10
|
+
}
|
11
|
+
|
12
|
+
its(:problems) { should be_empty }
|
13
|
+
end
|
14
|
+
|
15
|
+
describe 'length of lines with UTF-8 characters' do
|
16
|
+
let(:code) { "
|
17
|
+
# ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
18
|
+
# ┃ Configuration ┃
|
19
|
+
# ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
|
20
|
+
}
|
21
|
+
its(:problems) {
|
22
|
+
should be_empty
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
describe '81 character line' do
|
27
|
+
let(:code) { 'a' * 81 }
|
28
|
+
|
29
|
+
its(:problems) {
|
30
|
+
should have_problem({
|
31
|
+
:kind => :warning,
|
32
|
+
:message => 'line has more than 80 characters',
|
33
|
+
:linenumber => 1,
|
34
|
+
:column => 80,
|
35
|
+
})
|
36
|
+
}
|
37
|
+
end
|
38
|
+
end
|
data/spec/puppet-lint/plugins/{check_whitespace_spec.rb → check_whitespace/arrow_alignment_spec.rb}
RENAMED
@@ -1,13 +1,6 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
require 'spec_helper'
|
3
2
|
|
4
|
-
describe
|
5
|
-
subject do
|
6
|
-
klass = described_class.new
|
7
|
-
klass.run(defined?(fullpath).nil? ? {:fullpath => ''} : {:fullpath => fullpath}, code)
|
8
|
-
klass
|
9
|
-
end
|
10
|
-
|
3
|
+
describe 'arrow_alignment' do
|
11
4
|
describe 'selectors inside a resource' do
|
12
5
|
let(:code) { "
|
13
6
|
file { 'foo':
|
@@ -37,16 +30,6 @@ describe PuppetLint::Plugins::CheckWhitespace do
|
|
37
30
|
its(:problems) { should be_empty }
|
38
31
|
end
|
39
32
|
|
40
|
-
describe 'file resource with a source line > 80c' do
|
41
|
-
let(:code) { "
|
42
|
-
file {
|
43
|
-
source => 'puppet:///modules/certificates/etc/ssl/private/wildcard.example.com.crt',
|
44
|
-
}"
|
45
|
-
}
|
46
|
-
|
47
|
-
its(:problems) { should be_empty }
|
48
|
-
end
|
49
|
-
|
50
33
|
describe 'selector inside a resource' do
|
51
34
|
let(:code) { "
|
52
35
|
ensure => $ensure ? {
|
@@ -76,18 +59,6 @@ describe PuppetLint::Plugins::CheckWhitespace do
|
|
76
59
|
its(:problems) { should be_empty }
|
77
60
|
end
|
78
61
|
|
79
|
-
|
80
|
-
describe 'length of lines with UTF-8 characters' do
|
81
|
-
let(:code) { "
|
82
|
-
# ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
83
|
-
# ┃ Configuration ┃
|
84
|
-
# ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
|
85
|
-
}
|
86
|
-
its(:problems) {
|
87
|
-
should be_empty
|
88
|
-
}
|
89
|
-
end
|
90
|
-
|
91
62
|
describe 'issue #37' do
|
92
63
|
let(:code) { "
|
93
64
|
class { 'lvs::base':
|
@@ -223,62 +194,6 @@ describe PuppetLint::Plugins::CheckWhitespace do
|
|
223
194
|
its(:problems) { should be_empty }
|
224
195
|
end
|
225
196
|
|
226
|
-
describe 'hard tabs indents' do
|
227
|
-
let(:code) { "\tfoo => bar," }
|
228
|
-
|
229
|
-
its(:problems) {
|
230
|
-
should have_problem({
|
231
|
-
:kind => :error,
|
232
|
-
:message => 'tab character found',
|
233
|
-
:linenumber => 1,
|
234
|
-
:column => 1,
|
235
|
-
})
|
236
|
-
}
|
237
|
-
end
|
238
|
-
|
239
|
-
describe 'line with trailing whitespace' do
|
240
|
-
let(:code) { "foo " }
|
241
|
-
|
242
|
-
its(:problems) {
|
243
|
-
should have_problem({
|
244
|
-
:kind => :error,
|
245
|
-
:message => 'trailing whitespace found',
|
246
|
-
:linenumber => 1,
|
247
|
-
:column => 4,
|
248
|
-
})
|
249
|
-
}
|
250
|
-
end
|
251
|
-
|
252
|
-
describe '81 character line' do
|
253
|
-
let(:code) { 'a' * 81 }
|
254
|
-
|
255
|
-
its(:problems) {
|
256
|
-
should have_problem({
|
257
|
-
:kind => :warning,
|
258
|
-
:message => 'line has more than 80 characters',
|
259
|
-
:linenumber => 1,
|
260
|
-
:column => 80,
|
261
|
-
})
|
262
|
-
}
|
263
|
-
end
|
264
|
-
|
265
|
-
describe 'line indented by 3 spaces' do
|
266
|
-
let(:code) { "
|
267
|
-
file { 'foo':
|
268
|
-
foo => bar,
|
269
|
-
}"
|
270
|
-
}
|
271
|
-
|
272
|
-
its(:problems) {
|
273
|
-
should have_problem({
|
274
|
-
:kind => :error,
|
275
|
-
:message => 'two-space soft tabs not used',
|
276
|
-
:linenumber => 3,
|
277
|
-
:column => 1,
|
278
|
-
})
|
279
|
-
}
|
280
|
-
end
|
281
|
-
|
282
197
|
describe 'single line resource spread out on multiple lines' do
|
283
198
|
let(:code) {"
|
284
199
|
file {
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'hard_tabs' do
|
4
|
+
describe 'hard tabs indents' do
|
5
|
+
let(:code) { "\tfoo => bar," }
|
6
|
+
|
7
|
+
its(:problems) {
|
8
|
+
should have_problem({
|
9
|
+
:kind => :error,
|
10
|
+
:message => 'tab character found',
|
11
|
+
:linenumber => 1,
|
12
|
+
:column => 1,
|
13
|
+
})
|
14
|
+
}
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'trailing_whitespace' do
|
4
|
+
describe 'line with trailing whitespace' do
|
5
|
+
let(:code) { "foo " }
|
6
|
+
|
7
|
+
its(:problems) {
|
8
|
+
should have_problem({
|
9
|
+
:kind => :error,
|
10
|
+
:message => 'trailing whitespace found',
|
11
|
+
:linenumber => 1,
|
12
|
+
:column => 4,
|
13
|
+
})
|
14
|
+
}
|
15
|
+
end
|
16
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,8 +1,24 @@
|
|
1
1
|
require 'rspec/autorun'
|
2
2
|
require 'puppet-lint'
|
3
3
|
|
4
|
+
module RSpec
|
5
|
+
module LintExampleGroup
|
6
|
+
def subject
|
7
|
+
klass = PuppetLint::Checks.new
|
8
|
+
fileinfo = {}
|
9
|
+
fileinfo[:fullpath] = self.respond_to?(:fullpath) ? fullpath : ''
|
10
|
+
klass.load_data(fileinfo, code)
|
11
|
+
klass.send("lint_check_#{self.class.top_level_description}")
|
12
|
+
klass
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
4
17
|
RSpec.configure do |c|
|
5
18
|
c.mock_framework = :rspec
|
19
|
+
c.include RSpec::LintExampleGroup, :type => :lint, :example_group => {
|
20
|
+
:file_path => Regexp.compile(%w{spec puppet-lint plugins}.join('[\\\/]'))
|
21
|
+
}
|
6
22
|
end
|
7
23
|
|
8
24
|
#class PuppetLint::Warning < Exception; end
|
@@ -117,3 +133,4 @@ RSpec::Matchers.define :only_have_problem do |filter|
|
|
117
133
|
end
|
118
134
|
|
119
135
|
end
|
136
|
+
|
metadata
CHANGED
@@ -1,76 +1,72 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-lint
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 0
|
10
|
-
version: 0.2.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Tim Sharpe
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-08-27 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: rspec
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
33
22
|
type: :development
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rdoc
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
25
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rdoc
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
47
38
|
type: :development
|
48
|
-
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: rcov
|
51
39
|
prerelease: false
|
52
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
41
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rcov
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
61
54
|
type: :development
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
description: ! "Checks your Puppet manifests against the Puppetlabs\n style guide
|
63
|
+
and alerts you to any discrepancies."
|
66
64
|
email: tim@sharpe.id.au
|
67
|
-
executables:
|
65
|
+
executables:
|
68
66
|
- puppet-lint
|
69
67
|
extensions: []
|
70
|
-
|
71
68
|
extra_rdoc_files: []
|
72
|
-
|
73
|
-
files:
|
69
|
+
files:
|
74
70
|
- .gitignore
|
75
71
|
- .travis.yml
|
76
72
|
- Gemfile
|
@@ -103,51 +99,63 @@ files:
|
|
103
99
|
- spec/puppet-lint/configuration_spec.rb
|
104
100
|
- spec/puppet-lint/lexer/token_spec.rb
|
105
101
|
- spec/puppet-lint/lexer_spec.rb
|
106
|
-
- spec/puppet-lint/plugins/
|
107
|
-
- spec/puppet-lint/plugins/
|
108
|
-
- spec/puppet-lint/plugins/
|
109
|
-
- spec/puppet-lint/plugins/
|
110
|
-
- spec/puppet-lint/plugins/
|
111
|
-
- spec/puppet-lint/plugins/
|
112
|
-
- spec/puppet-lint/plugins/
|
113
|
-
- spec/puppet-lint/plugins/
|
102
|
+
- spec/puppet-lint/plugins/check_classes/autoloader_layout_spec.rb
|
103
|
+
- spec/puppet-lint/plugins/check_classes/inherits_across_namespaces_spec.rb
|
104
|
+
- spec/puppet-lint/plugins/check_classes/names_containing_dash_spec.rb
|
105
|
+
- spec/puppet-lint/plugins/check_classes/nested_classes_or_defines_spec.rb
|
106
|
+
- spec/puppet-lint/plugins/check_classes/parameter_order_spec.rb
|
107
|
+
- spec/puppet-lint/plugins/check_classes/parameterised_classes_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_resources/duplicate_params_spec.rb
|
116
|
+
- spec/puppet-lint/plugins/check_resources/ensure_first_param_spec.rb
|
117
|
+
- spec/puppet-lint/plugins/check_resources/ensure_not_symlink_target_spec.rb
|
118
|
+
- spec/puppet-lint/plugins/check_resources/file_mode_spec.rb
|
119
|
+
- spec/puppet-lint/plugins/check_resources/unquoted_file_mode_spec.rb
|
120
|
+
- spec/puppet-lint/plugins/check_resources/unquoted_resource_title_spec.rb
|
121
|
+
- spec/puppet-lint/plugins/check_strings/double_quoted_strings_spec.rb
|
122
|
+
- spec/puppet-lint/plugins/check_strings/only_variable_string_spec.rb
|
123
|
+
- spec/puppet-lint/plugins/check_strings/quoted_booleans_spec.rb
|
124
|
+
- spec/puppet-lint/plugins/check_strings/single_quote_string_with_variables_spec.rb
|
125
|
+
- spec/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb
|
126
|
+
- spec/puppet-lint/plugins/check_variables/variable_contains_dash_spec.rb
|
127
|
+
- spec/puppet-lint/plugins/check_whitespace/2sp_soft_tabs_spec.rb
|
128
|
+
- spec/puppet-lint/plugins/check_whitespace/80chars_spec.rb
|
129
|
+
- spec/puppet-lint/plugins/check_whitespace/arrow_alignment_spec.rb
|
130
|
+
- spec/puppet-lint/plugins/check_whitespace/hard_tabs_spec.rb
|
131
|
+
- spec/puppet-lint/plugins/check_whitespace/trailing_whitespace_spec.rb
|
114
132
|
- spec/puppet-lint_spec.rb
|
115
133
|
- spec/spec_helper.rb
|
116
|
-
has_rdoc: true
|
117
134
|
homepage: https://github.com/rodjek/puppet-lint/
|
118
135
|
licenses: []
|
119
|
-
|
120
136
|
post_install_message:
|
121
137
|
rdoc_options: []
|
122
|
-
|
123
|
-
require_paths:
|
138
|
+
require_paths:
|
124
139
|
- lib
|
125
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
140
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
126
141
|
none: false
|
127
|
-
requirements:
|
128
|
-
- -
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
|
131
|
-
|
132
|
-
- 0
|
133
|
-
version: "0"
|
134
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ! '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
147
|
none: false
|
136
|
-
requirements:
|
137
|
-
- -
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
|
140
|
-
segments:
|
141
|
-
- 0
|
142
|
-
version: "0"
|
148
|
+
requirements:
|
149
|
+
- - ! '>='
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
143
152
|
requirements: []
|
144
|
-
|
145
153
|
rubyforge_project:
|
146
|
-
rubygems_version: 1.
|
154
|
+
rubygems_version: 1.8.23
|
147
155
|
signing_key:
|
148
156
|
specification_version: 3
|
149
157
|
summary: Ensure your Puppet manifests conform with the Puppetlabs style guide
|
150
|
-
test_files:
|
158
|
+
test_files:
|
151
159
|
- spec/fixtures/test/manifests/fail.pp
|
152
160
|
- spec/fixtures/test/manifests/init.pp
|
153
161
|
- spec/fixtures/test/manifests/warning.pp
|
@@ -155,13 +163,35 @@ test_files:
|
|
155
163
|
- spec/puppet-lint/configuration_spec.rb
|
156
164
|
- spec/puppet-lint/lexer/token_spec.rb
|
157
165
|
- spec/puppet-lint/lexer_spec.rb
|
158
|
-
- spec/puppet-lint/plugins/
|
159
|
-
- spec/puppet-lint/plugins/
|
160
|
-
- spec/puppet-lint/plugins/
|
161
|
-
- spec/puppet-lint/plugins/
|
162
|
-
- spec/puppet-lint/plugins/
|
163
|
-
- spec/puppet-lint/plugins/
|
164
|
-
- spec/puppet-lint/plugins/
|
165
|
-
- spec/puppet-lint/plugins/
|
166
|
+
- spec/puppet-lint/plugins/check_classes/autoloader_layout_spec.rb
|
167
|
+
- spec/puppet-lint/plugins/check_classes/inherits_across_namespaces_spec.rb
|
168
|
+
- spec/puppet-lint/plugins/check_classes/names_containing_dash_spec.rb
|
169
|
+
- spec/puppet-lint/plugins/check_classes/nested_classes_or_defines_spec.rb
|
170
|
+
- spec/puppet-lint/plugins/check_classes/parameter_order_spec.rb
|
171
|
+
- spec/puppet-lint/plugins/check_classes/parameterised_classes_spec.rb
|
172
|
+
- spec/puppet-lint/plugins/check_classes/right_to_left_relationship_spec.rb
|
173
|
+
- spec/puppet-lint/plugins/check_classes/variable_scope_spec.rb
|
174
|
+
- spec/puppet-lint/plugins/check_comments/slash_comments_spec.rb
|
175
|
+
- spec/puppet-lint/plugins/check_comments/star_comments_spec.rb
|
176
|
+
- spec/puppet-lint/plugins/check_conditionals/case_without_default_spec.rb
|
177
|
+
- spec/puppet-lint/plugins/check_conditionals/selector_inside_resource_spec.rb
|
178
|
+
- spec/puppet-lint/plugins/check_documentation/documentation_spec.rb
|
179
|
+
- spec/puppet-lint/plugins/check_resources/duplicate_params_spec.rb
|
180
|
+
- spec/puppet-lint/plugins/check_resources/ensure_first_param_spec.rb
|
181
|
+
- spec/puppet-lint/plugins/check_resources/ensure_not_symlink_target_spec.rb
|
182
|
+
- spec/puppet-lint/plugins/check_resources/file_mode_spec.rb
|
183
|
+
- spec/puppet-lint/plugins/check_resources/unquoted_file_mode_spec.rb
|
184
|
+
- spec/puppet-lint/plugins/check_resources/unquoted_resource_title_spec.rb
|
185
|
+
- spec/puppet-lint/plugins/check_strings/double_quoted_strings_spec.rb
|
186
|
+
- spec/puppet-lint/plugins/check_strings/only_variable_string_spec.rb
|
187
|
+
- spec/puppet-lint/plugins/check_strings/quoted_booleans_spec.rb
|
188
|
+
- spec/puppet-lint/plugins/check_strings/single_quote_string_with_variables_spec.rb
|
189
|
+
- spec/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb
|
190
|
+
- spec/puppet-lint/plugins/check_variables/variable_contains_dash_spec.rb
|
191
|
+
- spec/puppet-lint/plugins/check_whitespace/2sp_soft_tabs_spec.rb
|
192
|
+
- spec/puppet-lint/plugins/check_whitespace/80chars_spec.rb
|
193
|
+
- spec/puppet-lint/plugins/check_whitespace/arrow_alignment_spec.rb
|
194
|
+
- spec/puppet-lint/plugins/check_whitespace/hard_tabs_spec.rb
|
195
|
+
- spec/puppet-lint/plugins/check_whitespace/trailing_whitespace_spec.rb
|
166
196
|
- spec/puppet-lint_spec.rb
|
167
197
|
- spec/spec_helper.rb
|