-
-
Notifications
You must be signed in to change notification settings - Fork 396
/
.rubocop_todo.yml
290 lines (260 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
# This configuration was generated by
# `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 400`
# on 2024-03-23 21:41:23 UTC using RuboCop version 1.62.1.
# 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: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/HashAlignment:
Exclude:
- 'db/migrate/20240314031219_recreate_good_job_cron_indexes_with_conditional.rb'
- 'db/migrate/20240314031221_create_good_job_labels_index.rb'
- 'db/migrate/20240314031223_create_index_good_job_jobs_for_candidate_lookup.rb'
# Offense count: 28
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Layout/LineLength:
Exclude:
- 'db/migrate/20230801025231_create_index_good_jobs_jobs_on_priority_created_at_when_unfinished.rb'
- 'db/migrate/20240314031219_recreate_good_job_cron_indexes_with_conditional.rb'
- 'db/migrate/20240314031221_create_good_job_labels_index.rb'
- 'db/migrate/20240314031222_remove_good_job_active_id_index.rb'
- 'db/migrate/20240314031223_create_index_good_job_jobs_for_candidate_lookup.rb'
# Offense count: 19
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultilineFinalElement.
Layout/MultilineMethodArgumentLineBreaks:
Exclude:
- 'db/migrate/20240314031219_recreate_good_job_cron_indexes_with_conditional.rb'
- 'db/migrate/20240314031221_create_good_job_labels_index.rb'
- 'db/migrate/20240314031223_create_index_good_job_jobs_for_candidate_lookup.rb'
# Offense count: 9
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredClasses.
# AllowedMethods: ago, from_now, second, seconds, minute, minutes, hour, hours, day, days, week, weeks, fortnight, fortnights, in_milliseconds
# IgnoredClasses: Time, DateTime
Lint/NumberConversion:
Exclude:
- 'Rakefile'
- 'app/commands/fever_api/authentication.rb'
- 'app/commands/story/mark_group_as_read.rb'
- 'app/models/feed.rb'
- 'app/models/story.rb'
- 'app/repositories/story_repository.rb'
- 'spec/models/feed_spec.rb'
- 'spec/models/story_spec.rb'
# Offense count: 3
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
Metrics/AbcSize:
Exclude:
- 'db/migrate/20230801025232_create_good_job_batches.rb'
- 'db/migrate/20230801025233_create_good_job_executions.rb'
- 'db/migrate/20240314031219_recreate_good_job_cron_indexes_with_conditional.rb'
# Offense count: 1
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Exclude:
- 'db/migrate/20240314031219_recreate_good_job_cron_indexes_with_conditional.rb'
# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
Metrics/CyclomaticComplexity:
Exclude:
- 'db/migrate/20240314031219_recreate_good_job_cron_indexes_with_conditional.rb'
# Offense count: 5
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Exclude:
- 'app/models/story.rb'
- 'app/repositories/story_repository.rb'
- 'app/utils/opml_parser.rb'
- 'app/utils/sample_story.rb'
# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
Metrics/PerceivedComplexity:
Exclude:
- 'db/migrate/20240314031219_recreate_good_job_cron_indexes_with_conditional.rb'
# Offense count: 2
# 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:
- 'app/utils/sample_story.rb'
# Offense count: 4
RSpec/Be:
Exclude:
- 'spec/commands/feed/import_from_opml_spec.rb'
# Offense count: 12
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
- 'spec/commands/feed/create_spec.rb'
- 'spec/commands/feed/fetch_one_spec.rb'
- 'spec/commands/feed/find_new_stories_spec.rb'
- 'spec/commands/feed/import_from_opml_spec.rb'
- 'spec/integration/feed_importing_spec.rb'
# Offense count: 1
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
Exclude:
- 'spec/integration/feed_importing_spec.rb'
# Offense count: 33
# Configuration parameters: Max, CountAsOne.
RSpec/ExampleLength:
Exclude:
- 'spec/commands/feed/create_spec.rb'
- 'spec/commands/feed/export_to_opml_spec.rb'
- 'spec/commands/fever_api/read_favicons_spec.rb'
- 'spec/commands/fever_api/read_feeds_groups_spec.rb'
- 'spec/commands/fever_api/read_items_spec.rb'
- 'spec/helpers/url_helpers_spec.rb'
- 'spec/integration/feed_importing_spec.rb'
- 'spec/models/feed_spec.rb'
- 'spec/models/migration_status_spec.rb'
- 'spec/models/story_spec.rb'
- 'spec/repositories/group_repository_spec.rb'
- 'spec/repositories/story_repository_spec.rb'
- 'spec/system/good_job_spec.rb'
- 'spec/tasks/remove_old_stories_spec.rb'
- 'spec/utils/feed_discovery_spec.rb'
- 'spec/utils/opml_parser_spec.rb'
# Offense count: 17
# Configuration parameters: EnforcedStyle.
# SupportedStyles: allow, expect
RSpec/MessageExpectation:
Exclude:
- 'spec/commands/feed/fetch_one_spec.rb'
- 'spec/models/migration_status_spec.rb'
- 'spec/repositories/story_repository_spec.rb'
- 'spec/tasks/remove_old_stories_spec.rb'
- 'spec/utils/i18n_support_spec.rb'
# Offense count: 25
# Configuration parameters: Max.
RSpec/MultipleExpectations:
Exclude:
- 'spec/commands/feed/create_spec.rb'
- 'spec/commands/feed/export_to_opml_spec.rb'
- 'spec/commands/feed/import_from_opml_spec.rb'
- 'spec/repositories/feed_repository_spec.rb'
- 'spec/repositories/story_repository_spec.rb'
- 'spec/requests/feeds_controller_spec.rb'
- 'spec/tasks/remove_old_stories_spec.rb'
- 'spec/utils/feed_discovery_spec.rb'
- 'spec/utils/i18n_support_spec.rb'
- 'spec/utils/opml_parser_spec.rb'
# Offense count: 5
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
Exclude:
- 'spec/commands/fever_api/write_mark_item_spec.rb'
# Offense count: 2
# Configuration parameters: Max, AllowedGroups.
RSpec/NestedGroups:
Exclude:
- 'spec/integration/feed_importing_spec.rb'
# Offense count: 26
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'spec/commands/feed/create_spec.rb'
- 'spec/commands/feed/fetch_one_spec.rb'
- 'spec/commands/feed/find_new_stories_spec.rb'
- 'spec/repositories/story_repository_spec.rb'
- 'spec/tasks/remove_old_stories_spec.rb'
- 'spec/utils/feed_discovery_spec.rb'
# Offense count: 2
# Configuration parameters: IgnoreScopes, Include.
# Include: app/models/**/*.rb
Rails/InverseOf:
Exclude:
- 'app/models/feed.rb'
# Offense count: 3
# Configuration parameters: Include.
# Include: db/**/*.rb
Rails/ReversibleMigrationMethodDefinition:
Exclude:
- 'db/migrate/20130423001740_drop_email_from_user.rb'
- 'db/migrate/20130423180446_remove_author_from_stories.rb'
- 'db/migrate/20130425222157_add_delayed_job.rb'
# Offense count: 9
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowImplicitReturn, AllowedReceivers.
Rails/SaveBang:
Exclude:
- 'app/commands/feed/create.rb'
- 'app/commands/feed/import_from_opml.rb'
- 'app/repositories/feed_repository.rb'
- 'app/repositories/story_repository.rb'
- 'app/repositories/user_repository.rb'
- 'db/migrate/20130821020313_update_nil_entry_ids.rb'
# Offense count: 3
# Configuration parameters: ForbiddenMethods, AllowedMethods.
# ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all
Rails/SkipsModelValidations:
Exclude:
- 'db/migrate/20140421224454_fix_invalid_unicode.rb'
- 'db/migrate/20141102103617_fix_invalid_titles_with_unicode_line_endings.rb'
- 'db/migrate/20230223231930_add_username_to_users.rb'
# Offense count: 5
# Configuration parameters: Include.
# Include: db/**/*.rb
Rails/ThreeStateBooleanColumn:
Exclude:
- 'db/migrate/20130412185253_add_new_fields_to_stories.rb'
- 'db/migrate/20130425211008_add_setup_complete_to_user.rb'
- 'db/migrate/20130513025939_add_keep_unread_to_stories.rb'
- 'db/migrate/20130513044029_add_is_starred_status_for_stories.rb'
- 'db/migrate/20230801025233_create_good_job_executions.rb'
# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible
Rails/TimeZone:
Exclude:
- 'app/commands/feed/find_new_stories.rb'
- 'app/repositories/story_repository.rb'
- 'app/tasks/remove_old_stories.rb'
- 'app/utils/sample_story.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/Validation:
Exclude:
- 'app/models/story.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/IfUnlessModifier:
Exclude:
- 'db/migrate/20240314031223_create_index_good_job_jobs_for_candidate_lookup.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: return, return_nil
Style/ReturnNil:
Exclude:
- 'app/repositories/user_repository.rb'
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/StaticClass:
Exclude:
- 'app/repositories/feed_repository.rb'
- 'app/repositories/group_repository.rb'
- 'app/repositories/story_repository.rb'
- 'app/repositories/user_repository.rb'
# Offense count: 1
Style/TopLevelMethodDefinition:
Exclude:
- 'spec/integration/feed_importing_spec.rb'