forked from samvera/hyrax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_fixme.yml
201 lines (187 loc) · 8.62 KB
/
.rubocop_fixme.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
Security/MarshalLoad:
Exclude:
- 'app/models/concerns/hyrax/user.rb'
Metrics/ClassLength:
Exclude:
- 'app/controllers/hyrax/dashboard/collections_controller.rb'
- 'app/controllers/hyrax/admin/admin_sets_controller.rb'
- 'app/controllers/hyrax/batch_edits_controller.rb'
- 'app/controllers/hyrax/downloads_controller.rb'
- 'app/controllers/hyrax/file_sets_controller.rb'
- 'app/forms/hyrax/forms/permission_template_form.rb'
- 'app/presenters/hyrax/work_show_presenter.rb'
- 'app/presenters/hyrax/collection_presenter.rb'
- 'app/services/hyrax/user_stat_importer.rb'
- 'lib/generators/hyrax/templates/catalog_controller.rb'
- 'lib/generators/hyrax/install_generator.rb'
- 'lib/hyrax/configuration.rb'
Metrics/ParameterLists:
Exclude:
- 'app/jobs/batch_create_job.rb'
Metrics/ModuleLength:
Exclude:
- 'app/controllers/concerns/hyrax/works_controller_behavior.rb'
- 'app/helpers/hyrax/hyrax_helper_behavior.rb'
- 'app/models/concerns/hyrax/ability.rb'
- 'app/services/hyrax/workflow/permission_query.rb'
- 'spec/services/hyrax/workflow/permission_query_spec.rb'
# TODO: extract CollectionAccessControls or something, so we don't have to skip this check?
- 'app/models/concerns/hyrax/collection_behavior.rb'
RSpec/NamedSubject:
Enabled: false
RSpec/ExampleLength:
Max: 9
Exclude:
- 'spec/actors/hyrax/actors/file_set_actor_spec.rb'
- 'spec/actors/hyrax/actors/generic_work_actor_spec.rb'
- 'spec/controllers/hyrax/api/items_controller_spec.rb'
- 'spec/controllers/hyrax/batch_edits_controller_spec.rb'
- 'spec/controllers/hyrax/batch_uploads_controller_spec.rb'
- 'spec/controllers/hyrax/file_sets_controller_spec.rb'
- 'spec/controllers/hyrax/generic_works_controller_spec.rb'
- 'spec/controllers/hyrax/my/highlights_controller_spec.rb'
- 'spec/controllers/hyrax/transfers_controller_spec.rb'
- 'spec/forms/hyrax/forms/collection_form_spec.rb'
- 'spec/forms/hyrax/forms/batch_edit_form_spec.rb'
- 'spec/forms/hyrax/forms/batch_upload_form_spec.rb'
- 'spec/forms/hyrax/forms/file_set_edit_form_spec.rb'
- 'spec/features/**/*'
- 'spec/helpers/hyrax/charts_helper_spec.rb'
- 'spec/helpers/dashboard_helper_spec.rb'
- 'spec/helpers/hyrax_helper_spec.rb'
- 'spec/indexers/hyrax/file_set_indexer_spec.rb'
- 'spec/javascripts/jasmine_spec.rb'
- 'spec/jobs/file_set_attached_event_job_spec.rb'
- 'spec/jobs/batch_create_job_spec.rb'
- 'spec/jobs/create_work_job_spec.rb'
- 'spec/jobs/content_update_event_job_spec.rb'
- 'spec/jobs/content_restored_version_event_job_spec.rb'
- 'spec/jobs/content_new_version_event_job_spec.rb'
- 'spec/jobs/content_depositor_change_event_job_spec.rb'
- 'spec/jobs/change_depositor_event_job_spec.rb'
- 'spec/jobs/content_deposit_event_job_spec.rb'
- 'spec/jobs/content_delete_event_job_spec.rb'
- 'spec/jobs/ingest_file_job_spec.rb'
- 'spec/lib/hyrax/arkivo/actor_spec.rb'
- 'spec/lib/hyrax/resource_sync/capability_list_writer_spec.rb'
- 'spec/models/checksum_audit_log_spec.rb'
- 'spec/models/featured_work_spec.rb'
- 'spec/models/file_set_spec.rb'
- 'spec/models/generic_work_spec.rb'
- 'spec/presenters/hyrax/inspect_work_presenter_spec.rb'
- 'spec/services/hyrax/actor_factory_spec.rb'
- 'spec/services/hyrax/admin_set_create_service_spec.rb'
- 'spec/services/hyrax/default_middleware_stack_spec.rb'
- 'spec/services/hyrax/graph_exporter_spec.rb'
- 'spec/services/hyrax/user_stat_importer_spec.rb'
- 'spec/services/hyrax/workflow/activate_object_spec.rb'
- 'spec/services/hyrax/workflow/deactivate_object_spec.rb'
- 'spec/services/hyrax/workflow/permission_generator_spec.rb'
- 'spec/services/hyrax/workflow/permission_query_spec.rb'
- 'spec/services/hyrax/workflow/state_machine_generator_spec.rb'
- 'spec/services/hyrax/workflow/workflow_importer_spec.rb'
- 'spec/views/**/*'
- 'spec/wings/valkyrie/persister_spec.rb'
RSpec/VerifiedDoubles:
Enabled: false
RSpec/SubjectStub:
Exclude:
- 'spec/actors/hyrax/actors/generic_work_actor_spec.rb'
- 'spec/controllers/hyrax/file_sets_controller_spec.rb'
- 'spec/models/file_set_spec.rb'
- 'spec/models/hyrax/work_behavior_spec.rb'
- 'spec/search_builders/hyrax/file_set_search_builder_spec.rb'
- 'spec/models/hyrax/operation_spec.rb'
- 'spec/controllers/hyrax/accepts_batches_controller_spec.rb'
- 'spec/indexers/hyrax/repository_reindexer_spec.rb'
- 'spec/lib/hyrax/analytics_spec.rb'
- 'spec/models/job_io_wrapper_spec.rb'
- 'spec/search_builders/hyrax/abstract_type_relation_spec.rb'
- 'spec/services/hyrax/database_migrator_spec.rb'
RSpec/AnyInstance:
Exclude:
- 'spec/actors/hyrax/actors/generic_work_actor_spec.rb'
- 'spec/controllers/hyrax/api/items_controller_spec.rb'
- 'spec/controllers/hyrax/api/zotero_controller_spec.rb'
- 'spec/controllers/hyrax/batch_edits_controller_spec.rb'
- 'spec/controllers/hyrax/stats_controller_spec.rb'
- 'spec/controllers/hyrax/users_controller_spec.rb'
- 'spec/hyrax/transactions/steps/delete_access_control_spec.rb'
- 'spec/hyrax/transactions/steps/save_access_control_spec.rb'
- 'spec/jobs/content_restored_version_event_job_spec.rb'
- 'spec/jobs/file_set_attached_event_job_spec.rb'
- 'spec/jobs/hyrax/grant_edit_to_members_job_spec.rb'
- 'spec/jobs/hyrax/grant_read_to_members_job_spec.rb'
- 'spec/jobs/hyrax/revoke_edit_from_members_job_spec.rb'
- 'spec/lib/hyrax/arkivo/create_subscription_job_spec.rb'
- 'spec/presenters/hyrax/file_usage_spec.rb'
- 'spec/presenters/hyrax/work_usage_spec.rb'
- 'spec/services/hyrax/repository_fixity_check_service_spec.rb'
- 'spec/services/hyrax/workflow/permission_generator_spec.rb'
- 'spec/services/hyrax/workflow/sipity_actions_generator_spec.rb'
- 'spec/services/hyrax/workflow/state_machine_generator_spec.rb'
- 'spec/services/hyrax/workflow/workflow_permissions_generator_spec.rb'
- 'spec/controllers/hyrax/homepage_controller_spec.rb'
- 'spec/controllers/hyrax/my/collections_controller_spec.rb'
- 'spec/controllers/hyrax/my/works_controller_spec.rb'
- 'spec/presenters/hyrax/admin/repository_object_presenter_spec.rb'
# Offense count: 51
RSpec/ExpectInHook:
Enabled: false
# Offense count: 27
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: and_return, block
RSpec/ReturnFromStub:
Exclude:
- 'spec/controllers/hyrax/api/items_controller_spec.rb'
- 'spec/controllers/hyrax/file_sets_controller_spec.rb'
- 'spec/lib/hyrax/arkivo/create_subscription_job_spec.rb'
- 'spec/models/file_set_spec.rb'
- 'spec/presenters/hyrax/admin_set_options_presenter_spec.rb'
- 'spec/routing/api_route_spec.rb'
- 'spec/views/_user_util_links.html.erb_spec.rb'
- 'spec/views/hyrax/base/_attributes.html.erb_spec.rb'
- 'spec/views/hyrax/base/_form.html.erb_spec.rb'
- 'spec/views/hyrax/base/file_manager.html.erb_spec.rb'
- 'spec/views/hyrax/dashboard/profiles/edit.html.erb_spec.rb'
- 'spec/views/hyrax/users/_user_info.html.erb_spec.rb'
# Offense count: 26
RSpec/RepeatedDescription:
Exclude:
- 'spec/models/sipity/agent_spec.rb'
- 'spec/models/sipity/comment_spec.rb'
- 'spec/models/sipity/entity_spec.rb'
- 'spec/models/sipity/entity_specific_responsibility_spec.rb'
- 'spec/models/sipity/role_spec.rb'
- 'spec/models/sipity/workflow_action_spec.rb'
- 'spec/models/sipity/workflow_responsibility_spec.rb'
- 'spec/models/sipity/workflow_role_spec.rb'
- 'spec/models/sipity/workflow_state_action_permission_spec.rb'
- 'spec/models/sipity/workflow_state_action_spec.rb'
- 'spec/models/sipity/workflow_state_spec.rb'
# Offense count: 2
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/admin_set.rb'
- 'app/models/hyrax/permission_template.rb'
# Offense count: 1
Rails/SkipsModelValidations:
Exclude:
- 'app/services/hyrax/works/migration_service.rb'
# Offense count: 12
Lint/MissingSuper:
Exclude:
- 'app/actors/hyrax/actors/interpret_visibility_actor.rb'
- 'app/actors/hyrax/actors/ordered_members_actor.rb'
- 'app/models/concerns/hyrax/file_set/characterization.rb'
- 'app/presenters/hyrax/file_usage.rb'
- 'app/presenters/hyrax/work_usage.rb'
- 'app/services/hyrax/batch_create_failure_service.rb'
- 'app/services/hyrax/batch_create_success_service.rb'
- 'app/services/hyrax/collection_types/create_service.rb'
- 'app/services/hyrax/solr_query_service.rb'
- 'lib/hyrax/form_fields.rb'
- 'lib/hyrax/health_checks/solr_check.rb'
- 'lib/hyrax/schema.rb'