-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_todo.yml
221 lines (195 loc) · 6.99 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
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-03-19 22:25:53 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: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Include, EnforcedStyle, ExplicitOnly.
# Include: **/*_spec.rb, **/spec/**/*, **/test/**/*, **/features/support/factories/**/*.rb
# SupportedStyles: create_list, n_times
FactoryBot/CreateList:
Exclude:
- 'spec/models/instagram_post_spec.rb'
# Offense count: 1
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
Exclude:
- 'app/models/locations/officeable.rb'
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect.
Lint/UselessAssignment:
Exclude:
- 'app/models/search.rb'
- 'app/models/spreadsheet_parse.rb'
- 'app/queries/locations/keyword_query.rb'
- 'db/seeds.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Performance/Count:
Exclude:
- 'app/models/concerns/organization_validator.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Performance/InefficientHashSearch:
Exclude:
- 'app/services/alert_search_results.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/ApplicationJob:
Exclude:
- 'app/jobs/alerts/send_saved_searches_alert_emails_job.rb'
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/ApplicationRecord:
Exclude:
- 'app/models/instagram_post.rb'
- 'app/models/location.rb'
- 'app/models/message.rb'
- 'app/models/office_hour.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
Rails/Blank:
Exclude:
- 'app/helpers/alerts_helper.rb'
# Offense count: 4
# Configuration parameters: Database, Include.
# SupportedDatabases: mysql, postgresql
# Include: db/**/*.rb
Rails/BulkChangeTable:
Exclude:
- 'db/migrate/20210923212719_create_organization_mission_statement_and_vision_statement_and_tagline_and_description_translations_for_mobility_column_backend.rb'
- 'db/migrate/20211125214921_remove_description_from_orgs.rb'
- 'db/migrate/20220107135406_change_column_type_alert_open_now_and_open_weekends.rb'
- 'db/migrate/20220914174749_add_profile_admin_name_and_email_to_messages.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/CompactBlank:
Exclude:
- 'app/queries/locations/filter_query.rb'
# Offense count: 1
# Configuration parameters: Include.
# Include: db/**/*.rb
Rails/CreateTableWithTimestamps:
Exclude:
- 'db/migrate/20211125171346_create_messages_table.rb'
# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowToTime.
# SupportedStyles: strict, flexible
Rails/Date:
Exclude:
- 'app/jobs/alerts/send_saved_searches_alert_emails_job.rb'
- 'app/models/alert.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
# Whitelist: find_by_sql, find_by_token_for
# AllowedMethods: find_by_sql, find_by_token_for
# AllowedReceivers: Gem::Specification, page
Rails/DynamicFindBy:
Exclude:
- 'app/models/spreadsheet_parse.rb'
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods, AllowedPatterns.
# AllowedMethods: order, limit, select, lock
Rails/FindEach:
Exclude:
- 'app/controllers/organizations_controller.rb'
- 'app/controllers/searches_controller.rb'
# Offense count: 9
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/admin_user.rb'
- 'app/models/cause.rb'
- 'app/models/location.rb'
- 'app/models/organization.rb'
- 'app/models/user.rb'
# Offense count: 2
# Configuration parameters: IgnoreScopes, Include.
# Include: app/models/**/*.rb
Rails/InverseOf:
Exclude:
- 'app/models/organization.rb'
# Offense count: 1
Rails/OrderById:
Exclude:
- 'app/controllers/my_accounts_controller.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Include.
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
Rails/Output:
Exclude:
- 'app/controllers/searches_controller.rb'
# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/PluckId:
Exclude:
- 'app/controllers/alerts_controller.rb'
- 'app/controllers/application_controller.rb'
- 'app/mailers/saved_search_alert_mailer.rb'
- 'lib/tasks/fix_staging.rake'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: conservative, aggressive
Rails/PluckInWhere:
Exclude:
- 'app/models/search.rb'
# Offense count: 5
# Configuration parameters: Include.
# Include: db/**/*.rb
Rails/ReversibleMigration:
Exclude:
- 'db/migrate/20211125214921_remove_description_from_orgs.rb'
- 'db/migrate/20220107135406_change_column_type_alert_open_now_and_open_weekends.rb'
- 'db/migrate/20230804232930_remove_physical_from_locations.rb'
# Offense count: 9
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowImplicitReturn, AllowedReceivers.
Rails/SaveBang:
Exclude:
- 'app/controllers/alerts_controller.rb'
- 'app/controllers/application_controller.rb'
- 'app/controllers/locations_controller.rb'
- 'app/controllers/searches_controller.rb'
- 'app/mailers/saved_search_alert_mailer.rb'
- 'app/services/alert_search_results.rb'
- 'lib/tasks/fix_staging.rake'
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible
Rails/TimeZone:
Exclude:
- 'app/models/locations/officeable.rb'
- 'app/models/office_hours/searchable.rb'
- 'spec/factories/instagram_posts.rb'
# Offense count: 4
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/UniqueValidationWithoutIndex:
Exclude:
- 'app/models/cause.rb'
- 'app/models/favorite_location.rb'
- 'app/models/organization_admin.rb'
- 'app/models/service.rb'
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/WhereEquals:
Exclude:
- 'app/queries/locations/filter_query.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/RedundantInterpolation:
Exclude:
- 'spec/system/admin_organization_system_spec.rb'