puppet-retrospec 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +52 -0
- data/.gitlab-ci.yml +1 -0
- data/.overcommit.yml +33 -0
- data/.rubocop.yml +17 -3
- data/.rubocop_todo.yml +744 -0
- data/CHANGELOG.md +3 -1
- data/Gemfile +1 -4
- data/Gemfile.lock +34 -62
- data/README.md +2 -2
- data/Rakefile +3 -21
- data/lib/retrospec/plugins/v1/plugin/generators/fact_generator.rb +5 -5
- data/lib/retrospec/plugins/v1/plugin/generators/function_generator.rb +62 -18
- data/lib/retrospec/plugins/v1/plugin/generators/parsers/native_function.rb +58 -0
- data/lib/retrospec/plugins/v1/plugin/puppet.rb +1 -1
- data/lib/retrospec/plugins/v1/plugin/version.rb +1 -1
- data/puppet-retrospec.gemspec +5 -1648
- data/spec/fixtures/fixture_modules/sample_module/lib/puppet/functions/awesome_parser.rb +14 -0
- data/spec/fixtures/functions/abs.pp +4 -0
- data/spec/unit/generators/acceptance_generator_spec.rb +10 -14
- data/spec/unit/generators/definition_generator_spec.rb +4 -8
- data/spec/unit/generators/fact_generater_spec.rb +6 -7
- data/spec/unit/generators/function_generator_spec.rb +83 -17
- data/spec/unit/generators/function_spec.rb +1 -3
- data/spec/unit/generators/hostclass_generator_spec.rb +7 -10
- data/spec/unit/generators/node_generator_spec.rb +4 -7
- data/spec/unit/generators/parsers/fact_spec.rb +7 -10
- data/spec/unit/generators/parsers/provider_spec.rb +5 -5
- data/spec/unit/generators/parsers/type_spec.rb +8 -9
- data/spec/unit/generators/provider_generator_spec.rb +1 -2
- data/spec/unit/generators/report_generator_spec.rb +5 -7
- data/spec/unit/generators/resource_base_generator_spec.rb +3 -5
- data/spec/unit/generators/schema_generator_spec.rb +28 -32
- data/spec/unit/generators/serializers/rspec_dumper_spec.rb +35 -38
- data/spec/unit/generators/type_generator_spec.rb +116 -116
- data/spec/unit/plugin_spec.rb +15 -22
- data/spec/unit/puppet-retrospec_spec.rb +3 -5
- data/spec/unit/spec_object_spec.rb +17 -20
- metadata +9 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02ba74daa4e9c7b8f14e53e78a748a19bd6a2452
|
4
|
+
data.tar.gz: e92c12020b905fdde3be60f8e87b48a6ddd497f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66debb7167d01c98db0a1bba91ce18668d1a83fa4a2bf562ab6e5f54b4121cf88daee015df8a850f7a7e8bf8d36e26a3158b55b008bee52bab2db2d1d2049b76
|
7
|
+
data.tar.gz: 46b9b0111a51e811be08dacca780a5c0ff1a34bcfee9b4a204c96d1208cebe8009c38a686b6c0823919d3e0bcb68ae4afe25cedc644a69f89416e57d88e69789
|
data/.gitignore
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
# rcov generated
|
2
|
+
bundle/
|
3
|
+
vendor/gems/puppet-4.4.1-universal-darwin/
|
4
|
+
*.swp
|
5
|
+
coverage
|
6
|
+
coverage.data
|
7
|
+
spec/fixtures/modules
|
8
|
+
# rdoc generated
|
9
|
+
rdoc
|
10
|
+
|
11
|
+
# yard generated
|
12
|
+
doc
|
13
|
+
.yardoc
|
14
|
+
|
15
|
+
# bundler
|
16
|
+
.bundle
|
17
|
+
|
18
|
+
# jeweler generated
|
19
|
+
pkg
|
20
|
+
|
21
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
22
|
+
#
|
23
|
+
# * Create a file at ~/.gitignore
|
24
|
+
# * Include files you want ignored
|
25
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
26
|
+
#
|
27
|
+
# After doing this, these files will be ignored in all your git projects,
|
28
|
+
# saving you from having to 'pollute' every project you touch with them
|
29
|
+
#
|
30
|
+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
31
|
+
#
|
32
|
+
# For MacOS:
|
33
|
+
#
|
34
|
+
#.DS_Store
|
35
|
+
|
36
|
+
# For TextMate
|
37
|
+
#*.tmproj
|
38
|
+
#tmtags
|
39
|
+
|
40
|
+
# For emacs:
|
41
|
+
#*~
|
42
|
+
#\#*
|
43
|
+
#.\#*
|
44
|
+
|
45
|
+
# For vim:
|
46
|
+
#*.swp
|
47
|
+
|
48
|
+
# For redcar:
|
49
|
+
#.redcar
|
50
|
+
|
51
|
+
# For rubinius:
|
52
|
+
#*.rbc
|
data/.gitlab-ci.yml
CHANGED
data/.overcommit.yml
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# Use this file to configure the Overcommit hooks you wish to use. This will
|
2
|
+
# extend the default configuration defined in:
|
3
|
+
# https://github.com/brigade/overcommit/blob/master/config/default.yml
|
4
|
+
#
|
5
|
+
# At the topmost level of this YAML file is a key representing type of hook
|
6
|
+
# being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
|
7
|
+
# customize each hook, such as whether to only run it on certain files (via
|
8
|
+
# `include`), whether to only display output if it fails (via `quiet`), etc.
|
9
|
+
#
|
10
|
+
# For a complete list of hooks, see:
|
11
|
+
# https://github.com/brigade/overcommit/tree/master/lib/overcommit/hook
|
12
|
+
#
|
13
|
+
# For a complete list of options that you can use to customize hooks, see:
|
14
|
+
# https://github.com/brigade/overcommit#configuration
|
15
|
+
#
|
16
|
+
# Uncomment the following lines to make the configuration take effect.
|
17
|
+
|
18
|
+
PreCommit:
|
19
|
+
RuboCop:
|
20
|
+
enabled: true
|
21
|
+
on_warn: fail # Treat all warnings as failures
|
22
|
+
#
|
23
|
+
# TrailingWhitespace:
|
24
|
+
# enabled: true
|
25
|
+
# exclude:
|
26
|
+
# - '**/db/structure.sql' # Ignore trailing whitespace in generated files
|
27
|
+
#
|
28
|
+
#PostCheckout:
|
29
|
+
# ALL: # Special hook name that customizes all hooks of this type
|
30
|
+
# quiet: true # Change all post-checkout hooks to only display output on failure
|
31
|
+
#
|
32
|
+
# IndexTags:
|
33
|
+
# enabled: true # Generate a tags file with `ctags` each time HEAD changes
|
data/.rubocop.yml
CHANGED
@@ -1,16 +1,30 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
1
3
|
AllCops:
|
4
|
+
TargetRubyVersion: 1.9
|
5
|
+
DisplayCopNames: true
|
6
|
+
# Style guide URLs are not displayed in offense messages by default. Change
|
7
|
+
# behavior by overriding DisplayStyleGuide, or by giving the
|
8
|
+
# -S/--display-style-guide option.
|
9
|
+
DisplayStyleGuide: true
|
10
|
+
# Extra details are not displayed in offense messages by default. Change
|
11
|
+
# behavior by overriding ExtraDetails, or by giving the
|
12
|
+
# -E/--extra-details option.
|
13
|
+
ExtraDetails: true
|
2
14
|
Exclude:
|
15
|
+
- bundle/**/*
|
16
|
+
- .bundle/**/*
|
3
17
|
- vendor/**/*
|
4
18
|
- pkg/**/*
|
5
19
|
- spec/fixtures/**/*
|
6
|
-
|
7
20
|
# Configuration parameters: AllowURI, URISchemes.
|
8
21
|
Metrics/LineLength:
|
9
22
|
Max: 128
|
23
|
+
Enabled: false
|
10
24
|
|
11
25
|
# dealbreaker:
|
12
|
-
Style/TrailingComma:
|
13
|
-
Enabled: false
|
26
|
+
#Style/TrailingComma:
|
27
|
+
# Enabled: false
|
14
28
|
|
15
29
|
# we still support ruby 1.8
|
16
30
|
Style/HashSyntax:
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,744 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2016-06-29 13:38:17 -0700 using RuboCop version 0.41.1.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
Style/WordArray:
|
10
|
+
Exclude:
|
11
|
+
- lib/retrospec/plugins/v1/plugin/generators/type_generator.rb
|
12
|
+
|
13
|
+
Lint/ShadowedException:
|
14
|
+
Exclude:
|
15
|
+
- lib/retrospec/plugins/v1/plugin/puppet.rb
|
16
|
+
|
17
|
+
Style/MethodMissing:
|
18
|
+
Exclude:
|
19
|
+
- lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb
|
20
|
+
- lib/retrospec/plugins/v1/plugin/generators/parsers/function.rb
|
21
|
+
- lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb
|
22
|
+
# Offense count: 1
|
23
|
+
Lint/AmbiguousOperator:
|
24
|
+
Exclude:
|
25
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/module_generator.rb'
|
26
|
+
|
27
|
+
# Offense count: 2
|
28
|
+
Lint/AmbiguousRegexpLiteral:
|
29
|
+
Exclude:
|
30
|
+
- 'spec/unit/generators/function_generator_spec.rb'
|
31
|
+
|
32
|
+
# Offense count: 4
|
33
|
+
# Configuration parameters: AllowSafeAssignment.
|
34
|
+
Lint/AssignmentInCondition:
|
35
|
+
Exclude:
|
36
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
37
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
38
|
+
|
39
|
+
# Offense count: 4
|
40
|
+
# Cop supports --auto-correct.
|
41
|
+
Lint/DeprecatedClassMethods:
|
42
|
+
Exclude:
|
43
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet.rb'
|
44
|
+
- 'spec/spec_helper.rb'
|
45
|
+
|
46
|
+
# Offense count: 1
|
47
|
+
# Cop supports --auto-correct.
|
48
|
+
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
|
49
|
+
# SupportedStyles: keyword, variable, start_of_line
|
50
|
+
Lint/EndAlignment:
|
51
|
+
Exclude:
|
52
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb'
|
53
|
+
|
54
|
+
# Offense count: 5
|
55
|
+
Lint/Eval:
|
56
|
+
Exclude:
|
57
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb'
|
58
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/function.rb'
|
59
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/type.rb'
|
60
|
+
|
61
|
+
# Offense count: 7
|
62
|
+
Lint/HandleExceptions:
|
63
|
+
Exclude:
|
64
|
+
- 'Rakefile'
|
65
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb'
|
66
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/function.rb'
|
67
|
+
|
68
|
+
# Offense count: 4
|
69
|
+
# Cop supports --auto-correct.
|
70
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
71
|
+
# SupportedStyles: runtime_error, standard_error
|
72
|
+
Lint/InheritException:
|
73
|
+
Exclude:
|
74
|
+
- 'lib/retrospec/plugins/v1/plugin/exceptions.rb'
|
75
|
+
|
76
|
+
# Offense count: 1
|
77
|
+
Lint/ParenthesesAsGroupedExpression:
|
78
|
+
Exclude:
|
79
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
80
|
+
|
81
|
+
# Offense count: 4
|
82
|
+
Lint/RescueException:
|
83
|
+
Exclude:
|
84
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb'
|
85
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet.rb'
|
86
|
+
|
87
|
+
# Offense count: 4
|
88
|
+
Lint/ShadowedException:
|
89
|
+
Exclude:
|
90
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb'
|
91
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/type.rb'
|
92
|
+
|
93
|
+
# Offense count: 1
|
94
|
+
Lint/UnderscorePrefixedVariableName:
|
95
|
+
Exclude:
|
96
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
97
|
+
|
98
|
+
# Offense count: 1
|
99
|
+
# Cop supports --auto-correct.
|
100
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
101
|
+
Lint/UnusedBlockArgument:
|
102
|
+
Exclude:
|
103
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
104
|
+
|
105
|
+
# Offense count: 36
|
106
|
+
# Cop supports --auto-correct.
|
107
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
108
|
+
Lint/UnusedMethodArgument:
|
109
|
+
Exclude:
|
110
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb'
|
111
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/function.rb'
|
112
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
113
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
114
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
115
|
+
- 'lib/retrospec/plugins/v1/plugin/templates/clone-hook'
|
116
|
+
|
117
|
+
# Offense count: 48
|
118
|
+
Lint/UselessAssignment:
|
119
|
+
Enabled: false
|
120
|
+
|
121
|
+
# Offense count: 30
|
122
|
+
Metrics/AbcSize:
|
123
|
+
Max: 58
|
124
|
+
|
125
|
+
# Offense count: 8
|
126
|
+
# Configuration parameters: CountComments.
|
127
|
+
Metrics/ClassLength:
|
128
|
+
Max: 341
|
129
|
+
|
130
|
+
# Offense count: 4
|
131
|
+
Metrics/CyclomaticComplexity:
|
132
|
+
Max: 17
|
133
|
+
|
134
|
+
# Offense count: 35
|
135
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
|
136
|
+
# URISchemes: http, https
|
137
|
+
Metrics/LineLength:
|
138
|
+
Max: 656
|
139
|
+
|
140
|
+
# Offense count: 42
|
141
|
+
# Configuration parameters: CountComments.
|
142
|
+
Metrics/MethodLength:
|
143
|
+
Max: 67
|
144
|
+
|
145
|
+
# Offense count: 5
|
146
|
+
Metrics/PerceivedComplexity:
|
147
|
+
Max: 15
|
148
|
+
|
149
|
+
# Offense count: 3
|
150
|
+
# Cop supports --auto-correct.
|
151
|
+
Performance/StringReplacement:
|
152
|
+
Exclude:
|
153
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
154
|
+
|
155
|
+
# Offense count: 4
|
156
|
+
Style/AccessorMethodName:
|
157
|
+
Exclude:
|
158
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb'
|
159
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/function.rb'
|
160
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/type.rb'
|
161
|
+
- 'lib/retrospec/plugins/v1/plugin/helpers.rb'
|
162
|
+
|
163
|
+
# Offense count: 14
|
164
|
+
# Cop supports --auto-correct.
|
165
|
+
Style/AlignArray:
|
166
|
+
Exclude:
|
167
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
168
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
169
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/type_generator.rb'
|
170
|
+
|
171
|
+
# Offense count: 6
|
172
|
+
# Cop supports --auto-correct.
|
173
|
+
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
|
174
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
175
|
+
Style/AlignHash:
|
176
|
+
Exclude:
|
177
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/function_generator.rb'
|
178
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
179
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet.rb'
|
180
|
+
|
181
|
+
# Offense count: 3
|
182
|
+
# Cop supports --auto-correct.
|
183
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
184
|
+
# SupportedStyles: always, conditionals
|
185
|
+
Style/AndOr:
|
186
|
+
Exclude:
|
187
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/base_generator.rb'
|
188
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
189
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet.rb'
|
190
|
+
|
191
|
+
# Offense count: 5
|
192
|
+
# Cop supports --auto-correct.
|
193
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
194
|
+
# SupportedStyles: braces, no_braces, context_dependent
|
195
|
+
Style/BracesAroundHashParameters:
|
196
|
+
Exclude:
|
197
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/acceptance_generator.rb'
|
198
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/definition_generator.rb'
|
199
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/hostclass_generator.rb'
|
200
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/node_generator.rb'
|
201
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/function.rb'
|
202
|
+
|
203
|
+
# Offense count: 2
|
204
|
+
# Cop supports --auto-correct.
|
205
|
+
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth.
|
206
|
+
# SupportedStyles: case, end
|
207
|
+
Style/CaseIndentation:
|
208
|
+
Exclude:
|
209
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
210
|
+
|
211
|
+
# Offense count: 1
|
212
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
213
|
+
# SupportedStyles: nested, compact
|
214
|
+
Style/ClassAndModuleChildren:
|
215
|
+
Exclude:
|
216
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/provider_generator.rb'
|
217
|
+
|
218
|
+
# Offense count: 1
|
219
|
+
Style/ClassVars:
|
220
|
+
Exclude:
|
221
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet_module.rb'
|
222
|
+
|
223
|
+
# Offense count: 1
|
224
|
+
# Cop supports --auto-correct.
|
225
|
+
Style/ClosingParenthesisIndentation:
|
226
|
+
Exclude:
|
227
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet_module.rb'
|
228
|
+
|
229
|
+
# Offense count: 4
|
230
|
+
# Cop supports --auto-correct.
|
231
|
+
# Configuration parameters: Keywords.
|
232
|
+
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
|
233
|
+
Style/CommentAnnotation:
|
234
|
+
Exclude:
|
235
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
236
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
237
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet.rb'
|
238
|
+
|
239
|
+
# Offense count: 16
|
240
|
+
# Cop supports --auto-correct.
|
241
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
|
242
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
243
|
+
Style/ConditionalAssignment:
|
244
|
+
Exclude:
|
245
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/module_generator.rb'
|
246
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/provider_generator.rb'
|
247
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
248
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
249
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
250
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet.rb'
|
251
|
+
- 'lib/retrospec/plugins/v1/plugin/template_helpers.rb'
|
252
|
+
- 'spec/spec_helper.rb'
|
253
|
+
|
254
|
+
# Offense count: 26
|
255
|
+
Style/Documentation:
|
256
|
+
Enabled: false
|
257
|
+
|
258
|
+
# Offense count: 1
|
259
|
+
# Cop supports --auto-correct.
|
260
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
261
|
+
# SupportedStyles: empty, nil, both
|
262
|
+
Style/EmptyElse:
|
263
|
+
Exclude:
|
264
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/resource_base_generator.rb'
|
265
|
+
|
266
|
+
# Offense count: 1
|
267
|
+
# Cop supports --auto-correct.
|
268
|
+
# Configuration parameters: AllowAdjacentOneLineDefs.
|
269
|
+
Style/EmptyLineBetweenDefs:
|
270
|
+
Exclude:
|
271
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/type_generator.rb'
|
272
|
+
|
273
|
+
# Offense count: 1
|
274
|
+
# Cop supports --auto-correct.
|
275
|
+
Style/EmptyLines:
|
276
|
+
Exclude:
|
277
|
+
- 'spec/integration/retrospec_spec.rb'
|
278
|
+
|
279
|
+
# Offense count: 1
|
280
|
+
# Cop supports --auto-correct.
|
281
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
282
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
283
|
+
Style/EmptyLinesAroundBlockBody:
|
284
|
+
Exclude:
|
285
|
+
- 'spec/integration/retrospec_spec.rb'
|
286
|
+
|
287
|
+
# Offense count: 8
|
288
|
+
# Cop supports --auto-correct.
|
289
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
290
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
291
|
+
Style/EmptyLinesAroundClassBody:
|
292
|
+
Exclude:
|
293
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/acceptance_generator.rb'
|
294
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/definition_generator.rb'
|
295
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/hostclass_generator.rb'
|
296
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/node_generator.rb'
|
297
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/type.rb'
|
298
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
299
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
300
|
+
|
301
|
+
# Offense count: 5
|
302
|
+
# Cop supports --auto-correct.
|
303
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
304
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
305
|
+
Style/EmptyLinesAroundModuleBody:
|
306
|
+
Exclude:
|
307
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/acceptance_generator.rb'
|
308
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/definition_generator.rb'
|
309
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/hostclass_generator.rb'
|
310
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/node_generator.rb'
|
311
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/function.rb'
|
312
|
+
|
313
|
+
# Offense count: 5
|
314
|
+
# Cop supports --auto-correct.
|
315
|
+
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
316
|
+
Style/ExtraSpacing:
|
317
|
+
Exclude:
|
318
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/function_generator.rb'
|
319
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
320
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
321
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet.rb'
|
322
|
+
|
323
|
+
# Offense count: 2
|
324
|
+
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts.
|
325
|
+
Style/FileName:
|
326
|
+
Exclude:
|
327
|
+
- 'lib/retrospec-puppet.rb'
|
328
|
+
- 'spec/unit/puppet-retrospec_spec.rb'
|
329
|
+
|
330
|
+
# Offense count: 1
|
331
|
+
# Cop supports --auto-correct.
|
332
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
333
|
+
# SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
334
|
+
Style/FirstParameterIndentation:
|
335
|
+
Exclude:
|
336
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet_module.rb'
|
337
|
+
|
338
|
+
# Offense count: 2
|
339
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
340
|
+
# SupportedStyles: format, sprintf, percent
|
341
|
+
Style/FormatString:
|
342
|
+
Exclude:
|
343
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
344
|
+
|
345
|
+
# Offense count: 3
|
346
|
+
# Configuration parameters: MinBodyLength.
|
347
|
+
Style/GuardClause:
|
348
|
+
Exclude:
|
349
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/resource_base_generator.rb'
|
350
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet.rb'
|
351
|
+
- 'lib/retrospec/plugins/v1/plugin/templates/clone-hook'
|
352
|
+
|
353
|
+
# Offense count: 2
|
354
|
+
Style/IfInsideElse:
|
355
|
+
Exclude:
|
356
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
357
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet.rb'
|
358
|
+
|
359
|
+
# Offense count: 5
|
360
|
+
# Cop supports --auto-correct.
|
361
|
+
# Configuration parameters: MaxLineLength.
|
362
|
+
Style/IfUnlessModifier:
|
363
|
+
Exclude:
|
364
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/resource_base_generator.rb'
|
365
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
366
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
367
|
+
|
368
|
+
# Offense count: 2
|
369
|
+
# Cop supports --auto-correct.
|
370
|
+
# Configuration parameters: IndentationWidth.
|
371
|
+
Style/IndentAssignment:
|
372
|
+
Exclude:
|
373
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/acceptance_generator.rb'
|
374
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
375
|
+
|
376
|
+
# Offense count: 2
|
377
|
+
# Cop supports --auto-correct.
|
378
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
379
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
380
|
+
Style/IndentHash:
|
381
|
+
Exclude:
|
382
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
383
|
+
|
384
|
+
# Offense count: 1
|
385
|
+
# Cop supports --auto-correct.
|
386
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
387
|
+
# SupportedStyles: normal, rails
|
388
|
+
Style/IndentationConsistency:
|
389
|
+
Exclude:
|
390
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
391
|
+
|
392
|
+
# Offense count: 4
|
393
|
+
# Cop supports --auto-correct.
|
394
|
+
# Configuration parameters: Width.
|
395
|
+
Style/IndentationWidth:
|
396
|
+
Exclude:
|
397
|
+
- 'Rakefile'
|
398
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/function.rb'
|
399
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/type_generator.rb'
|
400
|
+
- 'spec/spec_helper.rb'
|
401
|
+
|
402
|
+
# Offense count: 18
|
403
|
+
# Cop supports --auto-correct.
|
404
|
+
Style/LeadingCommentSpace:
|
405
|
+
Exclude:
|
406
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/function.rb'
|
407
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/resource_base_generator.rb'
|
408
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
409
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
410
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
411
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
412
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet.rb'
|
413
|
+
- 'spec/spec_helper.rb'
|
414
|
+
|
415
|
+
# Offense count: 3
|
416
|
+
# Cop supports --auto-correct.
|
417
|
+
Style/MethodCallParentheses:
|
418
|
+
Exclude:
|
419
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb'
|
420
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
421
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
422
|
+
|
423
|
+
# Offense count: 134
|
424
|
+
# Cop supports --auto-correct.
|
425
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
426
|
+
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
427
|
+
Style/MethodDefParentheses:
|
428
|
+
Exclude:
|
429
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
430
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
431
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
432
|
+
|
433
|
+
# Offense count: 134
|
434
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
435
|
+
# SupportedStyles: snake_case, camelCase
|
436
|
+
Style/MethodName:
|
437
|
+
Exclude:
|
438
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
439
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
440
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
441
|
+
|
442
|
+
# Offense count: 1
|
443
|
+
# Cop supports --auto-correct.
|
444
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
445
|
+
# SupportedStyles: symmetrical, new_line, same_line
|
446
|
+
Style/MultilineHashBraceLayout:
|
447
|
+
Exclude:
|
448
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
449
|
+
|
450
|
+
# Offense count: 2
|
451
|
+
# Cop supports --auto-correct.
|
452
|
+
Style/MultilineIfThen:
|
453
|
+
Exclude:
|
454
|
+
- 'puppet-retrospec.gemspec'
|
455
|
+
|
456
|
+
# Offense count: 2
|
457
|
+
# Cop supports --auto-correct.
|
458
|
+
Style/MutableConstant:
|
459
|
+
Exclude:
|
460
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/type_generator.rb'
|
461
|
+
- 'lib/retrospec/plugins/v1/plugin/version.rb'
|
462
|
+
|
463
|
+
# Offense count: 18
|
464
|
+
# Cop supports --auto-correct.
|
465
|
+
# Configuration parameters: PreferredDelimiters.
|
466
|
+
Style/PercentLiteralDelimiters:
|
467
|
+
Exclude:
|
468
|
+
- 'puppet-retrospec.gemspec'
|
469
|
+
|
470
|
+
# Offense count: 6
|
471
|
+
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
|
472
|
+
# NamePrefix: is_, has_, have_
|
473
|
+
# NamePrefixBlacklist: is_, has_, have_
|
474
|
+
# NameWhitelist: is_a?
|
475
|
+
Style/PredicateName:
|
476
|
+
Exclude:
|
477
|
+
- 'spec/**/*'
|
478
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/function_generator.rb'
|
479
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
480
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
481
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
482
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
483
|
+
- 'lib/retrospec/plugins/v1/plugin/helpers.rb'
|
484
|
+
|
485
|
+
# Offense count: 1
|
486
|
+
# Cop supports --auto-correct.
|
487
|
+
Style/PreferredHashMethods:
|
488
|
+
Exclude:
|
489
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
490
|
+
|
491
|
+
# Offense count: 1
|
492
|
+
# Cop supports --auto-correct.
|
493
|
+
Style/Proc:
|
494
|
+
Exclude:
|
495
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb'
|
496
|
+
|
497
|
+
# Offense count: 1
|
498
|
+
# Cop supports --auto-correct.
|
499
|
+
Style/RedundantBegin:
|
500
|
+
Exclude:
|
501
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb'
|
502
|
+
|
503
|
+
# Offense count: 1
|
504
|
+
# Cop supports --auto-correct.
|
505
|
+
Style/RedundantParentheses:
|
506
|
+
Exclude:
|
507
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
508
|
+
|
509
|
+
# Offense count: 1
|
510
|
+
# Cop supports --auto-correct.
|
511
|
+
Style/RedundantSelf:
|
512
|
+
Exclude:
|
513
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb'
|
514
|
+
|
515
|
+
# Offense count: 10
|
516
|
+
# Cop supports --auto-correct.
|
517
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
|
518
|
+
# SupportedStyles: slashes, percent_r, mixed
|
519
|
+
Style/RegexpLiteral:
|
520
|
+
Exclude:
|
521
|
+
- 'spec/unit/generators/function_generator_spec.rb'
|
522
|
+
|
523
|
+
# Offense count: 1
|
524
|
+
# Cop supports --auto-correct.
|
525
|
+
Style/RescueModifier:
|
526
|
+
Exclude:
|
527
|
+
- 'lib/retrospec/plugins/v1/plugin/templates/clone-hook'
|
528
|
+
|
529
|
+
# Offense count: 1
|
530
|
+
# Cop supports --auto-correct.
|
531
|
+
Style/SelfAssignment:
|
532
|
+
Exclude:
|
533
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
534
|
+
|
535
|
+
# Offense count: 1
|
536
|
+
# Cop supports --auto-correct.
|
537
|
+
# Configuration parameters: AllowAsExpressionSeparator.
|
538
|
+
Style/Semicolon:
|
539
|
+
Exclude:
|
540
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
541
|
+
|
542
|
+
# Offense count: 2
|
543
|
+
# Cop supports --auto-correct.
|
544
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
545
|
+
# SupportedStyles: only_raise, only_fail, semantic
|
546
|
+
Style/SignalException:
|
547
|
+
Exclude:
|
548
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet_module.rb'
|
549
|
+
|
550
|
+
# Offense count: 29
|
551
|
+
# Cop supports --auto-correct.
|
552
|
+
Style/SpaceAfterComma:
|
553
|
+
Exclude:
|
554
|
+
- 'lib/retrospec/plugins/v1/plugin/generators.rb'
|
555
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/fact_generator.rb'
|
556
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/function_generator.rb'
|
557
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/resource_base_generator.rb'
|
558
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
559
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
560
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
561
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet_module.rb'
|
562
|
+
- 'spec/spec_helper.rb'
|
563
|
+
|
564
|
+
# Offense count: 1
|
565
|
+
# Cop supports --auto-correct.
|
566
|
+
Style/SpaceAfterNot:
|
567
|
+
Exclude:
|
568
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet.rb'
|
569
|
+
|
570
|
+
# Offense count: 1
|
571
|
+
# Cop supports --auto-correct.
|
572
|
+
# Configuration parameters: EnforcedStyleInsidePipes, SupportedStyles.
|
573
|
+
# SupportedStyles: space, no_space
|
574
|
+
Style/SpaceAroundBlockParameters:
|
575
|
+
Exclude:
|
576
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/fact_generator.rb'
|
577
|
+
|
578
|
+
# Offense count: 16
|
579
|
+
# Cop supports --auto-correct.
|
580
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
581
|
+
# SupportedStyles: space, no_space
|
582
|
+
Style/SpaceAroundEqualsInParameterDefault:
|
583
|
+
Exclude:
|
584
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/base_generator.rb'
|
585
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/fact_generator.rb'
|
586
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/function_generator.rb'
|
587
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/module_generator.rb'
|
588
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb'
|
589
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/function.rb'
|
590
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/provider_generator.rb'
|
591
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/report_generator.rb'
|
592
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/resource_base_generator.rb'
|
593
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
594
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
595
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/type_generator.rb'
|
596
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet.rb'
|
597
|
+
|
598
|
+
# Offense count: 23
|
599
|
+
# Cop supports --auto-correct.
|
600
|
+
# Configuration parameters: AllowForAlignment.
|
601
|
+
Style/SpaceAroundOperators:
|
602
|
+
Exclude:
|
603
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
604
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
605
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
606
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
607
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet.rb'
|
608
|
+
|
609
|
+
# Offense count: 2
|
610
|
+
# Cop supports --auto-correct.
|
611
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
612
|
+
# SupportedStyles: space, no_space
|
613
|
+
Style/SpaceBeforeBlockBraces:
|
614
|
+
Exclude:
|
615
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
616
|
+
|
617
|
+
# Offense count: 1
|
618
|
+
# Cop supports --auto-correct.
|
619
|
+
Style/SpaceBeforeComma:
|
620
|
+
Exclude:
|
621
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/fact_generator.rb'
|
622
|
+
|
623
|
+
# Offense count: 35
|
624
|
+
# Cop supports --auto-correct.
|
625
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
626
|
+
# SupportedStyles: space, no_space
|
627
|
+
Style/SpaceInsideBlockBraces:
|
628
|
+
Exclude:
|
629
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/resource_base_generator.rb'
|
630
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
631
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
632
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
633
|
+
|
634
|
+
# Offense count: 11
|
635
|
+
# Cop supports --auto-correct.
|
636
|
+
Style/SpaceInsideBrackets:
|
637
|
+
Exclude:
|
638
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
639
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
640
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
641
|
+
|
642
|
+
# Offense count: 57
|
643
|
+
# Cop supports --auto-correct.
|
644
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
645
|
+
# SupportedStyles: space, no_space, compact
|
646
|
+
Style/SpaceInsideHashLiteralBraces:
|
647
|
+
Exclude:
|
648
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/acceptance_generator.rb'
|
649
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/definition_generator.rb'
|
650
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/hostclass_generator.rb'
|
651
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/node_generator.rb'
|
652
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb'
|
653
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/function.rb'
|
654
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
655
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
656
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
657
|
+
- 'spec/spec_helper.rb'
|
658
|
+
|
659
|
+
# Offense count: 1
|
660
|
+
# Cop supports --auto-correct.
|
661
|
+
Style/SpaceInsideParens:
|
662
|
+
Exclude:
|
663
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/resource_base_generator.rb'
|
664
|
+
|
665
|
+
# Offense count: 1831
|
666
|
+
# Cop supports --auto-correct.
|
667
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
668
|
+
# SupportedStyles: single_quotes, double_quotes
|
669
|
+
Style/StringLiterals:
|
670
|
+
Exclude:
|
671
|
+
- 'lib/retrospec/plugins/v1/plugin/exceptions.rb'
|
672
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/base_generator.rb'
|
673
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/module_generator.rb'
|
674
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/report_generator.rb'
|
675
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/resource_base_generator.rb'
|
676
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
677
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
678
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
679
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
680
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/type_generator.rb'
|
681
|
+
- 'puppet-retrospec.gemspec'
|
682
|
+
|
683
|
+
# Offense count: 2
|
684
|
+
# Cop supports --auto-correct.
|
685
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
686
|
+
# SupportedStyles: final_newline, final_blank_line
|
687
|
+
Style/TrailingBlankLines:
|
688
|
+
Exclude:
|
689
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb'
|
690
|
+
- 'puppet-retrospec.gemspec'
|
691
|
+
|
692
|
+
# Offense count: 1
|
693
|
+
# Cop supports --auto-correct.
|
694
|
+
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
|
695
|
+
# SupportedStyles: comma, consistent_comma, no_comma
|
696
|
+
Style/TrailingCommaInArguments:
|
697
|
+
Exclude:
|
698
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet_module.rb'
|
699
|
+
|
700
|
+
# Offense count: 2
|
701
|
+
# Cop supports --auto-correct.
|
702
|
+
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
|
703
|
+
# SupportedStyles: comma, consistent_comma, no_comma
|
704
|
+
Style/TrailingCommaInLiteral:
|
705
|
+
Exclude:
|
706
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb'
|
707
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
708
|
+
|
709
|
+
# Offense count: 2
|
710
|
+
# Cop supports --auto-correct.
|
711
|
+
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
|
712
|
+
# Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
|
713
|
+
Style/TrivialAccessors:
|
714
|
+
Exclude:
|
715
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet_module.rb'
|
716
|
+
|
717
|
+
# Offense count: 6
|
718
|
+
# Cop supports --auto-correct.
|
719
|
+
Style/UnneededInterpolation:
|
720
|
+
Exclude:
|
721
|
+
- 'Rakefile'
|
722
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb'
|
723
|
+
|
724
|
+
# Offense count: 18
|
725
|
+
# Cop supports --auto-correct.
|
726
|
+
Style/UnneededPercentQ:
|
727
|
+
Exclude:
|
728
|
+
- 'puppet-retrospec.gemspec'
|
729
|
+
|
730
|
+
# Offense count: 2
|
731
|
+
# Cop supports --auto-correct.
|
732
|
+
# Configuration parameters: SupportedStyles, WordRegex.
|
733
|
+
# SupportedStyles: percent, brackets
|
734
|
+
Style/WordArray:
|
735
|
+
EnforcedStyle: percent
|
736
|
+
MinSize: -Infinity
|
737
|
+
|
738
|
+
# Offense count: 3
|
739
|
+
# Cop supports --auto-correct.
|
740
|
+
Style/ZeroLengthPredicate:
|
741
|
+
Exclude:
|
742
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper_full.rb'
|
743
|
+
- 'lib/retrospec/plugins/v1/plugin/generators/serializers/schema_dumper.rb'
|
744
|
+
- 'lib/retrospec/plugins/v1/plugin/puppet_module.rb'
|