This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
195 lines (158 loc) · 4.95 KB
/
.rubocop.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
# Turn on RSpec cops
require: rubocop-rspec
inherit_from: .rubocop_todo.yml
# With the rubocop 0.47.0 and rubocop-rspec 1.8.0 the following stderr message was sent:
# An error occurred while RSpec/DescribedClass cop was inspecting path/to/file
RSpec/DescribedClass:
Enabled: false
AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.3
Exclude:
- 'bin/**/*'
- 'db/**/*'
- 'config/**/*'
- 'vendor/**/*'
- '.internal_test_app/**/*'
- 'spec/fixtures/**/*'
- 'spec/internal/**/*'
- 'spec/test_app_templates/**/*'
- 'Rakefile'
- 'lib/tasks/rubocop.rake'
# disabling collections controller as most of the rubocop errors are in hyrax
- 'app/controllers/hyrax/dashboard/collections_controller.rb'
Layout/IndentationConsistency:
EnforcedStyle: rails
Layout/DotPosition:
EnforcedStyle: leading
Layout/EmptyLineAfterMagicComment:
Exclude:
- 'app/matchers/bulkrax/application_matcher.rb'
Lint/UnusedBlockArgument:
Exclude:
- 'app/models/concerns/bulkrax/has_local_processing.rb'
Metrics/AbcSize:
Exclude:
- 'app/indexers/hyrax/file_set_indexer.rb'
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
- 'lib/tasks/*.rake'
- 'app/controllers/catalog_controller.rb'
- 'app/models/adventist_metadata.rb'
- 'config/initializers/bulkrax.rb'
Metrics/ClassLength:
Exclude:
- 'app/controllers/catalog_controller.rb'
- 'app/controllers/hyrax/file_sets_controller.rb'
Metrics/LineLength:
Max: 120
Exclude:
- 'app/controllers/catalog_controller.rb'
- 'app/controllers/hyrax/file_sets_controller.rb'
- 'app/controllers/hyrax/my/collections_controller.rb'
- 'app/models/adventist_metadata.rb'
- 'app/services/hyrax/collection_types/permissions_service.rb'
- 'spec/controllers/curation_concerns/generic_works_controller_spec.rb'
- 'spec/features/facet_by_year_spec.rb'
- 'spec/services/iiif_collection_thumbnail_path_service_spec.rb'
- 'spec/services/iiif_work_thumbnail_path_service_spec.rb'
- 'spec/routing/proprietor/accounts_routing_spec.rb'
- 'app/actors/hyrax/actors/create_with_remote_files_actor.rb'
- 'app/actors/hyrax/actors/file_set_actor.rb'
- 'app/matchers/bulkrax/application_matcher.rb'
- 'app/models/concerns/bulkrax/file_factory.rb'
- 'app/models/concerns/bulkrax/has_matchers.rb'
- 'config/initializers/bulkrax.rb'
- 'app/models/concerns/bulkrax/has_local_processing.rb'
- 'app/services/hyrax/manifest_builder_service.rb'
Metrics/ModuleLength:
Max: 200
Rails:
Enabled: true
Rails/DynamicFindBy:
Whitelist:
- find_by_user_key
Exclude:
- 'lib/importer/factory/object_factory.rb'
Rails/FilePath:
Exclude:
- 'spec/routing/**/*'
Rails/FindBy:
Exclude:
- 'app/models/concerns/bulkrax/has_local_processing.rb'
Rails/HasAndBelongsToMany:
Exclude:
- 'app/models/role.rb'
Rails/Presence:
Exclude:
- 'app/actors/hyrax/actors/file_set_actor.rb'
- 'app/indexers/hyrax/file_set_indexer.rb'
RSpec/AnyInstance:
Enabled: false
RSpec/InstanceVariable:
Exclude:
- 'spec/controllers/hyku/registrations_controller_spec.rb'
RSpec/NamedSubject:
Enabled: false
RSpec/DescribeClass:
Exclude:
- 'spec/requests/**/*'
- 'spec/features/**/*'
- 'spec/views/**/*'
- 'spec/routing/**/*'
- 'spec/tasks/**/*'
RSpec/ExpectActual:
Exclude:
- 'spec/routing/**/*'
RSpec/VerifiedDoubles:
Enabled: false
RSpec/MessageExpectation:
Enabled: false
RSpec/ExampleLength:
Max: 16
Exclude:
- 'spec/features/facet_by_year_spec.rb'
- 'spec/requests/date_range_limit_spec.rb'
# By default RSpec/MessageSpies has the following:
# Prefer have_received for setting message expectations. Setup form as a spy using allow or instance_spy.
RSpec/MessageSpies:
Enabled: true
EnforcedStyle: receive
RSpec/NestedGroups:
Max: 4
RSpec/MultipleExpectations:
Enabled: false
Style/ClassAndModuleChildren:
Exclude:
- 'app/authorities/qa/authorities/collections.rb'
- 'app/authorities/qa/authorities/find_works.rb'
- 'app/controllers/hyrax/homepage_controller.rb'
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Exclude:
- 'app/actors/hyrax/actors/create_with_remote_files_actor.rb'
- 'app/actors/hyrax/actors/file_set_actor.rb'
- 'app/indexers/hyrax/file_set_indexer.rb'
- 'app/models/concerns/hyrax/file_set_behavior.rb'
Style/GuardClause:
Exclude:
- 'app/search_builders/adv_search_builder.rb'
- 'app/models/concerns/bulkrax/has_local_processing.rb'
Style/SymbolProc:
Exclude:
- 'app/models/concerns/bulkrax/has_local_processing.rb'
Style/RedundantReturn:
Exclude:
- 'app/matchers/bulkrax/application_matcher.rb'
- 'app/models/concerns/bulkrax/has_matchers.rb'
Style/RedundantSelf:
Exclude:
- 'app/matchers/bulkrax/application_matcher.rb'
- 'app/models/bulkrax/oai_adventist_qdc_entry.rb'
- 'app/models/concerns/bulkrax/has_local_processing.rb'
Style/StringLiterals:
Enabled: false
Style/WordArray:
Enabled: false