evva 0.4.4 → 0.6.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.
data/.rubocop_todo.yml CHANGED
@@ -1,477 +1,383 @@
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
185
+ Max: 13
244
186
 
245
- # Offense count: 39
246
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
247
- # URISchemes: http, https
248
- Metrics/LineLength:
249
- Max: 148
250
-
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
255
-
256
- # Offense count: 1
257
- Metrics/PerceivedComplexity:
258
- Max: 9
259
-
260
- # Offense count: 1
261
- # Cop supports --auto-correct.
262
- Security/YAMLLoad:
263
190
  Exclude:
264
191
  - 'lib/evva.rb'
192
+ - 'lib/evva/kotlin_generator.rb'
193
+ - 'lib/evva/object_extension.rb'
194
+ - 'lib/evva/swift_generator.rb'
265
195
 
266
196
  # Offense count: 1
267
- # Cop supports --auto-correct.
268
- Style/BlockComments:
269
- Exclude:
270
- - 'spec/spec_helper.rb'
197
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
198
+ Metrics/PerceivedComplexity:
199
+ Max: 12
271
200
 
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
201
+ # Offense count: 10
202
+ # This cop supports safe autocorrection (--autocorrect).
203
+ # Configuration parameters: EnforcedStyle.
204
+ # SupportedStyles: lowercase, uppercase
205
+ Naming/HeredocDelimiterCase:
206
+ Exclude:
207
+ - 'spec/lib/evva/kotlin_generator_spec.rb'
208
+ - 'spec/lib/evva/swift_generator_spec.rb'
209
+
210
+ # Offense count: 22
211
+ # This cop supports safe autocorrection (--autocorrect).
212
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
213
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
276
214
  # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
277
215
  # FunctionalMethods: let, let!, subject, watch
278
- # IgnoredMethods: lambda, proc, it
216
+ # AllowedMethods: lambda, proc, it
279
217
  Style/BlockDelimiters:
280
218
  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'
219
+ - 'lib/evva/swift_generator.rb'
220
+ - 'spec/evva_spec.rb'
221
+ - 'spec/lib/evva/kotlin_generator_spec.rb'
222
+ - 'spec/lib/evva/swift_generator_spec.rb'
292
223
 
293
224
  # Offense count: 1
294
- # Cop supports --auto-correct.
295
- Style/ColonMethodCall:
225
+ # This cop supports safe autocorrection (--autocorrect).
226
+ # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
227
+ # SupportedStyles: assign_to_condition, assign_inside_condition
228
+ Style/ConditionalAssignment:
296
229
  Exclude:
297
- - 'lib/evva.rb'
230
+ - 'lib/evva/kotlin_generator.rb'
298
231
 
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'
232
+ # Offense count: 23
233
+ # This cop supports unsafe autocorrection (--autocorrect-all).
234
+ # Configuration parameters: EnforcedStyle.
235
+ # SupportedStyles: always, always_true, never
236
+ Style/FrozenStringLiteralComment:
237
+ Enabled: false
314
238
 
315
239
  # 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.
240
+ # This cop supports safe autocorrection (--autocorrect).
241
+ # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
323
242
  Style/GuardClause:
324
243
  Exclude:
325
- - 'lib/evva/enum_generator.rb'
326
244
  - 'lib/evva/logger.rb'
327
245
 
328
- # Offense count: 21
329
- # Cop supports --auto-correct.
330
- # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
246
+ # Offense count: 167
247
+ # This cop supports safe autocorrection (--autocorrect).
248
+ # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
331
249
  # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
250
+ # SupportedShorthandSyntax: always, never, either, consistent, either_consistent
332
251
  Style/HashSyntax:
333
252
  Exclude:
253
+ - 'Gemfile'
254
+ - 'Rakefile'
255
+ - 'lib/evva.rb'
256
+ - 'lib/evva/config.rb'
257
+ - 'lib/evva/google_sheet.rb'
258
+ - 'lib/evva/kotlin_generator.rb'
259
+ - 'lib/evva/logger.rb'
260
+ - 'lib/evva/swift_generator.rb'
261
+ - 'spec/lib/evva/config_spec.rb'
334
262
  - 'spec/lib/evva/google_sheet_spec.rb'
263
+ - 'spec/lib/evva/kotlin_generator_spec.rb'
264
+ - 'spec/lib/evva/object_extension_spec.rb'
265
+ - 'spec/lib/evva/swift_generator_spec.rb'
335
266
 
336
- # Offense count: 3
337
- # Cop supports --auto-correct.
338
- # Configuration parameters: InverseMethods, InverseBlocks.
339
- Style/InverseMethods:
267
+ # Offense count: 2
268
+ # This cop supports safe autocorrection (--autocorrect).
269
+ Style/IfUnlessModifier:
340
270
  Exclude:
341
- - 'lib/evva/google_sheet.rb'
271
+ - 'lib/evva/logger.rb'
272
+ - 'lib/evva/object_extension.rb'
342
273
 
343
274
  # 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
275
+ # This cop supports unsafe autocorrection (--autocorrect-all).
276
+ # Configuration parameters: EnforcedStyle, Autocorrect.
277
+ # SupportedStyles: module_function, extend_self, forbidden
361
278
  Style/ModuleFunction:
362
279
  Exclude:
363
280
  - 'lib/evva.rb'
364
- - 'lib/evva/logger.rb'
365
281
 
366
- # Offense count: 5
367
- # Cop supports --auto-correct.
282
+ # Offense count: 10
283
+ # This cop supports unsafe autocorrection (--autocorrect-all).
284
+ # Configuration parameters: EnforcedStyle.
285
+ # SupportedStyles: literals, strict
368
286
  Style/MutableConstant:
369
287
  Exclude:
370
- - 'lib/evva/config.rb'
371
- - 'lib/evva/version.rb'
288
+ - 'lib/evva/google_sheet.rb'
289
+ - 'lib/evva/kotlin_generator.rb'
290
+ - 'lib/evva/swift_generator.rb'
372
291
 
373
- # Offense count: 3
374
- # Cop supports --auto-correct.
375
- # Configuration parameters: EnforcedStyle, SupportedStyles.
376
- # SupportedStyles: both, prefix, postfix
377
- Style/NegatedIf:
292
+ # Offense count: 4
293
+ # This cop supports unsafe autocorrection (--autocorrect-all).
294
+ # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
295
+ # SupportedStyles: predicate, comparison
296
+ Style/NumericPredicate:
378
297
  Exclude:
379
- - 'lib/evva.rb'
380
- - 'lib/evva/enum_generator.rb'
381
- - 'lib/evva/event_generator.rb'
298
+ - 'spec/**/*'
299
+ - 'lib/evva/logger.rb'
382
300
 
383
301
  # Offense count: 1
384
- # Cop supports --auto-correct.
385
- Style/NilComparison:
302
+ # Configuration parameters: AllowedMethods.
303
+ # AllowedMethods: respond_to_missing?
304
+ Style/OptionalBooleanParameter:
386
305
  Exclude:
387
- - 'lib/evva/object_extension.rb'
306
+ - 'lib/evva/kotlin_generator.rb'
388
307
 
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:
308
+ # Offense count: 4
309
+ # This cop supports safe autocorrection (--autocorrect).
310
+ Style/PerlBackrefs:
395
311
  Exclude:
396
- - 'spec/**/*'
397
- - 'lib/evva/android_generator.rb'
312
+ - 'lib/evva/kotlin_generator.rb'
313
+ - 'lib/evva/swift_generator.rb'
398
314
 
399
- # Offense count: 6
400
- # Cop supports --auto-correct.
401
- # Configuration parameters: SupportedStyles.
315
+ # Offense count: 3
316
+ # This cop supports unsafe autocorrection (--autocorrect-all).
317
+ # Configuration parameters: EnforcedStyle, AllowedCompactTypes.
402
318
  # SupportedStyles: compact, exploded
403
319
  Style/RaiseArgs:
404
- EnforcedStyle: compact
405
-
406
- # Offense count: 9
407
- # Cop supports --auto-correct.
408
- Style/RedundantSelf:
409
320
  Exclude:
410
- - 'lib/evva/analytics_enum.rb'
411
- - 'lib/evva/analytics_event.rb'
321
+ - 'lib/evva/config.rb'
412
322
  - 'lib/evva/object_extension.rb'
413
323
 
324
+ # Offense count: 2
325
+ # This cop supports safe autocorrection (--autocorrect).
326
+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
327
+ # SupportedStyles: slashes, percent_r, mixed
328
+ Style/RegexpLiteral:
329
+ Exclude:
330
+ - 'lib/evva/kotlin_generator.rb'
331
+ - 'lib/evva/swift_generator.rb'
332
+
414
333
  # Offense count: 1
415
- # Cop supports --auto-correct.
334
+ # This cop supports safe autocorrection (--autocorrect).
416
335
  # Configuration parameters: AllowAsExpressionSeparator.
417
336
  Style/Semicolon:
418
337
  Exclude:
419
338
  - 'lib/evva/object_extension.rb'
420
339
 
421
- # Offense count: 143
422
- # Cop supports --auto-correct.
423
- # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
340
+ # Offense count: 307
341
+ # This cop supports safe autocorrection (--autocorrect).
342
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
424
343
  # SupportedStyles: single_quotes, double_quotes
425
344
  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'
345
+ Enabled: false
450
346
 
451
- # Offense count: 1
452
- # Cop supports --auto-correct.
453
- # Configuration parameters: IgnoredMethods.
454
- # IgnoredMethods: respond_to, define_method
347
+ # Offense count: 3
348
+ # This cop supports unsafe autocorrection (--autocorrect-all).
349
+ # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
350
+ # AllowedMethods: define_method
455
351
  Style/SymbolProc:
456
352
  Exclude:
457
- - 'lib/evva/object_extension.rb'
353
+ - 'lib/evva/kotlin_generator.rb'
354
+ - 'lib/evva/swift_generator.rb'
458
355
 
459
- # Offense count: 1
460
- # Cop supports --auto-correct.
461
- Style/UnneededInterpolation:
356
+ # Offense count: 11
357
+ # This cop supports safe autocorrection (--autocorrect).
358
+ # Configuration parameters: EnforcedStyleForMultiline.
359
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
360
+ Style/TrailingCommaInArrayLiteral:
462
361
  Exclude:
463
- - 'lib/evva/android_generator.rb'
362
+ - 'spec/lib/evva/google_sheet_spec.rb'
363
+ - 'spec/lib/evva/kotlin_generator_spec.rb'
364
+ - 'spec/lib/evva/swift_generator_spec.rb'
464
365
 
465
- # Offense count: 1
466
- # Configuration parameters: EnforcedStyle, SupportedStyles.
467
- # SupportedStyles: snake_case, camelCase
468
- Style/VariableName:
366
+ # Offense count: 12
367
+ # This cop supports safe autocorrection (--autocorrect).
368
+ # Configuration parameters: EnforcedStyleForMultiline.
369
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
370
+ Style/TrailingCommaInHashLiteral:
469
371
  Exclude:
470
- - 'lib/evva/google_sheet.rb'
372
+ - 'lib/evva/config.rb'
373
+ - 'lib/evva/kotlin_generator.rb'
374
+ - 'lib/evva/swift_generator.rb'
375
+ - 'spec/lib/evva/config_spec.rb'
471
376
 
472
- # Offense count: 5
473
- # Cop supports --auto-correct.
474
- # Configuration parameters: SupportedStyles, MinSize, WordRegex.
377
+ # Offense count: 4
378
+ # This cop supports safe autocorrection (--autocorrect).
379
+ # Configuration parameters: WordRegex.
475
380
  # SupportedStyles: percent, brackets
476
381
  Style/WordArray:
477
- EnforcedStyle: brackets
382
+ EnforcedStyle: percent
383
+ MinSize: 5