-
Notifications
You must be signed in to change notification settings - Fork 8
/
.rubocop_todo.yml
307 lines (268 loc) · 10.7 KB
/
.rubocop_todo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-12-12 15:16:08 UTC using RuboCop version 1.58.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
# Include: **/*.gemspec
Gemspec/OrderedDependencies:
Exclude:
- 'ad_localize.gemspec'
# Offense count: 87
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLineAfterMagicComment:
Enabled: false
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
Lint/UnusedMethodArgument:
Exclude:
- 'lib/ad_localize/interactors/base_generate_files.rb'
- 'lib/ad_localize/serializers/templated_serializer.rb'
# Offense count: 7
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 31
# Offense count: 4
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 139
# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 9
# Offense count: 13
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 27
# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 9
# Offense count: 1
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
Exclude:
- 'lib/ad_localize/mappers/locale_wording_to_hash.rb'
# Offense count: 10
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# ForbiddenPrefixes: is_, has_, have_
# AllowedMethods: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
Exclude:
- 'spec/**/*'
- 'lib/ad_localize/interactors/base_generate_files.rb'
- 'lib/ad_localize/interactors/generate_info_plist.rb'
- 'lib/ad_localize/interactors/generate_json.rb'
- 'lib/ad_localize/interactors/generate_localizable_strings.rb'
- 'lib/ad_localize/interactors/generate_localizable_strings_dict.rb'
- 'lib/ad_localize/interactors/generate_properties.rb'
- 'lib/ad_localize/interactors/generate_strings.rb'
- 'lib/ad_localize/interactors/generate_yaml.rb'
- 'lib/ad_localize/requests/export_request.rb'
# Offense count: 28
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, camelCase
Naming/VariableName:
Exclude:
- 'lib/ad_localize/sanitizers/ios_to_android_sanitizer.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
# FunctionalMethods: let, let!, subject, watch
# AllowedMethods: lambda, proc, it
Style/BlockDelimiters:
Exclude:
- 'lib/ad_localize/parsers/csv_parser.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
Exclude:
- 'lib/ad_localize/interactors/export_wording.rb'
- 'lib/ad_localize/sanitizers/ios_to_android_sanitizer.rb'
# Offense count: 36
# Configuration parameters: AllowedConstants.
Style/Documentation:
Enabled: false
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/ExpandPathArguments:
Exclude:
- 'ad_localize.gemspec'
- 'test/test_helper.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: format, sprintf, percent
Style/FormatString:
Exclude:
- 'lib/ad_localize/interactors/generate_info_plist.rb'
- 'lib/ad_localize/interactors/generate_localizable_strings.rb'
- 'lib/ad_localize/interactors/generate_localizable_strings_dict.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
EnforcedStyle: template
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/GlobalStdStream:
Exclude:
- 'lib/ad_localize/ad_logger.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
Style/GuardClause:
Exclude:
- 'lib/ad_localize/repositories/drive_repository.rb'
# Offense count: 15
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
# SupportedShorthandSyntax: always, never, either, consistent
Style/HashSyntax:
Exclude:
- 'Rakefile'
- 'lib/ad_localize/option_handler.rb'
- 'test/interactors/process_export_request_test.rb'
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/LineEndConcatenation:
Exclude:
- 'lib/ad_localize/entities/locale_wording.rb'
# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: literals, strict
Style/MutableConstant:
Exclude:
- 'lib/ad_localize/entities/platform.rb'
- 'lib/ad_localize/interactors/merge_wordings.rb'
- 'lib/ad_localize/option_handler.rb'
- 'lib/ad_localize/requests/export_request.rb'
- 'test/test_helper.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: both, prefix, postfix
Style/NegatedIf:
Exclude:
- 'lib/ad_localize/interactors/generate_strings.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'spec/**/*'
- 'test/repositories/drive_repository_test.rb'
- 'test/repositories/private_drive_repository_test.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedCompactTypes.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
EnforcedStyle: compact
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantAssignment:
Exclude:
- 'lib/ad_localize/parsers/csv_parser.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantBegin:
Exclude:
- 'lib/ad_localize/repositories/drive_repository.rb'
# Offense count: 15
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantFreeze:
Exclude:
- 'lib/ad_localize/interactors/generate_info_plist.rb'
- 'lib/ad_localize/interactors/generate_localizable_strings.rb'
- 'lib/ad_localize/interactors/generate_localizable_strings_dict.rb'
- 'lib/ad_localize/interactors/generate_strings.rb'
- 'lib/ad_localize/interactors/merge_wordings.rb'
- 'lib/ad_localize/parsers/csv_parser.rb'
- 'lib/ad_localize/serializers/info_plist_serializer.rb'
- 'lib/ad_localize/serializers/localizable_strings_serializer.rb'
- 'lib/ad_localize/serializers/localizable_stringsdict_serializer.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantPercentQ:
Exclude:
- 'ad_localize.gemspec'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpArgument:
Exclude:
- 'lib/ad_localize/sanitizers/ios_to_android_sanitizer.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpEscape:
Exclude:
- 'lib/ad_localize/sanitizers/ios_sanitizer.rb'
- 'lib/ad_localize/sanitizers/ios_to_android_sanitizer.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleReturnValues.
Style/RedundantReturn:
Exclude:
- 'lib/ad_localize/option_handler.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
Exclude:
- 'lib/ad_localize/repositories/drive_repository.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/SelfAssignment:
Exclude:
- 'lib/ad_localize/sanitizers/ios_to_android_sanitizer.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/SlicingWithRange:
Exclude:
- 'lib/ad_localize/interactors/merge_wordings.rb'
- 'lib/ad_localize/mappers/locale_wording_to_hash.rb'
- 'lib/ad_localize/parsers/csv_parser.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
Exclude:
- 'lib/ad_localize/serializers/properties_serializer.rb'
- 'lib/ad_localize/serializers/strings_serializer.rb'
- 'lib/ad_localize/serializers/templated_serializer.rb'
# Offense count: 146
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: false
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/ZeroLengthPredicate:
Exclude:
- 'lib/ad_localize/mappers/locale_wording_to_hash.rb'
- 'test/repositories/drive_repository_test.rb'
- 'test/repositories/private_drive_repository_test.rb'
# Offense count: 15
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Layout/LineLength:
Max: 153