|
1 |
| -Security/MarshalLoad: |
2 |
| - Exclude: |
3 |
| - - 'app/models/concerns/hyrax/user.rb' |
4 |
| - |
5 |
| -Metrics/ClassLength: |
6 |
| - Exclude: |
7 |
| - - 'app/controllers/hyrax/dashboard/collections_controller.rb' |
8 |
| - - 'app/controllers/hyrax/admin/admin_sets_controller.rb' |
9 |
| - - 'app/controllers/hyrax/batch_edits_controller.rb' |
10 |
| - - 'app/controllers/hyrax/downloads_controller.rb' |
11 |
| - - 'app/controllers/hyrax/file_sets_controller.rb' |
12 |
| - - 'app/forms/hyrax/forms/permission_template_form.rb' |
13 |
| - - 'app/presenters/hyrax/work_show_presenter.rb' |
14 |
| - - 'app/presenters/hyrax/collection_presenter.rb' |
15 |
| - - 'app/services/hyrax/user_stat_importer.rb' |
16 |
| - - 'lib/generators/hyrax/templates/catalog_controller.rb' |
17 |
| - - 'lib/generators/hyrax/install_generator.rb' |
18 |
| - - 'lib/hyrax/configuration.rb' |
19 |
| - |
20 |
| -Metrics/ParameterLists: |
21 |
| - Exclude: |
22 |
| - - 'app/jobs/batch_create_job.rb' |
23 |
| - |
24 |
| -Metrics/ModuleLength: |
25 |
| - Exclude: |
26 |
| - - 'app/controllers/concerns/hyrax/works_controller_behavior.rb' |
27 |
| - - 'app/helpers/hyrax/hyrax_helper_behavior.rb' |
28 |
| - - 'app/models/concerns/hyrax/ability.rb' |
29 |
| - - 'app/services/hyrax/workflow/permission_query.rb' |
30 |
| - - 'spec/services/hyrax/workflow/permission_query_spec.rb' |
31 |
| - # TODO: extract CollectionAccessControls or something, so we don't have to skip this check? |
32 |
| - - 'app/models/concerns/hyrax/collection_behavior.rb' |
33 |
| - |
34 |
| -RSpec/NamedSubject: |
| 1 | +# This configuration was generated by |
| 2 | +# `rubocop --auto-gen-config --exclude-limit 0` |
| 3 | +# on 2024-08-15 14:53:42 UTC using RuboCop version 1.61.0. |
| 4 | +# The point is for the user to remove these configuration records |
| 5 | +# one by one as the offenses are removed from the code base. |
| 6 | +# Note that changes in the inspected code, or installation of new |
| 7 | +# versions of RuboCop, may require this file to be generated again. |
| 8 | + |
| 9 | +# Offense count: 3 |
| 10 | +# This cop supports safe autocorrection (--autocorrect). |
| 11 | +# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment. |
| 12 | +Layout/ExtraSpacing: |
35 | 13 | Enabled: false
|
36 | 14 |
|
37 |
| -RSpec/ExampleLength: |
38 |
| - Max: 9 |
39 |
| - Exclude: |
40 |
| - - 'spec/actors/hyrax/actors/file_set_actor_spec.rb' |
41 |
| - - 'spec/actors/hyrax/actors/generic_work_actor_spec.rb' |
42 |
| - - 'spec/controllers/hyrax/api/items_controller_spec.rb' |
43 |
| - - 'spec/controllers/hyrax/batch_edits_controller_spec.rb' |
44 |
| - - 'spec/controllers/hyrax/batch_uploads_controller_spec.rb' |
45 |
| - - 'spec/controllers/hyrax/file_sets_controller_spec.rb' |
46 |
| - - 'spec/controllers/hyrax/generic_works_controller_spec.rb' |
47 |
| - - 'spec/controllers/hyrax/my/highlights_controller_spec.rb' |
48 |
| - - 'spec/controllers/hyrax/transfers_controller_spec.rb' |
49 |
| - - 'spec/forms/hyrax/forms/collection_form_spec.rb' |
50 |
| - - 'spec/forms/hyrax/forms/batch_edit_form_spec.rb' |
51 |
| - - 'spec/forms/hyrax/forms/batch_upload_form_spec.rb' |
52 |
| - - 'spec/forms/hyrax/forms/file_set_edit_form_spec.rb' |
53 |
| - - 'spec/features/**/*' |
54 |
| - - 'spec/helpers/hyrax/charts_helper_spec.rb' |
55 |
| - - 'spec/helpers/dashboard_helper_spec.rb' |
56 |
| - - 'spec/helpers/hyrax_helper_spec.rb' |
57 |
| - - 'spec/indexers/hyrax/file_set_indexer_spec.rb' |
58 |
| - - 'spec/javascripts/jasmine_spec.rb' |
59 |
| - - 'spec/jobs/file_set_attached_event_job_spec.rb' |
60 |
| - - 'spec/jobs/batch_create_job_spec.rb' |
61 |
| - - 'spec/jobs/create_work_job_spec.rb' |
62 |
| - - 'spec/jobs/content_update_event_job_spec.rb' |
63 |
| - - 'spec/jobs/content_restored_version_event_job_spec.rb' |
64 |
| - - 'spec/jobs/content_new_version_event_job_spec.rb' |
65 |
| - - 'spec/jobs/content_depositor_change_event_job_spec.rb' |
66 |
| - - 'spec/jobs/change_depositor_event_job_spec.rb' |
67 |
| - - 'spec/jobs/content_deposit_event_job_spec.rb' |
68 |
| - - 'spec/jobs/content_delete_event_job_spec.rb' |
69 |
| - - 'spec/jobs/ingest_file_job_spec.rb' |
70 |
| - - 'spec/lib/hyrax/arkivo/actor_spec.rb' |
71 |
| - - 'spec/lib/hyrax/resource_sync/capability_list_writer_spec.rb' |
72 |
| - - 'spec/models/checksum_audit_log_spec.rb' |
73 |
| - - 'spec/models/featured_work_spec.rb' |
74 |
| - - 'spec/models/file_set_spec.rb' |
75 |
| - - 'spec/models/generic_work_spec.rb' |
76 |
| - - 'spec/presenters/hyrax/inspect_work_presenter_spec.rb' |
77 |
| - - 'spec/services/hyrax/actor_factory_spec.rb' |
78 |
| - - 'spec/services/hyrax/admin_set_create_service_spec.rb' |
79 |
| - - 'spec/services/hyrax/default_middleware_stack_spec.rb' |
80 |
| - - 'spec/services/hyrax/graph_exporter_spec.rb' |
81 |
| - - 'spec/services/hyrax/user_stat_importer_spec.rb' |
82 |
| - - 'spec/services/hyrax/workflow/activate_object_spec.rb' |
83 |
| - - 'spec/services/hyrax/workflow/deactivate_object_spec.rb' |
84 |
| - - 'spec/services/hyrax/workflow/permission_generator_spec.rb' |
85 |
| - - 'spec/services/hyrax/workflow/permission_query_spec.rb' |
86 |
| - - 'spec/services/hyrax/workflow/state_machine_generator_spec.rb' |
87 |
| - - 'spec/services/hyrax/workflow/workflow_importer_spec.rb' |
88 |
| - - 'spec/views/**/*' |
89 |
| - - 'spec/wings/valkyrie/persister_spec.rb' |
90 |
| - |
91 |
| -RSpec/VerifiedDoubles: |
| 15 | +# Offense count: 3 |
| 16 | +# This cop supports safe autocorrection (--autocorrect). |
| 17 | +# Configuration parameters: AllowForAlignment. |
| 18 | +Layout/SpaceBeforeFirstArg: |
92 | 19 | Enabled: false
|
93 | 20 |
|
94 |
| -RSpec/SubjectStub: |
95 |
| - Exclude: |
96 |
| - - 'spec/actors/hyrax/actors/generic_work_actor_spec.rb' |
97 |
| - - 'spec/controllers/hyrax/file_sets_controller_spec.rb' |
98 |
| - - 'spec/models/file_set_spec.rb' |
99 |
| - - 'spec/models/hyrax/work_behavior_spec.rb' |
100 |
| - - 'spec/search_builders/hyrax/file_set_search_builder_spec.rb' |
101 |
| - - 'spec/models/hyrax/operation_spec.rb' |
102 |
| - - 'spec/controllers/hyrax/accepts_batches_controller_spec.rb' |
103 |
| - - 'spec/indexers/hyrax/repository_reindexer_spec.rb' |
104 |
| - - 'spec/lib/hyrax/analytics_spec.rb' |
105 |
| - - 'spec/models/job_io_wrapper_spec.rb' |
106 |
| - - 'spec/search_builders/hyrax/abstract_type_relation_spec.rb' |
107 |
| - - 'spec/services/hyrax/database_migrator_spec.rb' |
108 |
| - |
109 |
| -RSpec/AnyInstance: |
110 |
| - Exclude: |
111 |
| - - 'spec/actors/hyrax/actors/generic_work_actor_spec.rb' |
112 |
| - - 'spec/controllers/hyrax/api/items_controller_spec.rb' |
113 |
| - - 'spec/controllers/hyrax/api/zotero_controller_spec.rb' |
114 |
| - - 'spec/controllers/hyrax/batch_edits_controller_spec.rb' |
115 |
| - - 'spec/controllers/hyrax/stats_controller_spec.rb' |
116 |
| - - 'spec/controllers/hyrax/users_controller_spec.rb' |
117 |
| - - 'spec/hyrax/transactions/steps/delete_access_control_spec.rb' |
118 |
| - - 'spec/hyrax/transactions/steps/save_access_control_spec.rb' |
119 |
| - - 'spec/jobs/content_restored_version_event_job_spec.rb' |
120 |
| - - 'spec/jobs/file_set_attached_event_job_spec.rb' |
121 |
| - - 'spec/jobs/hyrax/grant_edit_to_members_job_spec.rb' |
122 |
| - - 'spec/jobs/hyrax/grant_read_to_members_job_spec.rb' |
123 |
| - - 'spec/jobs/hyrax/revoke_edit_from_members_job_spec.rb' |
124 |
| - - 'spec/lib/hyrax/arkivo/create_subscription_job_spec.rb' |
125 |
| - - 'spec/presenters/hyrax/file_usage_spec.rb' |
126 |
| - - 'spec/presenters/hyrax/work_usage_spec.rb' |
127 |
| - - 'spec/services/hyrax/repository_fixity_check_service_spec.rb' |
128 |
| - - 'spec/services/hyrax/workflow/permission_generator_spec.rb' |
129 |
| - - 'spec/services/hyrax/workflow/sipity_actions_generator_spec.rb' |
130 |
| - - 'spec/services/hyrax/workflow/state_machine_generator_spec.rb' |
131 |
| - - 'spec/services/hyrax/workflow/workflow_permissions_generator_spec.rb' |
132 |
| - - 'spec/controllers/hyrax/homepage_controller_spec.rb' |
133 |
| - - 'spec/controllers/hyrax/my/collections_controller_spec.rb' |
134 |
| - - 'spec/controllers/hyrax/my/works_controller_spec.rb' |
135 |
| - - 'spec/presenters/hyrax/admin/repository_object_presenter_spec.rb' |
136 |
| - |
137 |
| -# Offense count: 51 |
138 |
| -RSpec/ExpectInHook: |
| 21 | +# Offense count: 1 |
| 22 | +# Configuration parameters: AllowedParentClasses. |
| 23 | +Lint/MissingSuper: |
139 | 24 | Enabled: false
|
140 | 25 |
|
141 |
| -# Offense count: 27 |
142 |
| -# Configuration parameters: EnforcedStyle, SupportedStyles. |
143 |
| -# SupportedStyles: and_return, block |
144 |
| -RSpec/ReturnFromStub: |
145 |
| - Exclude: |
146 |
| - - 'spec/controllers/hyrax/api/items_controller_spec.rb' |
147 |
| - - 'spec/controllers/hyrax/file_sets_controller_spec.rb' |
148 |
| - - 'spec/lib/hyrax/arkivo/create_subscription_job_spec.rb' |
149 |
| - - 'spec/models/file_set_spec.rb' |
150 |
| - - 'spec/presenters/hyrax/admin_set_options_presenter_spec.rb' |
151 |
| - - 'spec/routing/api_route_spec.rb' |
152 |
| - - 'spec/views/_user_util_links.html.erb_spec.rb' |
153 |
| - - 'spec/views/hyrax/base/_attributes.html.erb_spec.rb' |
154 |
| - - 'spec/views/hyrax/base/_form.html.erb_spec.rb' |
155 |
| - - 'spec/views/hyrax/base/file_manager.html.erb_spec.rb' |
156 |
| - - 'spec/views/hyrax/dashboard/profiles/edit.html.erb_spec.rb' |
157 |
| - - 'spec/views/hyrax/users/_user_info.html.erb_spec.rb' |
| 26 | +# Offense count: 8 |
| 27 | +# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns. |
| 28 | +Metrics/MethodLength: |
| 29 | + Enabled: false |
158 | 30 |
|
159 |
| -# Offense count: 26 |
160 |
| -RSpec/RepeatedDescription: |
161 |
| - Exclude: |
162 |
| - - 'spec/models/sipity/agent_spec.rb' |
163 |
| - - 'spec/models/sipity/comment_spec.rb' |
164 |
| - - 'spec/models/sipity/entity_spec.rb' |
165 |
| - - 'spec/models/sipity/entity_specific_responsibility_spec.rb' |
166 |
| - - 'spec/models/sipity/role_spec.rb' |
167 |
| - - 'spec/models/sipity/workflow_action_spec.rb' |
168 |
| - - 'spec/models/sipity/workflow_responsibility_spec.rb' |
169 |
| - - 'spec/models/sipity/workflow_role_spec.rb' |
170 |
| - - 'spec/models/sipity/workflow_state_action_permission_spec.rb' |
171 |
| - - 'spec/models/sipity/workflow_state_action_spec.rb' |
172 |
| - - 'spec/models/sipity/workflow_state_spec.rb' |
| 31 | +# Offense count: 3 |
| 32 | +# This cop supports safe autocorrection (--autocorrect). |
| 33 | +# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. |
| 34 | +# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys |
| 35 | +# SupportedShorthandSyntax: always, never, either, consistent |
| 36 | +Style/HashSyntax: |
| 37 | + Enabled: false |
173 | 38 |
|
174 | 39 | # Offense count: 2
|
175 |
| -# Configuration parameters: Include. |
176 |
| -# Include: app/models/**/*.rb |
177 |
| -Rails/HasManyOrHasOneDependent: |
178 |
| - Exclude: |
179 |
| - - 'app/models/admin_set.rb' |
180 |
| - - 'app/models/hyrax/permission_template.rb' |
| 40 | +# This cop supports safe autocorrection (--autocorrect). |
| 41 | +Style/RedundantParentheses: |
| 42 | + Enabled: false |
181 | 43 |
|
182 | 44 | # Offense count: 1
|
183 |
| -Rails/SkipsModelValidations: |
184 |
| - Exclude: |
185 |
| - - 'app/services/hyrax/works/migration_service.rb' |
186 |
| - |
187 |
| -# Offense count: 12 |
188 |
| -Lint/MissingSuper: |
189 |
| - Exclude: |
190 |
| - - 'app/actors/hyrax/actors/interpret_visibility_actor.rb' |
191 |
| - - 'app/actors/hyrax/actors/ordered_members_actor.rb' |
192 |
| - - 'app/models/concerns/hyrax/file_set/characterization.rb' |
193 |
| - - 'app/presenters/hyrax/file_usage.rb' |
194 |
| - - 'app/presenters/hyrax/work_usage.rb' |
195 |
| - - 'app/services/hyrax/batch_create_failure_service.rb' |
196 |
| - - 'app/services/hyrax/batch_create_success_service.rb' |
197 |
| - - 'app/services/hyrax/collection_types/create_service.rb' |
198 |
| - - 'app/services/hyrax/solr_query_service.rb' |
199 |
| - - 'lib/hyrax/form_fields.rb' |
200 |
| - - 'lib/hyrax/health_checks/solr_check.rb' |
201 |
| - - 'lib/hyrax/schema.rb' |
| 45 | +# This cop supports safe autocorrection (--autocorrect). |
| 46 | +# Configuration parameters: AllowMultipleReturnValues. |
| 47 | +Style/RedundantReturn: |
| 48 | + Enabled: false |
0 commit comments