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.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +30 -0
- data/{rubocop.yml → .rubocop.yml} +10 -6
- data/.rubocop_todo.yml +235 -329
- data/Gemfile +11 -10
- data/Gemfile.lock +78 -53
- data/README.md +1 -1
- data/bin/evva +1 -1
- data/changelog.md +14 -0
- data/evva.gemspec +15 -12
- data/lib/evva/config.rb +1 -1
- data/lib/evva/file_reader.rb +1 -1
- data/lib/evva/google_sheet.rb +17 -17
- data/lib/evva/{android_generator.rb → kotlin_generator.rb} +11 -13
- data/lib/evva/logger.rb +6 -6
- data/lib/evva/object_extension.rb +1 -1
- data/lib/evva/swift_generator.rb +12 -14
- data/lib/evva/templates/kotlin/events.kt +1 -1
- data/lib/evva/version.rb +2 -2
- data/lib/evva.rb +24 -24
- data/spec/lib/evva/config_spec.rb +25 -25
- data/spec/lib/evva/google_sheet_spec.rb +21 -21
- data/spec/lib/evva/{android_generator_spec.rb → kotlin_generator_spec.rb} +31 -31
- data/spec/lib/evva/logger_spec.rb +9 -9
- data/spec/lib/evva/object_extension_spec.rb +28 -28
- data/spec/lib/evva/swift_generator_spec.rb +14 -14
- data/spec/spec_helper.rb +4 -4
- metadata +30 -17
- data/.travis.yml +0 -1
data/.rubocop_todo.yml
CHANGED
@@ -1,477 +1,383 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
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:
|
10
|
-
#
|
11
|
-
# Configuration parameters:
|
12
|
-
#
|
13
|
-
|
14
|
-
|
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
|
-
#
|
19
|
-
|
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/
|
22
|
+
- 'spec/lib/evva/kotlin_generator_spec.rb'
|
22
23
|
|
23
|
-
# Offense count:
|
24
|
-
#
|
24
|
+
# Offense count: 10
|
25
|
+
# This cop supports safe autocorrection (--autocorrect).
|
25
26
|
Layout/BlockEndNewline:
|
26
27
|
Exclude:
|
27
|
-
- 'spec/lib/evva/
|
28
|
+
- 'spec/lib/evva/kotlin_generator_spec.rb'
|
29
|
+
- 'spec/lib/evva/swift_generator_spec.rb'
|
28
30
|
|
29
|
-
# Offense count:
|
30
|
-
#
|
31
|
-
# Configuration parameters:
|
32
|
-
|
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/
|
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
|
-
#
|
38
|
-
|
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
|
-
#
|
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
|
-
|
75
|
-
|
76
|
-
|
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:
|
81
|
-
#
|
82
|
-
|
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/
|
59
|
+
- 'spec/lib/evva/kotlin_generator_spec.rb'
|
60
|
+
- 'spec/lib/evva/swift_generator_spec.rb'
|
87
61
|
|
88
|
-
# Offense count:
|
89
|
-
#
|
90
|
-
# Configuration parameters: Width,
|
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/
|
94
|
-
- 'spec/
|
67
|
+
- 'spec/lib/evva/kotlin_generator_spec.rb'
|
68
|
+
- 'spec/lib/evva/swift_generator_spec.rb'
|
95
69
|
|
96
|
-
# Offense count:
|
97
|
-
#
|
98
|
-
|
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/
|
74
|
+
- 'spec/lib/evva/kotlin_generator_spec.rb'
|
75
|
+
- 'spec/lib/evva/swift_generator_spec.rb'
|
103
76
|
|
104
|
-
# Offense count:
|
105
|
-
#
|
106
|
-
|
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
|
-
- '
|
109
|
-
- '
|
83
|
+
- 'lib/evva/kotlin_generator.rb'
|
84
|
+
- 'lib/evva/swift_generator.rb'
|
110
85
|
|
111
|
-
# Offense count:
|
112
|
-
#
|
113
|
-
# Configuration parameters: EnforcedStyle,
|
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/
|
118
|
-
- 'lib/evva/
|
92
|
+
- 'lib/evva/analytics_event.rb'
|
93
|
+
- 'lib/evva/analytics_property.rb'
|
119
94
|
|
120
|
-
# Offense count:
|
121
|
-
#
|
95
|
+
# Offense count: 7
|
96
|
+
# This cop supports safe autocorrection (--autocorrect).
|
122
97
|
Layout/SpaceAfterComma:
|
123
98
|
Exclude:
|
124
|
-
- 'lib/evva/
|
125
|
-
- 'lib/evva/
|
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:
|
130
|
-
#
|
131
|
-
# Configuration parameters: EnforcedStyle,
|
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
|
-
- '
|
153
|
-
|
154
|
-
|
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:
|
173
|
-
#
|
174
|
-
|
118
|
+
# Offense count: 1
|
119
|
+
# This cop supports safe autocorrection (--autocorrect).
|
120
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
121
|
+
Lint/AmbiguousBlockAssociation:
|
175
122
|
Exclude:
|
176
|
-
- '
|
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:
|
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:
|
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:
|
147
|
+
# Offense count: 1
|
214
148
|
Lint/ShadowingOuterLocalVariable:
|
215
149
|
Exclude:
|
216
|
-
- 'lib/evva/
|
217
|
-
- 'lib/evva/object_extension.rb'
|
150
|
+
- 'lib/evva/swift_generator.rb'
|
218
151
|
|
219
|
-
# Offense count:
|
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:
|
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:
|
166
|
+
# Offense count: 7
|
167
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
233
168
|
Metrics/AbcSize:
|
234
|
-
Max:
|
169
|
+
Max: 44
|
235
170
|
|
236
|
-
# Offense count:
|
237
|
-
# Configuration parameters: CountComments,
|
171
|
+
# Offense count: 14
|
172
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
173
|
+
# AllowedMethods: refine
|
238
174
|
Metrics/BlockLength:
|
239
|
-
Max:
|
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:
|
185
|
+
Max: 13
|
244
186
|
|
245
|
-
# Offense count:
|
246
|
-
# Configuration parameters:
|
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
|
-
#
|
268
|
-
|
269
|
-
|
270
|
-
- 'spec/spec_helper.rb'
|
197
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
198
|
+
Metrics/PerceivedComplexity:
|
199
|
+
Max: 12
|
271
200
|
|
272
|
-
# Offense count:
|
273
|
-
#
|
274
|
-
# Configuration parameters: EnforcedStyle
|
275
|
-
# SupportedStyles:
|
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
|
-
#
|
216
|
+
# AllowedMethods: lambda, proc, it
|
279
217
|
Style/BlockDelimiters:
|
280
218
|
Exclude:
|
281
|
-
- '
|
282
|
-
- 'spec/
|
283
|
-
|
284
|
-
|
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
|
-
#
|
295
|
-
|
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:
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
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
|
-
#
|
317
|
-
|
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:
|
329
|
-
#
|
330
|
-
# Configuration parameters: EnforcedStyle,
|
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:
|
337
|
-
#
|
338
|
-
|
339
|
-
Style/InverseMethods:
|
267
|
+
# Offense count: 2
|
268
|
+
# This cop supports safe autocorrection (--autocorrect).
|
269
|
+
Style/IfUnlessModifier:
|
340
270
|
Exclude:
|
341
|
-
- 'lib/evva/
|
271
|
+
- 'lib/evva/logger.rb'
|
272
|
+
- 'lib/evva/object_extension.rb'
|
342
273
|
|
343
274
|
# Offense count: 1
|
344
|
-
#
|
345
|
-
|
346
|
-
|
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:
|
367
|
-
#
|
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/
|
371
|
-
- 'lib/evva/
|
288
|
+
- 'lib/evva/google_sheet.rb'
|
289
|
+
- 'lib/evva/kotlin_generator.rb'
|
290
|
+
- 'lib/evva/swift_generator.rb'
|
372
291
|
|
373
|
-
# Offense count:
|
374
|
-
#
|
375
|
-
# Configuration parameters: EnforcedStyle,
|
376
|
-
# SupportedStyles:
|
377
|
-
Style/
|
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
|
-
- '
|
380
|
-
- 'lib/evva/
|
381
|
-
- 'lib/evva/event_generator.rb'
|
298
|
+
- 'spec/**/*'
|
299
|
+
- 'lib/evva/logger.rb'
|
382
300
|
|
383
301
|
# Offense count: 1
|
384
|
-
#
|
385
|
-
|
302
|
+
# Configuration parameters: AllowedMethods.
|
303
|
+
# AllowedMethods: respond_to_missing?
|
304
|
+
Style/OptionalBooleanParameter:
|
386
305
|
Exclude:
|
387
|
-
- 'lib/evva/
|
306
|
+
- 'lib/evva/kotlin_generator.rb'
|
388
307
|
|
389
|
-
# Offense count:
|
390
|
-
#
|
391
|
-
|
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
|
-
- '
|
397
|
-
- 'lib/evva/
|
312
|
+
- 'lib/evva/kotlin_generator.rb'
|
313
|
+
- 'lib/evva/swift_generator.rb'
|
398
314
|
|
399
|
-
# Offense count:
|
400
|
-
#
|
401
|
-
# Configuration parameters:
|
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/
|
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
|
-
#
|
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:
|
422
|
-
#
|
423
|
-
# Configuration parameters: EnforcedStyle,
|
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
|
-
|
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:
|
452
|
-
#
|
453
|
-
# Configuration parameters:
|
454
|
-
#
|
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/
|
353
|
+
- 'lib/evva/kotlin_generator.rb'
|
354
|
+
- 'lib/evva/swift_generator.rb'
|
458
355
|
|
459
|
-
# Offense count:
|
460
|
-
#
|
461
|
-
|
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/
|
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:
|
466
|
-
#
|
467
|
-
#
|
468
|
-
|
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/
|
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:
|
473
|
-
#
|
474
|
-
# Configuration parameters:
|
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:
|
382
|
+
EnforcedStyle: percent
|
383
|
+
MinSize: 5
|