This repository has been archived by the owner on Nov 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.rubocop_todo.yml
189 lines (162 loc) · 5.47 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
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-05-07 14:00:27 -0400 using RuboCop version 0.62.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
Lint/DuplicateMethods:
Exclude:
- 'app/presenters/error_presenter.rb'
# Offense count: 3
Lint/UriEscapeUnescape:
Exclude:
- 'app/actors/sufia/create_with_remote_files_actor.rb'
- 'spec/features/authentication_spec.rb'
# Offense count: 227
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 231
# Offense count: 1
Metrics/CyclomaticComplexity:
Max: 7
# Offense count: 307
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 770
# Offense count: 2
Metrics/PerceivedComplexity:
Max: 9
# Offense count: 48
RSpec/AnyInstance:
Enabled: false
# Offense count: 138
# Configuration parameters: Prefixes.
# Prefixes: when, with, without
RSpec/ContextWording:
Enabled: false
# Offense count: 120
# Configuration parameters: Max.
RSpec/ExampleLength:
Enabled: false
# Offense count: 2
RSpec/ExpectActual:
Exclude:
- 'spec/routing/**/*'
- 'spec/controllers/sessions_controller_spec.rb'
# Offense count: 6
RSpec/ExpectInHook:
Exclude:
- 'spec/controllers/collections_controller_spec.rb'
- 'spec/features/dashboard/dashboard_works_spec.rb'
- 'spec/features/file_set/analytics_spec.rb'
- 'spec/models/user_spec.rb'
# Offense count: 166
# Configuration parameters: EnforcedStyle.
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
Enabled: false
# Offense count: 298
# Configuration parameters: AggregateFailuresByDefault.
RSpec/MultipleExpectations:
Max: 58
# Offense count: 135
# Configuration parameters: IgnoreSharedExamples.
RSpec/NamedSubject:
Enabled: false
# Offense count: 52
RSpec/NestedGroups:
Max: 5
# Offense count: 4
RSpec/ScatteredLet:
Exclude:
- 'spec/features/dashboard/dashboard_works_spec.rb'
# Offense count: 2
RSpec/ScatteredSetup:
Exclude:
- 'spec/lib/hydra/derivatives/document_spec.rb'
# Offense count: 6
RSpec/SubjectStub:
Exclude:
- 'spec/controllers/sufia/batch_uploads_controller_spec.rb'
- 'spec/lib/devise/http_header_authenticatable_spec.rb'
- 'spec/lib/hydra/derivatives/document_spec.rb'
# Offense count: 21
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'spec/actors/sufia/create_with_files_actor_spec.rb'
- 'spec/actors/sufia/create_with_remote_files_actor_spec.rb'
- 'spec/controllers/zotero_controller_spec.rb'
- 'spec/jobs/attach_files_to_work_job_spec.rb'
- 'spec/lib/devise/http_header_authenticatable_spec.rb'
- 'spec/presenters/file_set_presenter_spec.rb'
- 'spec/rake/share_notify_spec.rb'
- 'spec/services/permissions_change_service_spec.rb'
- 'spec/views/my/_sort_and_per_page.html.erb_spec.rb'
- 'spec/views/users/show.html.erb_spec.rb'
# Offense count: 9
# Cop supports --auto-correct.
# Configuration parameters: Whitelist.
# Whitelist: find_by_sql
Rails/DynamicFindBy:
Exclude:
- 'app/actors/curation_concerns/actors/generic_work_actor.rb'
- 'app/controllers/admin/stats_controller.rb'
- 'app/jobs/import_url_job.rb'
- 'app/models/user.rb'
- 'app/services/permissions_change_service.rb'
- 'spec/views/curations_concerns/base/_form_relationships.html.erb_spec.rb'
# Offense count: 36
# Configuration parameters: EnforcedStyle.
# SupportedStyles: slashes, arguments
Rails/FilePath:
Enabled: false
# Offense count: 1
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/agent.rb'
# Offense count: 9
# Configuration parameters: Include.
# Include: app/controllers/**/*.rb
Rails/LexicallyScopedActionFilter:
Exclude:
- 'app/controllers/catalog_controller.rb'
- 'app/controllers/collections_controller.rb'
- 'app/controllers/contact_form_controller.rb'
- 'app/controllers/curation_concerns/generic_works_controller.rb'
- 'app/controllers/users_controller.rb'
# Offense count: 2
Rails/OutputSafety:
Exclude:
- 'app/prepends/prepended_renderers/with_lists.rb'
- 'app/services/read_only.rb'
# Offense count: 4
# Configuration parameters: Blacklist, Whitelist.
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
Rails/SkipsModelValidations:
Exclude:
- 'spec/factories/users.rb'
# Offense count: 1
Security/Open:
Exclude:
- 'app/services/external_files_conversion.rb'
# Offense count: 11
Style/MixinUsage:
Exclude:
- 'lib/tasks/scholarsphere.rake'
- 'spec/controllers/agents_controller_spec.rb'
- 'spec/features/collection/view_and_search_spec.rb'
- 'spec/features/dashboard/dashboard_collections_spec.rb'
- 'spec/features/dashboard/dashboard_highlights_spec.rb'
- 'spec/features/dashboard/dashboard_shares_spec.rb'
- 'spec/features/dashboard/dashboard_spec.rb'
- 'spec/features/dashboard/dashboard_works_spec.rb'
- 'spec/features/generic_work/edit_work_spec.rb'
- 'spec/features/generic_work/upload_and_delete_spec.rb'
- 'spec/features/generic_work/view_and_download_spec.rb'