evva 0.4.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/.rubocop_todo.yml CHANGED
@@ -1,477 +1,395 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2017-08-24 13:42:11 +0100 using RuboCop version 0.49.1.
3
+ # on 2024-10-16 13:52:18 UTC using RuboCop version 1.67.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 2
10
- # Cop supports --auto-correct.
11
- # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
12
- # Include: **/Gemfile, **/gems.rb
13
- Bundler/OrderedGems:
14
- Exclude:
15
- - 'Gemfile'
9
+ # Offense count: 4
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: IndentationWidth.
12
+ # SupportedStyles: outdent, indent
13
+ Layout/AccessModifierIndentation:
14
+ EnforcedStyle: indent
16
15
 
17
16
  # Offense count: 2
18
- # Cop supports --auto-correct.
19
- Layout/AlignArray:
17
+ # This cop supports safe autocorrection (--autocorrect).
18
+ # Configuration parameters: EnforcedStyleAlignWith.
19
+ # SupportedStylesAlignWith: either, start_of_block, start_of_line
20
+ Layout/BlockAlignment:
20
21
  Exclude:
21
- - 'spec/lib/evva/google_sheet_spec.rb'
22
+ - 'spec/lib/evva/kotlin_generator_spec.rb'
22
23
 
23
- # Offense count: 1
24
- # Cop supports --auto-correct.
24
+ # Offense count: 10
25
+ # This cop supports safe autocorrection (--autocorrect).
25
26
  Layout/BlockEndNewline:
26
27
  Exclude:
27
- - 'spec/lib/evva/google_sheet_spec.rb'
28
+ - 'spec/lib/evva/kotlin_generator_spec.rb'
29
+ - 'spec/lib/evva/swift_generator_spec.rb'
28
30
 
29
- # Offense count: 1
30
- # Cop supports --auto-correct.
31
- # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
32
- Layout/EmptyLineBetweenDefs:
31
+ # Offense count: 8
32
+ # This cop supports safe autocorrection (--autocorrect).
33
+ # Configuration parameters: EnforcedStyle.
34
+ # SupportedStyles: leading, trailing
35
+ Layout/DotPosition:
33
36
  Exclude:
34
- - 'lib/evva/event_generator.rb'
37
+ - 'lib/evva/kotlin_generator.rb'
38
+ - 'lib/evva/swift_generator.rb'
39
+ - 'spec/evva_spec.rb'
35
40
 
36
41
  # Offense count: 1
37
- # Cop supports --auto-correct.
38
- Layout/EmptyLines:
42
+ # This cop supports safe autocorrection (--autocorrect).
43
+ # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
44
+ Layout/ExtraSpacing:
39
45
  Exclude:
40
- - 'lib/evva/event_generator.rb'
41
-
42
- # Offense count: 4
43
- # Cop supports --auto-correct.
44
- # Configuration parameters: EnforcedStyle, SupportedStyles.
45
- # SupportedStyles: empty_lines, no_empty_lines
46
- Layout/EmptyLinesAroundBlockBody:
47
- Exclude:
48
- - 'lib/evva.rb'
49
- - 'spec/lib/evva/event_generator_spec.rb'
50
46
  - 'spec/lib/evva/google_sheet_spec.rb'
51
- - 'spec/lib/evva/object_extension_spec.rb'
52
-
53
- # Offense count: 3
54
- # Cop supports --auto-correct.
55
- # Configuration parameters: EnforcedStyle, SupportedStyles.
56
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
57
- Layout/EmptyLinesAroundClassBody:
58
- Exclude:
59
- - 'lib/evva/android_generator.rb'
60
- - 'lib/evva/analytics_enum.rb'
61
- - 'lib/evva/analytics_event.rb'
62
47
 
63
48
  # Offense count: 1
64
- # Cop supports --auto-correct.
65
- # Configuration parameters: EnforcedStyle, SupportedStyles.
66
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
67
- Layout/EmptyLinesAroundModuleBody:
68
- Exclude:
69
- - 'lib/evva.rb'
70
-
71
- # Offense count: 6
72
- # Cop supports --auto-correct.
49
+ # This cop supports safe autocorrection (--autocorrect).
73
50
  # Configuration parameters: IndentationWidth.
74
- Layout/IndentAssignment:
75
- Exclude:
76
- - 'lib/evva.rb'
77
- - 'lib/evva/android_generator.rb'
78
- - 'spec/lib/evva/enum_generator_spec.rb'
51
+ # SupportedStyles: special_inside_parentheses, consistent, align_brackets
52
+ Layout/FirstArrayElementIndentation:
53
+ EnforcedStyle: consistent
79
54
 
80
- # Offense count: 5
81
- # Cop supports --auto-correct.
82
- # Configuration parameters: EnforcedStyle, SupportedStyles.
83
- # SupportedStyles: normal, rails
84
- Layout/IndentationConsistency:
55
+ # Offense count: 10
56
+ # This cop supports safe autocorrection (--autocorrect).
57
+ Layout/HeredocIndentation:
85
58
  Exclude:
86
- - 'spec/spec_helper.rb'
59
+ - 'spec/lib/evva/kotlin_generator_spec.rb'
60
+ - 'spec/lib/evva/swift_generator_spec.rb'
87
61
 
88
- # Offense count: 9
89
- # Cop supports --auto-correct.
90
- # Configuration parameters: Width, IgnoredPatterns.
62
+ # Offense count: 10
63
+ # This cop supports safe autocorrection (--autocorrect).
64
+ # Configuration parameters: Width, AllowedPatterns.
91
65
  Layout/IndentationWidth:
92
66
  Exclude:
93
- - 'spec/lib/evva/event_generator_spec.rb'
94
- - 'spec/spec_helper.rb'
67
+ - 'spec/lib/evva/kotlin_generator_spec.rb'
68
+ - 'spec/lib/evva/swift_generator_spec.rb'
95
69
 
96
- # Offense count: 1
97
- # Cop supports --auto-correct.
98
- # Configuration parameters: EnforcedStyle, SupportedStyles.
99
- # SupportedStyles: symmetrical, new_line, same_line
100
- Layout/MultilineArrayBraceLayout:
70
+ # Offense count: 10
71
+ # This cop supports safe autocorrection (--autocorrect).
72
+ Layout/MultilineBlockLayout:
101
73
  Exclude:
102
- - 'spec/lib/evva/google_sheet_spec.rb'
74
+ - 'spec/lib/evva/kotlin_generator_spec.rb'
75
+ - 'spec/lib/evva/swift_generator_spec.rb'
103
76
 
104
- # Offense count: 2
105
- # Cop supports --auto-correct.
106
- Layout/MultilineBlockLayout:
77
+ # Offense count: 3
78
+ # This cop supports safe autocorrection (--autocorrect).
79
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
80
+ # SupportedStyles: aligned, indented, indented_relative_to_receiver
81
+ Layout/MultilineMethodCallIndentation:
107
82
  Exclude:
108
- - 'spec/lib/evva/config_spec.rb'
109
- - 'spec/lib/evva/google_sheet_spec.rb'
83
+ - 'lib/evva/kotlin_generator.rb'
84
+ - 'lib/evva/swift_generator.rb'
110
85
 
111
- # Offense count: 2
112
- # Cop supports --auto-correct.
113
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
86
+ # Offense count: 4
87
+ # This cop supports safe autocorrection (--autocorrect).
88
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
114
89
  # SupportedStyles: aligned, indented
115
90
  Layout/MultilineOperationIndentation:
116
91
  Exclude:
117
- - 'lib/evva/android_generator.rb'
118
- - 'lib/evva/event_generator.rb'
92
+ - 'lib/evva/analytics_event.rb'
93
+ - 'lib/evva/analytics_property.rb'
119
94
 
120
- # Offense count: 11
121
- # Cop supports --auto-correct.
95
+ # Offense count: 7
96
+ # This cop supports safe autocorrection (--autocorrect).
122
97
  Layout/SpaceAfterComma:
123
98
  Exclude:
124
- - 'lib/evva/android_generator.rb'
125
- - 'lib/evva/data_source.rb'
126
- - 'lib/evva/object_extension.rb'
99
+ - 'lib/evva/kotlin_generator.rb'
100
+ - 'lib/evva/swift_generator.rb'
127
101
  - 'spec/lib/evva/google_sheet_spec.rb'
128
102
 
129
- # Offense count: 1
130
- # Cop supports --auto-correct.
131
- # Configuration parameters: EnforcedStyle, SupportedStyles.
132
- # SupportedStyles: space, no_space
133
- Layout/SpaceAroundEqualsInParameterDefault:
134
- Exclude:
135
- - 'lib/evva/object_extension.rb'
136
-
137
- # Offense count: 2
138
- # Cop supports --auto-correct.
139
- # Configuration parameters: AllowForAlignment.
140
- Layout/SpaceAroundOperators:
141
- Exclude:
142
- - 'lib/evva/enum_generator.rb'
143
- - 'spec/lib/evva/event_generator_spec.rb'
144
-
145
- # Offense count: 1
146
- # Cop supports --auto-correct.
147
- # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
103
+ # Offense count: 94
104
+ # This cop supports safe autocorrection (--autocorrect).
105
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
148
106
  # SupportedStyles: space, no_space, compact
149
107
  # SupportedStylesForEmptyBraces: space, no_space
150
108
  Layout/SpaceInsideHashLiteralBraces:
151
109
  Exclude:
152
- - 'spec/lib/evva/object_extension_spec.rb'
153
-
154
- # Offense count: 11
155
- # Cop supports --auto-correct.
156
- # Configuration parameters: EnforcedStyle, SupportedStyles.
157
- # SupportedStyles: final_newline, final_blank_line
158
- Layout/TrailingBlankLines:
159
- Exclude:
160
- - 'evva.gemspec'
161
- - 'lib/evva.rb'
162
- - 'lib/evva/android_generator.rb'
163
- - 'lib/evva/enum_generator.rb'
164
- - 'lib/evva/event_generator.rb'
165
- - 'lib/evva/google_sheet.rb'
166
- - 'lib/evva/analytics_enum.rb'
167
- - 'lib/evva/analytics_event.rb'
168
- - 'spec/lib/evva/enum_generator_spec.rb'
169
- - 'spec/lib/evva/event_generator_spec.rb'
110
+ - 'lib/evva/config.rb'
111
+ - 'lib/evva/logger.rb'
112
+ - 'spec/lib/evva/config_spec.rb'
170
113
  - 'spec/lib/evva/google_sheet_spec.rb'
114
+ - 'spec/lib/evva/kotlin_generator_spec.rb'
115
+ - 'spec/lib/evva/object_extension_spec.rb'
116
+ - 'spec/lib/evva/swift_generator_spec.rb'
171
117
 
172
- # Offense count: 17
173
- # Cop supports --auto-correct.
174
- Layout/TrailingWhitespace:
118
+ # Offense count: 1
119
+ # This cop supports safe autocorrection (--autocorrect).
120
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
121
+ Lint/AmbiguousBlockAssociation:
175
122
  Exclude:
176
- - 'lib/evva.rb'
177
- - 'lib/evva/android_generator.rb'
178
- - 'lib/evva/config.rb'
179
- - 'lib/evva/event_generator.rb'
180
- - 'spec/lib/evva/enum_generator_spec.rb'
181
- - 'spec/lib/evva/event_generator_spec.rb'
182
- - 'spec/lib/evva/google_sheet_spec.rb'
123
+ - 'spec/evva_spec.rb'
183
124
 
184
- # Offense count: 13
125
+ # Offense count: 9
126
+ # This cop supports safe autocorrection (--autocorrect).
185
127
  Lint/AmbiguousRegexpLiteral:
186
128
  Exclude:
187
129
  - 'spec/lib/evva/config_spec.rb'
188
- - 'spec/lib/evva/data_source_spec.rb'
189
130
  - 'spec/lib/evva/google_sheet_spec.rb'
190
131
  - 'spec/lib/evva/object_extension_spec.rb'
191
132
 
192
- # Offense count: 4
133
+ # Offense count: 3
134
+ # This cop supports unsafe autocorrection (--autocorrect-all).
193
135
  # Configuration parameters: AllowSafeAssignment.
194
136
  Lint/AssignmentInCondition:
195
137
  Exclude:
196
138
  - 'lib/evva.rb'
197
139
  - 'lib/evva/config.rb'
198
- - 'lib/evva/event_generator.rb'
199
-
200
- # Offense count: 1
201
- # Cop supports --auto-correct.
202
- # Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith.
203
- # SupportedStylesAlignWith: either, start_of_block, start_of_line
204
- Lint/BlockAlignment:
205
- Exclude:
206
- - 'spec/spec_helper.rb'
207
140
 
208
141
  # Offense count: 1
142
+ # This cop supports safe autocorrection (--autocorrect).
209
143
  Lint/ScriptPermission:
210
144
  Exclude:
211
145
  - 'bin/evva'
212
146
 
213
- # Offense count: 2
147
+ # Offense count: 1
214
148
  Lint/ShadowingOuterLocalVariable:
215
149
  Exclude:
216
- - 'lib/evva/data_source.rb'
217
- - 'lib/evva/object_extension.rb'
150
+ - 'lib/evva/swift_generator.rb'
218
151
 
219
- # Offense count: 6
152
+ # Offense count: 1
153
+ # This cop supports safe autocorrection (--autocorrect).
154
+ # Configuration parameters: AutoCorrect.
220
155
  Lint/UselessAssignment:
221
156
  Exclude:
222
157
  - 'lib/evva.rb'
223
- - 'lib/evva/android_generator.rb'
224
- - 'lib/evva/google_sheet.rb'
225
158
 
226
- # Offense count: 2
159
+ # Offense count: 1
160
+ # This cop supports safe autocorrection (--autocorrect).
161
+ # Configuration parameters: AutoCorrect, CheckForMethodsWithNoSideEffects.
227
162
  Lint/Void:
228
163
  Exclude:
229
164
  - 'lib/evva/analytics_enum.rb'
230
- - 'lib/evva/analytics_event.rb'
231
165
 
232
- # Offense count: 8
166
+ # Offense count: 7
167
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
233
168
  Metrics/AbcSize:
234
- Max: 34
169
+ Max: 44
235
170
 
236
- # Offense count: 9
237
- # Configuration parameters: CountComments, ExcludedMethods.
171
+ # Offense count: 14
172
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
173
+ # AllowedMethods: refine
238
174
  Metrics/BlockLength:
239
- Max: 80
175
+ Max: 220
176
+
177
+ # Offense count: 2
178
+ # Configuration parameters: CountComments, CountAsOne.
179
+ Metrics/ClassLength:
180
+ Max: 143
240
181
 
241
182
  # Offense count: 1
183
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
242
184
  Metrics/CyclomaticComplexity:
243
- Max: 10
244
-
245
- # Offense count: 39
246
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
247
- # URISchemes: http, https
248
- Metrics/LineLength:
249
- Max: 148
185
+ Max: 13
250
186
 
251
- # Offense count: 11
252
- # Configuration parameters: CountComments.
187
+ # Offense count: 6
188
+ # Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
253
189
  Metrics/MethodLength:
254
- Max: 20
190
+ Exclude:
191
+ - 'lib/evva.rb'
192
+ - 'lib/evva/kotlin_generator.rb'
193
+ - 'lib/evva/object_extension.rb'
194
+ - 'lib/evva/swift_generator.rb'
255
195
 
256
196
  # Offense count: 1
197
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
257
198
  Metrics/PerceivedComplexity:
258
- Max: 9
199
+ Max: 12
259
200
 
260
- # Offense count: 1
261
- # Cop supports --auto-correct.
262
- Security/YAMLLoad:
201
+ # Offense count: 10
202
+ # This cop supports safe autocorrection (--autocorrect).
203
+ # Configuration parameters: EnforcedStyle.
204
+ # SupportedStyles: lowercase, uppercase
205
+ Naming/HeredocDelimiterCase:
263
206
  Exclude:
264
- - 'lib/evva.rb'
207
+ - 'spec/lib/evva/kotlin_generator_spec.rb'
208
+ - 'spec/lib/evva/swift_generator_spec.rb'
265
209
 
266
- # Offense count: 1
267
- # Cop supports --auto-correct.
268
- Style/BlockComments:
210
+ # Offense count: 2
211
+ # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
212
+ # NamePrefix: is_, has_, have_
213
+ # ForbiddenPrefixes: is_, has_, have_
214
+ # AllowedMethods: is_a?
215
+ # MethodDefinitionMacros: define_method, define_singleton_method
216
+ Naming/PredicateName:
269
217
  Exclude:
270
- - 'spec/spec_helper.rb'
218
+ - 'spec/**/*'
219
+ - 'lib/evva/kotlin_generator.rb'
220
+ - 'lib/evva/swift_generator.rb'
271
221
 
272
- # Offense count: 2
273
- # Cop supports --auto-correct.
274
- # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
275
- # SupportedStyles: line_count_based, semantic, braces_for_chaining
222
+ # Offense count: 22
223
+ # This cop supports safe autocorrection (--autocorrect).
224
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
225
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
276
226
  # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
277
227
  # FunctionalMethods: let, let!, subject, watch
278
- # IgnoredMethods: lambda, proc, it
228
+ # AllowedMethods: lambda, proc, it
279
229
  Style/BlockDelimiters:
280
230
  Exclude:
281
- - 'spec/lib/evva/config_spec.rb'
282
- - 'spec/lib/evva/google_sheet_spec.rb'
283
-
284
- # Offense count: 3
285
- # Cop supports --auto-correct.
286
- # Configuration parameters: EnforcedStyle, SupportedStyles.
287
- # SupportedStyles: braces, no_braces, context_dependent
288
- Style/BracesAroundHashParameters:
289
- Exclude:
290
- - 'spec/lib/evva/config_spec.rb'
291
- - 'spec/lib/evva/object_extension_spec.rb'
231
+ - 'lib/evva/swift_generator.rb'
232
+ - 'spec/evva_spec.rb'
233
+ - 'spec/lib/evva/kotlin_generator_spec.rb'
234
+ - 'spec/lib/evva/swift_generator_spec.rb'
292
235
 
293
236
  # Offense count: 1
294
- # Cop supports --auto-correct.
295
- Style/ColonMethodCall:
237
+ # This cop supports safe autocorrection (--autocorrect).
238
+ # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
239
+ # SupportedStyles: assign_to_condition, assign_inside_condition
240
+ Style/ConditionalAssignment:
296
241
  Exclude:
297
- - 'lib/evva.rb'
242
+ - 'lib/evva/kotlin_generator.rb'
298
243
 
299
- # Offense count: 10
300
- Style/Documentation:
301
- Exclude:
302
- - 'spec/**/*'
303
- - 'test/**/*'
304
- - 'lib/evva.rb'
305
- - 'lib/evva/android_generator.rb'
306
- - 'lib/evva/config.rb'
307
- - 'lib/evva/data_source.rb'
308
- - 'lib/evva/enum_generator.rb'
309
- - 'lib/evva/event_generator.rb'
310
- - 'lib/evva/google_sheet.rb'
311
- - 'lib/evva/logger.rb'
312
- - 'lib/evva/analytics_enum.rb'
313
- - 'lib/evva/analytics_event.rb'
244
+ # Offense count: 23
245
+ # This cop supports unsafe autocorrection (--autocorrect-all).
246
+ # Configuration parameters: EnforcedStyle.
247
+ # SupportedStyles: always, always_true, never
248
+ Style/FrozenStringLiteralComment:
249
+ Enabled: false
314
250
 
315
251
  # Offense count: 1
316
- # Cop supports --auto-correct.
317
- Style/EachWithObject:
318
- Exclude:
319
- - 'lib/evva/object_extension.rb'
320
-
321
- # Offense count: 2
322
- # Configuration parameters: MinBodyLength.
252
+ # This cop supports safe autocorrection (--autocorrect).
253
+ # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
323
254
  Style/GuardClause:
324
255
  Exclude:
325
- - 'lib/evva/enum_generator.rb'
326
256
  - 'lib/evva/logger.rb'
327
257
 
328
- # Offense count: 21
329
- # Cop supports --auto-correct.
330
- # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
258
+ # Offense count: 167
259
+ # This cop supports safe autocorrection (--autocorrect).
260
+ # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
331
261
  # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
262
+ # SupportedShorthandSyntax: always, never, either, consistent, either_consistent
332
263
  Style/HashSyntax:
333
264
  Exclude:
265
+ - 'Gemfile'
266
+ - 'Rakefile'
267
+ - 'lib/evva.rb'
268
+ - 'lib/evva/config.rb'
269
+ - 'lib/evva/google_sheet.rb'
270
+ - 'lib/evva/kotlin_generator.rb'
271
+ - 'lib/evva/logger.rb'
272
+ - 'lib/evva/swift_generator.rb'
273
+ - 'spec/lib/evva/config_spec.rb'
334
274
  - 'spec/lib/evva/google_sheet_spec.rb'
275
+ - 'spec/lib/evva/kotlin_generator_spec.rb'
276
+ - 'spec/lib/evva/object_extension_spec.rb'
277
+ - 'spec/lib/evva/swift_generator_spec.rb'
335
278
 
336
- # Offense count: 3
337
- # Cop supports --auto-correct.
338
- # Configuration parameters: InverseMethods, InverseBlocks.
339
- Style/InverseMethods:
279
+ # Offense count: 2
280
+ # This cop supports safe autocorrection (--autocorrect).
281
+ Style/IfUnlessModifier:
340
282
  Exclude:
341
- - 'lib/evva/google_sheet.rb'
283
+ - 'lib/evva/logger.rb'
284
+ - 'lib/evva/object_extension.rb'
342
285
 
343
286
  # Offense count: 1
344
- # Cop supports --auto-correct.
345
- Style/LineEndConcatenation:
346
- Exclude:
347
- - 'lib/evva/event_generator.rb'
348
-
349
- # Offense count: 8
350
- # Cop supports --auto-correct.
351
- Style/MethodCallWithoutArgsParentheses:
352
- Exclude:
353
- - 'lib/evva.rb'
354
- - 'lib/evva/android_generator.rb'
355
- - 'spec/lib/evva/enum_generator_spec.rb'
356
- - 'spec/lib/evva/event_generator_spec.rb'
357
-
358
- # Offense count: 2
359
- # Configuration parameters: EnforcedStyle, SupportedStyles.
360
- # SupportedStyles: module_function, extend_self
287
+ # This cop supports unsafe autocorrection (--autocorrect-all).
288
+ # Configuration parameters: EnforcedStyle, Autocorrect.
289
+ # SupportedStyles: module_function, extend_self, forbidden
361
290
  Style/ModuleFunction:
362
291
  Exclude:
363
292
  - 'lib/evva.rb'
364
- - 'lib/evva/logger.rb'
365
293
 
366
- # Offense count: 5
367
- # Cop supports --auto-correct.
294
+ # Offense count: 10
295
+ # This cop supports unsafe autocorrection (--autocorrect-all).
296
+ # Configuration parameters: EnforcedStyle.
297
+ # SupportedStyles: literals, strict
368
298
  Style/MutableConstant:
369
299
  Exclude:
370
- - 'lib/evva/config.rb'
371
- - 'lib/evva/version.rb'
300
+ - 'lib/evva/google_sheet.rb'
301
+ - 'lib/evva/kotlin_generator.rb'
302
+ - 'lib/evva/swift_generator.rb'
372
303
 
373
- # Offense count: 3
374
- # Cop supports --auto-correct.
375
- # Configuration parameters: EnforcedStyle, SupportedStyles.
376
- # SupportedStyles: both, prefix, postfix
377
- Style/NegatedIf:
304
+ # Offense count: 4
305
+ # This cop supports unsafe autocorrection (--autocorrect-all).
306
+ # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
307
+ # SupportedStyles: predicate, comparison
308
+ Style/NumericPredicate:
378
309
  Exclude:
379
- - 'lib/evva.rb'
380
- - 'lib/evva/enum_generator.rb'
381
- - 'lib/evva/event_generator.rb'
310
+ - 'spec/**/*'
311
+ - 'lib/evva/logger.rb'
382
312
 
383
313
  # Offense count: 1
384
- # Cop supports --auto-correct.
385
- Style/NilComparison:
314
+ # Configuration parameters: AllowedMethods.
315
+ # AllowedMethods: respond_to_missing?
316
+ Style/OptionalBooleanParameter:
386
317
  Exclude:
387
- - 'lib/evva/object_extension.rb'
318
+ - 'lib/evva/kotlin_generator.rb'
388
319
 
389
- # Offense count: 1
390
- # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
391
- # NamePrefix: is_, has_, have_
392
- # NamePrefixBlacklist: is_, has_, have_
393
- # NameWhitelist: is_a?
394
- Style/PredicateName:
320
+ # Offense count: 4
321
+ # This cop supports safe autocorrection (--autocorrect).
322
+ Style/PerlBackrefs:
395
323
  Exclude:
396
- - 'spec/**/*'
397
- - 'lib/evva/android_generator.rb'
324
+ - 'lib/evva/kotlin_generator.rb'
325
+ - 'lib/evva/swift_generator.rb'
398
326
 
399
- # Offense count: 6
400
- # Cop supports --auto-correct.
401
- # Configuration parameters: SupportedStyles.
327
+ # Offense count: 3
328
+ # This cop supports unsafe autocorrection (--autocorrect-all).
329
+ # Configuration parameters: EnforcedStyle, AllowedCompactTypes.
402
330
  # SupportedStyles: compact, exploded
403
331
  Style/RaiseArgs:
404
- EnforcedStyle: compact
405
-
406
- # Offense count: 9
407
- # Cop supports --auto-correct.
408
- Style/RedundantSelf:
409
332
  Exclude:
410
- - 'lib/evva/analytics_enum.rb'
411
- - 'lib/evva/analytics_event.rb'
333
+ - 'lib/evva/config.rb'
412
334
  - 'lib/evva/object_extension.rb'
413
335
 
336
+ # Offense count: 2
337
+ # This cop supports safe autocorrection (--autocorrect).
338
+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
339
+ # SupportedStyles: slashes, percent_r, mixed
340
+ Style/RegexpLiteral:
341
+ Exclude:
342
+ - 'lib/evva/kotlin_generator.rb'
343
+ - 'lib/evva/swift_generator.rb'
344
+
414
345
  # Offense count: 1
415
- # Cop supports --auto-correct.
346
+ # This cop supports safe autocorrection (--autocorrect).
416
347
  # Configuration parameters: AllowAsExpressionSeparator.
417
348
  Style/Semicolon:
418
349
  Exclude:
419
350
  - 'lib/evva/object_extension.rb'
420
351
 
421
- # Offense count: 143
422
- # Cop supports --auto-correct.
423
- # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
352
+ # Offense count: 307
353
+ # This cop supports safe autocorrection (--autocorrect).
354
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
424
355
  # SupportedStyles: single_quotes, double_quotes
425
356
  Style/StringLiterals:
426
- Exclude:
427
- - 'evva.gemspec'
428
- - 'lib/evva.rb'
429
- - 'lib/evva/android_generator.rb'
430
- - 'lib/evva/config.rb'
431
- - 'lib/evva/enum_generator.rb'
432
- - 'lib/evva/event_generator.rb'
433
- - 'lib/evva/logger.rb'
434
- - 'lib/evva/object_extension.rb'
435
- - 'spec/lib/evva/config_spec.rb'
436
- - 'spec/lib/evva/data_source_spec.rb'
437
- - 'spec/lib/evva/enum_generator_spec.rb'
438
- - 'spec/lib/evva/event_generator_spec.rb'
439
- - 'spec/lib/evva/google_sheet_spec.rb'
440
- - 'spec/lib/evva/logger_spec.rb'
441
- - 'spec/lib/evva/object_extension_spec.rb'
442
-
443
- # Offense count: 2
444
- # Cop supports --auto-correct.
445
- # Configuration parameters: EnforcedStyle, SupportedStyles.
446
- # SupportedStyles: single_quotes, double_quotes
447
- Style/StringLiteralsInInterpolation:
448
- Exclude:
449
- - 'lib/evva/android_generator.rb'
357
+ Enabled: false
450
358
 
451
- # Offense count: 1
452
- # Cop supports --auto-correct.
453
- # Configuration parameters: IgnoredMethods.
454
- # IgnoredMethods: respond_to, define_method
359
+ # Offense count: 3
360
+ # This cop supports unsafe autocorrection (--autocorrect-all).
361
+ # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
362
+ # AllowedMethods: define_method
455
363
  Style/SymbolProc:
456
364
  Exclude:
457
- - 'lib/evva/object_extension.rb'
365
+ - 'lib/evva/kotlin_generator.rb'
366
+ - 'lib/evva/swift_generator.rb'
458
367
 
459
- # Offense count: 1
460
- # Cop supports --auto-correct.
461
- Style/UnneededInterpolation:
368
+ # Offense count: 11
369
+ # This cop supports safe autocorrection (--autocorrect).
370
+ # Configuration parameters: EnforcedStyleForMultiline.
371
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
372
+ Style/TrailingCommaInArrayLiteral:
462
373
  Exclude:
463
- - 'lib/evva/android_generator.rb'
374
+ - 'spec/lib/evva/google_sheet_spec.rb'
375
+ - 'spec/lib/evva/kotlin_generator_spec.rb'
376
+ - 'spec/lib/evva/swift_generator_spec.rb'
464
377
 
465
- # Offense count: 1
466
- # Configuration parameters: EnforcedStyle, SupportedStyles.
467
- # SupportedStyles: snake_case, camelCase
468
- Style/VariableName:
378
+ # Offense count: 12
379
+ # This cop supports safe autocorrection (--autocorrect).
380
+ # Configuration parameters: EnforcedStyleForMultiline.
381
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
382
+ Style/TrailingCommaInHashLiteral:
469
383
  Exclude:
470
- - 'lib/evva/google_sheet.rb'
384
+ - 'lib/evva/config.rb'
385
+ - 'lib/evva/kotlin_generator.rb'
386
+ - 'lib/evva/swift_generator.rb'
387
+ - 'spec/lib/evva/config_spec.rb'
471
388
 
472
- # Offense count: 5
473
- # Cop supports --auto-correct.
474
- # Configuration parameters: SupportedStyles, MinSize, WordRegex.
389
+ # Offense count: 4
390
+ # This cop supports safe autocorrection (--autocorrect).
391
+ # Configuration parameters: WordRegex.
475
392
  # SupportedStyles: percent, brackets
476
393
  Style/WordArray:
477
- EnforcedStyle: brackets
394
+ EnforcedStyle: percent
395
+ MinSize: 5