forked from crimethinc/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_todo.yml
199 lines (175 loc) · 5.73 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
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2020-12-26 05:06:34 UTC using RuboCop version 1.7.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
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Exclude:
- 'db/migrate/20201222045039_add_service_name_to_active_storage_blobs.active_storage.rb'
# Offense count: 6
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'app/models/article_archive_paginator.rb'
# Offense count: 4
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
Exclude:
- 'spec/system/admin_sign_ins_spec.rb'
- 'spec/system/article_datetime_settings_spec.rb'
- 'spec/system/language_landing_page_spec.rb'
- 'spec/system/tools_index_pages_spec.rb'
# Offense count: 15
# Configuration parameters: Max.
RSpec/ExampleLength:
Exclude:
- 'spec/models/article_spec.rb'
- 'spec/services/tag_assigner_spec.rb'
- 'spec/system/admin_sign_ins_spec.rb'
- 'spec/system/article_datetime_settings_spec.rb'
- 'spec/system/language_landing_page_spec.rb'
- 'spec/system/tools_index_pages_spec.rb'
# Offense count: 9
# Configuration parameters: EnforcedStyle.
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
Exclude:
- 'spec/controllers/admin/admin_controller_spec.rb'
- 'spec/services/tag_assigner_spec.rb'
# Offense count: 28
RSpec/MultipleExpectations:
Max: 8
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
Rails/Blank:
Exclude:
- 'app/controllers/admin/articles_controller.rb'
- 'lib/tasks/active_storage.rake'
# Offense count: 1
# Configuration parameters: Include.
# Include: db/migrate/*.rb
Rails/CreateTableWithTimestamps:
Exclude:
- 'db/migrate/20201222045040_create_active_storage_variant_records.active_storage.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/EnumHash:
Exclude:
- 'app/models/locale.rb'
# Offense count: 4
# Configuration parameters: EnforcedStyle.
# SupportedStyles: slashes, arguments
Rails/FilePath:
Exclude:
- 'app/controllers/pages_controller.rb'
- 'config/application.rb'
- 'config/environments/development.rb'
- 'lib/tasks/db/import.rake'
# Offense count: 13
# Configuration parameters: Include.
# Include: app/helpers/**/*.rb
Rails/HelperInstanceVariable:
Exclude:
- 'app/helpers/articles_helper.rb'
- 'app/helpers/meta_helper.rb'
- 'app/helpers/tags_helper.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: numeric, symbolic
Rails/HttpStatus:
Exclude:
- 'app/controllers/collection_posts_controller.rb'
# Offense count: 1
# Cop supports --auto-correct.
Rails/IndexWith:
Exclude:
- 'app/controllers/admin/admin_controller.rb'
# Offense count: 21
# Configuration parameters: Include.
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
Rails/Output:
Exclude:
- 'app/lib/code_archiver.rb'
- 'app/models/logo.rb'
- 'db/seeds.rb'
# Offense count: 12
Rails/OutputSafety:
Exclude:
- 'app/controllers/articles_controller.rb'
- 'app/controllers/pages_controller.rb'
- 'app/helpers/admin_helper.rb'
- 'app/helpers/articles_helper.rb'
- 'app/helpers/embeds_helper.rb'
- 'app/helpers/markdown_helper.rb'
- 'app/models/article.rb'
- 'app/models/article_archive_paginator.rb'
# Offense count: 1
# Cop supports --auto-correct.
Rails/Presence:
Exclude:
- 'app/middlewares/rack/clean_path.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
Rails/Present:
Exclude:
- 'app/lib/code_archiver.rb'
# Offense count: 1
# Cop supports --auto-correct.
Rails/RedundantForeignKey:
Exclude:
- 'app/models/article.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:
- 'app/controllers/articles_controller.rb'
- 'db/migrate/20201222045039_add_service_name_to_active_storage_blobs.active_storage.rb'
- 'lib/tasks/db/export.rake'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible
Rails/TimeZone:
Exclude:
- 'script/cibuild'
- 'script/test'
# Offense count: 10
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/UniqueValidationWithoutIndex:
Exclude:
- 'app/models/category.rb'
- 'app/models/definition.rb'
- 'app/models/locale.rb'
- 'app/models/podcast.rb'
- 'app/models/redirect.rb'
- 'app/models/support_session.rb'
- 'app/models/user.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: exists, where
Rails/WhereExists:
Exclude:
- 'app/models/article.rb'
- 'app/models/concerns/slug.rb'
# Offense count: 1
Security/Open:
Exclude:
- 'lib/tasks/db/import.rake'
# Offense count: 1
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
- 'db/migrate/20201222045039_add_service_name_to_active_storage_blobs.active_storage.rb'