blacklight 7.38.0 → 7.39.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.env +1 -1
  3. data/.github/workflows/ruby.yml +1 -43
  4. data/.rubocop.yml +13 -4
  5. data/.rubocop_todo.yml +396 -160
  6. data/Gemfile +0 -8
  7. data/README.md +1 -1
  8. data/VERSION +1 -1
  9. data/app/assets/stylesheets/blacklight/_constraints.scss +4 -4
  10. data/app/components/blacklight/advanced_search_form_component.html.erb +2 -2
  11. data/app/components/blacklight/document_component.html.erb +4 -0
  12. data/app/components/blacklight/document_component.rb +27 -4
  13. data/app/components/blacklight/document_title_component.rb +4 -1
  14. data/app/components/blacklight/facet_component.rb +2 -2
  15. data/app/components/blacklight/facet_field_checkboxes_component.html.erb +1 -1
  16. data/app/components/blacklight/icons/icon_component.rb +9 -4
  17. data/app/components/blacklight/response/pagination_component.rb +6 -1
  18. data/app/components/blacklight/response/sort_component.html.erb +1 -6
  19. data/app/components/blacklight/response/sort_component.rb +17 -2
  20. data/app/components/blacklight/response/spellcheck_component.rb +1 -1
  21. data/app/components/blacklight/response/view_type_button_component.rb +1 -1
  22. data/app/components/blacklight/response/view_type_component.rb +1 -1
  23. data/app/components/blacklight/search/per_page_component.html.erb +2 -0
  24. data/app/components/blacklight/search/per_page_component.rb +50 -0
  25. data/app/components/blacklight/system/dropdown_button_component.rb +18 -0
  26. data/app/components/blacklight/system/dropdown_component.rb +4 -7
  27. data/app/components/blacklight/system/flash_message_component.html.erb +1 -1
  28. data/app/components/blacklight/system/flash_message_component.rb +1 -1
  29. data/app/components/blacklight/system/modal_component.rb +1 -1
  30. data/app/helpers/blacklight/catalog_helper_behavior.rb +2 -0
  31. data/app/helpers/blacklight/configuration_helper_behavior.rb +2 -0
  32. data/app/helpers/blacklight/icon_helper_behavior.rb +3 -0
  33. data/app/helpers/blacklight/layout_helper_behavior.rb +3 -3
  34. data/app/models/concerns/blacklight/document/semantic_fields.rb +1 -1
  35. data/app/views/catalog/_per_page_widget.html.erb +1 -10
  36. data/app/views/kaminari/blacklight/_page.html.erb +1 -2
  37. data/app/views/shared/_flash_messages.html.erb +1 -1
  38. data/blacklight.gemspec +8 -5
  39. data/docker-compose.yml +0 -2
  40. data/lib/blacklight/configuration/view_config.rb +6 -0
  41. data/lib/blacklight/configuration.rb +4 -17
  42. data/lib/blacklight/open_struct_with_hash_access.rb +0 -15
  43. data/lib/blacklight/solr/response.rb +0 -12
  44. data/lib/blacklight/solr/search_builder_behavior.rb +2 -0
  45. data/lib/blacklight/solr.rb +0 -6
  46. data/lib/blacklight.rb +5 -20
  47. data/lib/generators/blacklight/assets_generator.rb +0 -3
  48. data/package.json +1 -1
  49. data/spec/components/blacklight/document/action_component_spec.rb +1 -6
  50. data/spec/components/blacklight/document_component_spec.rb +50 -0
  51. data/spec/components/blacklight/icons/icon_component_spec.rb +42 -0
  52. data/spec/components/blacklight/response/pagination_component_spec.rb +53 -0
  53. data/spec/helpers/blacklight/layout_helper_behavior_spec.rb +20 -3
  54. data/spec/models/blacklight/solr/search_builder_spec.rb +13 -0
  55. data/spec/services/blacklight/search_service_spec.rb +12 -12
  56. data/spec/spec_helper.rb +0 -28
  57. data/spec/test_app_templates/Gemfile.extra +0 -1
  58. data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +2 -0
  59. data/spec/views/catalog/index.atom.builder_spec.rb +2 -1
  60. data/template.demo.rb +7 -7
  61. metadata +61 -12
data/.rubocop_todo.yml CHANGED
@@ -1,13 +1,13 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2020-09-24 02:12:21 UTC using RuboCop version 0.91.1.
3
+ # on 2024-09-23 14:38:22 UTC using RuboCop version 1.66.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
9
  # Offense count: 4
10
- # Cop supports --auto-correct.
10
+ # This cop supports safe autocorrection (--autocorrect).
11
11
  Capybara/CurrentPathExpectation:
12
12
  Exclude:
13
13
  - 'spec/features/alternate_controller_spec.rb'
@@ -20,8 +20,17 @@ Capybara/VisibilityMatcher:
20
20
  - 'spec/helpers/blacklight/hash_as_hidden_fields_behavior_spec.rb'
21
21
  - 'spec/helpers/blacklight_helper_spec.rb'
22
22
 
23
+ # Offense count: 2
24
+ # This cop supports safe autocorrection (--autocorrect).
25
+ # Configuration parameters: EnforcedStyleAlignWith, Severity.
26
+ # SupportedStylesAlignWith: start_of_line, begin
27
+ Layout/BeginEndAlignment:
28
+ Exclude:
29
+ - 'app/models/record_mailer.rb'
30
+ - 'spec/features/search_results_spec.rb'
31
+
23
32
  # Offense count: 8
24
- # Cop supports --auto-correct.
33
+ # This cop supports safe autocorrection (--autocorrect).
25
34
  # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
26
35
  # SupportedStyles: case, end
27
36
  Layout/CaseIndentation:
@@ -31,26 +40,26 @@ Layout/CaseIndentation:
31
40
  - 'lib/blacklight/configuration/fields.rb'
32
41
 
33
42
  # Offense count: 2
34
- # Cop supports --auto-correct.
43
+ # This cop supports safe autocorrection (--autocorrect).
35
44
  Layout/ClosingParenthesisIndentation:
36
45
  Exclude:
37
46
  - 'app/views/catalog/index.atom.builder'
38
47
 
39
- # Offense count: 111
40
- # Cop supports --auto-correct.
48
+ # Offense count: 114
49
+ # This cop supports safe autocorrection (--autocorrect).
41
50
  Layout/EmptyLineAfterMagicComment:
42
51
  Enabled: false
43
52
 
44
53
  # Offense count: 1
45
- # Cop supports --auto-correct.
54
+ # This cop supports safe autocorrection (--autocorrect).
46
55
  # Configuration parameters: AllowAliasSyntax, AllowedMethods.
47
56
  # AllowedMethods: alias_method, public, protected, private
48
57
  Layout/EmptyLinesAroundAttributeAccessor:
49
58
  Exclude:
50
59
  - 'app/presenters/blacklight/field_presenter.rb'
51
60
 
52
- # Offense count: 7
53
- # Cop supports --auto-correct.
61
+ # Offense count: 8
62
+ # This cop supports safe autocorrection (--autocorrect).
54
63
  # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
55
64
  Layout/ExtraSpacing:
56
65
  Exclude:
@@ -58,17 +67,10 @@ Layout/ExtraSpacing:
58
67
  - 'app/models/record_mailer.rb'
59
68
  - 'app/views/catalog/index.atom.builder'
60
69
  - 'config/routes.rb'
70
+ - 'spec/models/blacklight/configurable_spec.rb'
61
71
 
62
- # Offense count: 2
63
- # Cop supports --auto-correct.
64
- # Configuration parameters: EnforcedStyle, IndentationWidth.
65
- # SupportedStyles: special_inside_parentheses, consistent, align_braces
66
- Layout/FirstHashElementIndentation:
67
- Exclude:
68
- - 'lib/blacklight/configuration.rb'
69
-
70
- # Offense count: 6
71
- # Cop supports --auto-correct.
72
+ # Offense count: 9
73
+ # This cop supports safe autocorrection (--autocorrect).
72
74
  # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
73
75
  Layout/LeadingCommentSpace:
74
76
  Exclude:
@@ -76,15 +78,16 @@ Layout/LeadingCommentSpace:
76
78
  - 'app/models/concerns/blacklight/configurable.rb'
77
79
  - 'app/models/concerns/blacklight/document/export.rb'
78
80
  - 'app/views/catalog/_document.atom.builder'
81
+ - 'lib/blacklight/solr/response/pagination_methods.rb'
79
82
 
80
83
  # Offense count: 1
81
- # Cop supports --auto-correct.
84
+ # This cop supports safe autocorrection (--autocorrect).
82
85
  Layout/MultilineBlockLayout:
83
86
  Exclude:
84
87
  - 'lib/generators/blacklight/test_support_generator.rb'
85
88
 
86
89
  # Offense count: 2
87
- # Cop supports --auto-correct.
90
+ # This cop supports safe autocorrection (--autocorrect).
88
91
  # Configuration parameters: EnforcedStyle.
89
92
  # SupportedStyles: symmetrical, new_line, same_line
90
93
  Layout/MultilineMethodCallBraceLayout:
@@ -92,7 +95,7 @@ Layout/MultilineMethodCallBraceLayout:
92
95
  - 'app/views/catalog/index.atom.builder'
93
96
 
94
97
  # Offense count: 9
95
- # Cop supports --auto-correct.
98
+ # This cop supports safe autocorrection (--autocorrect).
96
99
  # Configuration parameters: EnforcedStyle, IndentationWidth.
97
100
  # SupportedStyles: aligned, indented, indented_relative_to_receiver
98
101
  Layout/MultilineMethodCallIndentation:
@@ -100,7 +103,7 @@ Layout/MultilineMethodCallIndentation:
100
103
  - 'lib/blacklight/search_builder.rb'
101
104
 
102
105
  # Offense count: 9
103
- # Cop supports --auto-correct.
106
+ # This cop supports safe autocorrection (--autocorrect).
104
107
  # Configuration parameters: EnforcedStyle, IndentationWidth.
105
108
  # SupportedStyles: aligned, indented
106
109
  Layout/MultilineOperationIndentation:
@@ -111,42 +114,45 @@ Layout/MultilineOperationIndentation:
111
114
  - 'lib/blacklight/solr/search_builder_behavior.rb'
112
115
 
113
116
  # Offense count: 2
114
- # Cop supports --auto-correct.
117
+ # This cop supports safe autocorrection (--autocorrect).
118
+ Layout/RescueEnsureAlignment:
119
+ Exclude:
120
+ - 'app/models/record_mailer.rb'
121
+ - 'spec/features/search_results_spec.rb'
122
+
123
+ # Offense count: 2
124
+ # This cop supports safe autocorrection (--autocorrect).
115
125
  Layout/SpaceAfterComma:
116
126
  Exclude:
117
127
  - 'app/views/catalog/index.atom.builder'
118
128
  - 'app/views/catalog/opensearch.xml.builder'
119
129
 
120
- # Offense count: 1
121
- # Cop supports --auto-correct.
130
+ # Offense count: 2
131
+ # This cop supports safe autocorrection (--autocorrect).
122
132
  # Configuration parameters: AllowForAlignment.
123
133
  Layout/SpaceBeforeFirstArg:
124
134
  Exclude:
125
135
  - 'app/views/catalog/index.atom.builder'
136
+ - 'spec/models/blacklight/configurable_spec.rb'
126
137
 
127
138
  # Offense count: 7
128
- # Cop supports --auto-correct.
139
+ # This cop supports safe autocorrection (--autocorrect).
129
140
  # Configuration parameters: EnforcedStyle.
130
- # SupportedStyles: space, no_space
141
+ # SupportedStyles: space, compact, no_space
131
142
  Layout/SpaceInsideParens:
132
143
  Exclude:
133
144
  - 'app/views/catalog/_document.rss.builder'
134
145
  - 'app/views/catalog/index.atom.builder'
135
146
 
136
147
  # Offense count: 1
137
- # Cop supports --auto-correct.
138
- # Configuration parameters: AllowInHeredoc.
139
- Layout/TrailingWhitespace:
140
- Exclude:
141
- - 'lib/blacklight/configuration.rb'
142
-
143
- # Offense count: 1
148
+ # This cop supports safe autocorrection (--autocorrect).
149
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
144
150
  Lint/AmbiguousBlockAssociation:
145
151
  Exclude:
146
152
  - 'lib/blacklight/solr/search_builder_behavior.rb'
147
153
 
148
- # Offense count: 8
149
- # Cop supports --auto-correct.
154
+ # Offense count: 9
155
+ # This cop supports safe autocorrection (--autocorrect).
150
156
  Lint/AmbiguousOperator:
151
157
  Exclude:
152
158
  - 'spec/helpers/blacklight/facets_helper_behavior_spec.rb'
@@ -158,7 +164,7 @@ Lint/AmbiguousOperator:
158
164
  - 'spec/services/blacklight/search_service_spec.rb'
159
165
 
160
166
  # Offense count: 55
161
- # Cop supports --auto-correct.
167
+ # This cop supports safe autocorrection (--autocorrect).
162
168
  Lint/AmbiguousRegexpLiteral:
163
169
  Exclude:
164
170
  - 'spec/controllers/catalog_controller_spec.rb'
@@ -173,8 +179,39 @@ Lint/AmbiguousRegexpLiteral:
173
179
  - 'spec/views/catalog/index.html.erb_spec.rb'
174
180
  - 'spec/views/catalog/show.html.erb_spec.rb'
175
181
 
176
- # Offense count: 29
177
- # Cop supports --auto-correct.
182
+ # Offense count: 1
183
+ Lint/BinaryOperatorWithIdenticalOperands:
184
+ Exclude:
185
+ - 'spec/models/blacklight/document/active_model_shim_spec.rb'
186
+
187
+ # Offense count: 16
188
+ # Configuration parameters: AllowedMethods.
189
+ # AllowedMethods: enums
190
+ Lint/ConstantDefinitionInBlock:
191
+ Exclude:
192
+ - 'lib/blacklight/engine.rb'
193
+ - 'spec/controllers/blacklight/search_fields_spec.rb'
194
+ - 'spec/controllers/bookmarks_controller_spec.rb'
195
+ - 'spec/controllers/catalog_controller_spec.rb'
196
+ - 'spec/models/blacklight/configurable_spec.rb'
197
+ - 'spec/models/blacklight/document/active_model_shim_spec.rb'
198
+ - 'spec/models/blacklight/document_spec.rb'
199
+ - 'spec/models/blacklight/solr/document_spec.rb'
200
+ - 'spec/presenters/blacklight/show_presenter_spec.rb'
201
+
202
+ # Offense count: 1
203
+ # Configuration parameters: AllowComments.
204
+ Lint/EmptyFile:
205
+ Exclude:
206
+ - 'spec/components/blacklight/document_metadata_component_spec.rb'
207
+
208
+ # Offense count: 46
209
+ # Configuration parameters: AllowedParentClasses.
210
+ Lint/MissingSuper:
211
+ Enabled: false
212
+
213
+ # Offense count: 30
214
+ # This cop supports safe autocorrection (--autocorrect).
178
215
  Lint/ParenthesesAsGroupedExpression:
179
216
  Exclude:
180
217
  - 'spec/features/did_you_mean_spec.rb'
@@ -184,58 +221,58 @@ Lint/ParenthesesAsGroupedExpression:
184
221
  - 'spec/lib/blacklight/search_state_spec.rb'
185
222
  - 'spec/models/blacklight/solr/repository_spec.rb'
186
223
 
224
+ # Offense count: 2
225
+ # This cop supports unsafe autocorrection (--autocorrect-all).
226
+ # Configuration parameters: AllowedMethods.
227
+ # AllowedMethods: instance_of?, kind_of?, is_a?, eql?, respond_to?, equal?, presence, present?
228
+ Lint/RedundantSafeNavigation:
229
+ Exclude:
230
+ - 'app/helpers/blacklight/blacklight_helper_behavior.rb'
231
+ - 'lib/blacklight/solr/response/params.rb'
232
+
187
233
  # Offense count: 2
188
234
  Lint/ShadowingOuterLocalVariable:
189
235
  Exclude:
190
236
  - 'spec/models/blacklight/configuration_spec.rb'
191
237
 
192
- # Offense count: 57
193
- # Configuration parameters: IgnoredMethods.
238
+ # Offense count: 87
239
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
194
240
  Metrics/AbcSize:
195
- Max: 59
241
+ Max: 46
196
242
 
197
243
  # Offense count: 2
198
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
199
- # ExcludedMethods: refine
244
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
245
+ # AllowedMethods: refine
200
246
  Metrics/BlockLength:
201
- Max: 30
247
+ Max: 29
202
248
 
203
- # Offense count: 1
204
- # Configuration parameters: CountBlocks.
205
- Metrics/BlockNesting:
206
- Max: 4
207
-
208
- # Offense count: 2
209
- # Configuration parameters: CountComments, CountAsOne.
210
- Metrics/ClassLength:
211
- Max: 169
212
-
213
- # Offense count: 26
214
- # Configuration parameters: IgnoredMethods.
249
+ # Offense count: 47
250
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
215
251
  Metrics/CyclomaticComplexity:
216
- Max: 14
252
+ Max: 17
217
253
 
218
- # Offense count: 61
219
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
254
+ # Offense count: 94
255
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
220
256
  Metrics/MethodLength:
221
- Max: 30
257
+ Max: 29
222
258
 
223
- # Offense count: 8
259
+ # Offense count: 9
224
260
  # Configuration parameters: CountComments, CountAsOne.
225
261
  Metrics/ModuleLength:
226
- Max: 213
262
+ Max: 203
227
263
 
228
- # Offense count: 3
229
- # Configuration parameters: CountKeywordArgs.
264
+ # Offense count: 8
265
+ # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
230
266
  Metrics/ParameterLists:
231
267
  Max: 6
232
268
 
233
- # Offense count: 22
234
- # Configuration parameters: IgnoredMethods.
269
+ # Offense count: 40
270
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
235
271
  Metrics/PerceivedComplexity:
236
- Max: 16
272
+ Max: 18
237
273
 
238
274
  # Offense count: 4
275
+ # This cop supports unsafe autocorrection (--autocorrect-all).
239
276
  # Configuration parameters: EnforcedStyleForLeadingUnderscores.
240
277
  # SupportedStylesForLeadingUnderscores: disallowed, required, optional
241
278
  Naming/MemoizedInstanceVariableName:
@@ -245,34 +282,46 @@ Naming/MemoizedInstanceVariableName:
245
282
  - 'app/models/concerns/blacklight/document/semantic_fields.rb'
246
283
  - 'lib/blacklight/solr/response.rb'
247
284
 
248
- # Offense count: 13
285
+ # Offense count: 10
249
286
  # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
250
- # AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
287
+ # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
251
288
  Naming/MethodParameterName:
252
289
  Exclude:
253
290
  - 'app/models/concerns/blacklight/document.rb'
254
291
  - 'app/presenters/blacklight/rendering/link_to_facet.rb'
255
292
  - 'lib/blacklight/nested_open_struct_with_hash_access.rb'
256
- - 'lib/blacklight/search_state.rb'
257
293
  - 'lib/blacklight/solr/document.rb'
258
294
  - 'lib/blacklight/solr/search_builder_behavior.rb'
259
- - 'spec/features/search_context_spec.rb'
260
- - 'spec/features/search_results_spec.rb'
261
295
 
262
- # Offense count: 14
263
- # Configuration parameters: EnforcedStyle.
296
+ # Offense count: 25
297
+ # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
264
298
  # SupportedStyles: snake_case, normalcase, non_integer
299
+ # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
265
300
  Naming/VariableNumber:
266
301
  Exclude:
302
+ - 'spec/lib/blacklight/search_state_spec.rb'
303
+ - 'spec/models/blacklight/search_builder_spec.rb'
304
+ - 'spec/views/catalog/_facet_group.html.erb_spec.rb'
267
305
  - 'spec/views/catalog/_index.html.erb_spec.rb'
268
306
  - 'spec/views/catalog/_show.html.erb_spec.rb'
269
307
 
308
+ # Offense count: 55
309
+ # This cop supports unsafe autocorrection (--autocorrect-all).
310
+ RSpec/BeEq:
311
+ Enabled: false
312
+
313
+ # Offense count: 2
314
+ # This cop supports safe autocorrection (--autocorrect).
315
+ # Configuration parameters: EnforcedStyle.
316
+ # SupportedStyles: be, be_nil
317
+ RSpec/BeNil:
318
+ Exclude:
319
+ - 'spec/models/blacklight/icon_spec.rb'
320
+ - 'spec/presenters/thumbnail_presenter_spec.rb'
321
+
270
322
  # Offense count: 9
271
323
  RSpec/BeforeAfterAll:
272
324
  Exclude:
273
- - 'spec/spec_helper.rb'
274
- - 'spec/rails_helper.rb'
275
- - 'spec/support/**/*.rb'
276
325
  - 'spec/controllers/blacklight/search_fields_spec.rb'
277
326
  - 'spec/controllers/search_history_controller_spec.rb'
278
327
  - 'spec/helpers/blacklight/search_history_constraints_helper_behavior_spec.rb'
@@ -282,48 +331,64 @@ RSpec/BeforeAfterAll:
282
331
  - 'spec/models/blacklight/document/sms_spec.rb'
283
332
  - 'spec/models/blacklight/solr/document_spec.rb'
284
333
 
285
- # Offense count: 81
286
- # Configuration parameters: Prefixes.
287
- # Prefixes: when, with, without
288
- RSpec/ContextWording:
334
+ # Offense count: 50
335
+ # This cop supports safe autocorrection (--autocorrect).
336
+ # Configuration parameters: EnforcedStyle.
337
+ # SupportedStyles: be_a, be_kind_of
338
+ RSpec/ClassCheck:
289
339
  Enabled: false
290
340
 
291
- # Offense count: 42
292
- RSpec/DescribeClass:
341
+ # Offense count: 110
342
+ # Configuration parameters: Prefixes, AllowedPatterns.
343
+ # Prefixes: when, with, without
344
+ RSpec/ContextWording:
293
345
  Enabled: false
294
346
 
295
- # Offense count: 2
296
- # Configuration parameters: CustomIncludeMethods.
347
+ # Offense count: 1
348
+ # This cop supports unsafe autocorrection (--autocorrect-all).
349
+ # Configuration parameters: AutoCorrect.
297
350
  RSpec/EmptyExampleGroup:
298
351
  Exclude:
299
- - 'spec/helpers/blacklight_helper_spec.rb'
300
352
  - 'spec/models/blacklight/solr/search_builder_spec.rb'
301
353
 
302
- # Offense count: 134
303
- # Configuration parameters: Max.
354
+ # Offense count: 152
355
+ # Configuration parameters: CountAsOne.
304
356
  RSpec/ExampleLength:
305
- Enabled: false
357
+ Max: 33
306
358
 
307
- # Offense count: 15
359
+ # Offense count: 2
360
+ # This cop supports safe autocorrection (--autocorrect).
361
+ # Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
362
+ # DisallowedExamples: works
363
+ RSpec/ExampleWording:
364
+ Exclude:
365
+ - 'spec/helpers/blacklight/url_helper_behavior_spec.rb'
366
+ - 'spec/presenters/blacklight/facet_item_presenter_spec.rb'
367
+
368
+ # Offense count: 3
369
+ # This cop supports safe autocorrection (--autocorrect).
370
+ RSpec/ExcessiveDocstringSpacing:
371
+ Exclude:
372
+ - 'spec/helpers/blacklight_helper_spec.rb'
373
+ - 'spec/models/blacklight/icon_spec.rb'
374
+ - 'spec/models/blacklight/solr/search_builder_spec.rb'
375
+
376
+ # Offense count: 11
308
377
  RSpec/ExpectInHook:
309
378
  Exclude:
310
379
  - 'spec/controllers/catalog_controller_spec.rb'
311
380
  - 'spec/helpers/blacklight/configuration_helper_behavior_spec.rb'
312
381
  - 'spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb'
313
382
  - 'spec/helpers/blacklight/suggest_helper_behavior_spec.rb'
314
- - 'spec/helpers/catalog_helper_spec.rb'
315
383
 
316
- # Offense count: 5
317
- # Configuration parameters: CustomTransform, IgnoreMethods, SpecSuffixOnly.
318
- RSpec/FilePath:
384
+ # Offense count: 9
385
+ # Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
386
+ RSpec/IndexedLet:
319
387
  Exclude:
320
- - 'spec/controllers/blacklight/catalog/component_configuration_spec.rb'
321
- - 'spec/helpers/blacklight/hash_as_hidden_fields_behavior_spec.rb'
322
- - 'spec/models/blacklight/solr/search_builder_spec.rb'
323
- - 'spec/presenters/pipeline_spec.rb'
324
- - 'spec/presenters/thumbnail_presenter_spec.rb'
388
+ - 'spec/helpers/blacklight/facets_helper_behavior_spec.rb'
389
+ - 'spec/models/blacklight/facet_paginator_spec.rb'
325
390
 
326
- # Offense count: 191
391
+ # Offense count: 188
327
392
  # Configuration parameters: AssignmentOnly.
328
393
  RSpec/InstanceVariable:
329
394
  Enabled: false
@@ -347,14 +412,26 @@ RSpec/LeakyConstantDeclaration:
347
412
  - 'spec/models/blacklight/solr/document_spec.rb'
348
413
  - 'spec/presenters/blacklight/show_presenter_spec.rb'
349
414
 
350
- # Offense count: 8
415
+ # Offense count: 14
416
+ # This cop supports safe autocorrection (--autocorrect).
417
+ RSpec/MatchArray:
418
+ Exclude:
419
+ - 'spec/controllers/catalog_controller_spec.rb'
420
+ - 'spec/helpers/blacklight/facets_helper_behavior_spec.rb'
421
+ - 'spec/lib/blacklight/open_struct_with_hash_access_spec.rb'
422
+ - 'spec/models/blacklight/configuration_spec.rb'
423
+ - 'spec/models/blacklight/search_builder_spec.rb'
424
+ - 'spec/models/blacklight/solr/request_spec.rb'
425
+ - 'spec/views/catalog/index.json.jbuilder_spec.rb'
426
+
427
+ # Offense count: 9
351
428
  RSpec/MessageChain:
352
429
  Exclude:
353
430
  - 'spec/controllers/bookmarks_controller_spec.rb'
354
431
  - 'spec/presenters/blacklight/field_presenter_spec.rb'
355
432
  - 'spec/views/shared/_user_util_links.html.erb_spec.rb'
356
433
 
357
- # Offense count: 61
434
+ # Offense count: 57
358
435
  # Configuration parameters: EnforcedStyle.
359
436
  # SupportedStyles: have_received, receive
360
437
  RSpec/MessageSpies:
@@ -373,24 +450,56 @@ RSpec/MessageSpies:
373
450
  - 'spec/presenters/blacklight/field_presenter_spec.rb'
374
451
  - 'spec/presenters/thumbnail_presenter_spec.rb'
375
452
 
376
- # Offense count: 363
453
+ # Offense count: 63
454
+ # This cop supports safe autocorrection (--autocorrect).
455
+ # Configuration parameters: EnforcedStyle.
456
+ # SupportedStyles: hash, symbol
457
+ RSpec/MetadataStyle:
458
+ Enabled: false
459
+
460
+ # Offense count: 437
377
461
  RSpec/MultipleExpectations:
378
462
  Max: 16
379
463
 
380
- # Offense count: 160
464
+ # Offense count: 272
381
465
  # Configuration parameters: AllowSubject.
382
466
  RSpec/MultipleMemoizedHelpers:
383
467
  Max: 14
384
468
 
385
- # Offense count: 337
386
- # Configuration parameters: IgnoreSharedExamples.
469
+ # Offense count: 417
470
+ # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
471
+ # SupportedStyles: always, named_only
387
472
  RSpec/NamedSubject:
388
473
  Enabled: false
389
474
 
390
- # Offense count: 40
475
+ # Offense count: 57
476
+ # Configuration parameters: AllowedGroups.
391
477
  RSpec/NestedGroups:
392
478
  Max: 5
393
479
 
480
+ # Offense count: 5
481
+ # Configuration parameters: AllowedPatterns.
482
+ # AllowedPatterns: ^expect_, ^assert_
483
+ RSpec/NoExpectationExample:
484
+ Exclude:
485
+ - 'spec/helpers/blacklight/configuration_helper_behavior_spec.rb'
486
+ - 'spec/helpers/blacklight/render_partials_helper_behavior_spec.rb'
487
+ - 'spec/helpers/blacklight_helper_spec.rb'
488
+ - 'spec/lib/tasks/blacklight_task_spec.rb'
489
+ - 'spec/views/catalog/facet.html.erb_spec.rb'
490
+
491
+ # Offense count: 3
492
+ RSpec/PendingWithoutReason:
493
+ Exclude:
494
+ - 'spec/components/blacklight/facet_item_pivot_component_spec.rb'
495
+ - 'spec/helpers/blacklight/search_history_constraints_helper_behavior_spec.rb'
496
+ - 'spec/i18n_spec.rb'
497
+
498
+ # Offense count: 84
499
+ # This cop supports unsafe autocorrection (--autocorrect-all).
500
+ RSpec/ReceiveMessages:
501
+ Enabled: false
502
+
394
503
  # Offense count: 11
395
504
  RSpec/RepeatedDescription:
396
505
  Exclude:
@@ -411,23 +520,55 @@ RSpec/RepeatedExampleGroupDescription:
411
520
  - 'spec/services/blacklight/search_service_spec.rb'
412
521
 
413
522
  # Offense count: 4
414
- # Cop supports --auto-correct.
523
+ # This cop supports safe autocorrection (--autocorrect).
524
+ # Configuration parameters: AutoCorrect.
415
525
  RSpec/ScatteredLet:
416
526
  Exclude:
417
527
  - 'spec/helpers/catalog_helper_spec.rb'
418
528
  - 'spec/models/blacklight/solr/search_builder_spec.rb'
419
529
  - 'spec/views/catalog/index.atom.builder_spec.rb'
420
530
 
421
- # Offense count: 13
531
+ # Offense count: 5
532
+ # Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
533
+ # Include: **/*_spec.rb
534
+ RSpec/SpecFilePathFormat:
535
+ Exclude:
536
+ - 'spec/controllers/blacklight/catalog/component_configuration_spec.rb'
537
+ - 'spec/helpers/blacklight/hash_as_hidden_fields_behavior_spec.rb'
538
+ - 'spec/models/blacklight/solr/search_builder_spec.rb'
539
+ - 'spec/presenters/pipeline_spec.rb'
540
+ - 'spec/presenters/thumbnail_presenter_spec.rb'
541
+
542
+ # Offense count: 24
543
+ RSpec/StubbedMock:
544
+ Exclude:
545
+ - 'spec/controllers/catalog_controller_spec.rb'
546
+ - 'spec/helpers/blacklight/configuration_helper_behavior_spec.rb'
547
+ - 'spec/helpers/blacklight/facets_helper_behavior_spec.rb'
548
+ - 'spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb'
549
+ - 'spec/helpers/blacklight/url_helper_behavior_spec.rb'
550
+ - 'spec/helpers/blacklight_helper_spec.rb'
551
+ - 'spec/helpers/catalog_helper_spec.rb'
552
+ - 'spec/models/blacklight/suggest_search_spec.rb'
553
+ - 'spec/presenters/blacklight/field_presenter_spec.rb'
554
+ - 'spec/presenters/thumbnail_presenter_spec.rb'
555
+
556
+ # Offense count: 1
557
+ RSpec/SubjectDeclaration:
558
+ Exclude:
559
+ - 'spec/models/blacklight/document/cache_key_spec.rb'
560
+
561
+ # Offense count: 12
422
562
  RSpec/SubjectStub:
423
563
  Exclude:
424
564
  - 'spec/controllers/catalog_controller_spec.rb'
425
- - 'spec/lib/blacklight/search_state_spec.rb'
426
565
  - 'spec/models/blacklight/document/cache_key_spec.rb'
427
566
  - 'spec/models/blacklight/search_builder_spec.rb'
567
+ - 'spec/presenters/blacklight/document_presenter_spec.rb'
568
+ - 'spec/presenters/blacklight/field_presenter_spec.rb'
428
569
  - 'spec/services/blacklight/search_service_spec.rb'
429
570
 
430
- # Offense count: 121
571
+ # Offense count: 132
431
572
  # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
432
573
  RSpec/VerifiedDoubles:
433
574
  Enabled: false
@@ -437,20 +578,22 @@ RSpec/VoidExpect:
437
578
  Exclude:
438
579
  - 'spec/lib/blacklight/configuration/facet_field_spec.rb'
439
580
 
440
- # Offense count: 8
441
- # Cop supports --auto-correct.
442
- Rails/ContentTag:
443
- Exclude:
444
- - 'app/components/blacklight/document_component.rb'
445
- - 'app/components/blacklight/facet_item_pivot_component.rb'
446
-
447
581
  # Offense count: 4
448
- # Configuration parameters: EnforcedStyle.
582
+ # This cop supports unsafe autocorrection (--autocorrect-all).
583
+ # Configuration parameters: EnforcedStyle, AllowToTime.
449
584
  # SupportedStyles: strict, flexible
450
585
  Rails/Date:
451
586
  Exclude:
452
587
  - 'spec/models/search_spec.rb'
453
588
 
589
+ # Offense count: 1
590
+ # This cop supports safe autocorrection (--autocorrect).
591
+ # Configuration parameters: EnforcedStyle.
592
+ # SupportedStyles: slashes, arguments
593
+ Rails/FilePath:
594
+ Exclude:
595
+ - 'lib/blacklight/component.rb'
596
+
454
597
  # Offense count: 31
455
598
  # Configuration parameters: Include.
456
599
  # Include: app/helpers/**/*.rb
@@ -462,22 +605,35 @@ Rails/HelperInstanceVariable:
462
605
  - 'app/helpers/blacklight/facets_helper_behavior.rb'
463
606
  - 'app/helpers/blacklight/render_partials_helper_behavior.rb'
464
607
 
465
- # Offense count: 11
608
+ # Offense count: 2
609
+ # This cop supports safe autocorrection (--autocorrect).
610
+ # Configuration parameters: EnforcedStyle.
611
+ # SupportedStyles: numeric, symbolic
612
+ Rails/HttpStatus:
613
+ Exclude:
614
+ - 'app/controllers/concerns/blacklight/bookmarks.rb'
615
+
616
+ # Offense count: 2
466
617
  Rails/OutputSafety:
467
618
  Exclude:
468
- - 'app/helpers/blacklight/catalog_helper_behavior.rb'
469
- - 'app/helpers/blacklight/configuration_helper_behavior.rb'
470
619
  - 'app/helpers/blacklight/icon_helper_behavior.rb'
471
- - 'app/helpers/blacklight/url_helper_behavior.rb'
472
620
  - 'app/presenters/blacklight/rendering/join.rb'
473
621
 
474
- # Offense count: 13
622
+ # Offense count: 14
475
623
  Security/Eval:
476
624
  Exclude:
477
625
  - 'spec/models/blacklight/solr/response_spec.rb'
478
626
 
627
+ # Offense count: 2
628
+ # This cop supports safe autocorrection (--autocorrect).
629
+ # Configuration parameters: EnforcedStyle.
630
+ # SupportedStyles: separated, grouped
631
+ Style/AccessorGrouping:
632
+ Exclude:
633
+ - 'lib/blacklight/search_state.rb'
634
+
479
635
  # Offense count: 9
480
- # Cop supports --auto-correct.
636
+ # This cop supports safe autocorrection (--autocorrect).
481
637
  # Configuration parameters: EnforcedStyle.
482
638
  # SupportedStyles: prefer_alias, prefer_alias_method
483
639
  Style/Alias:
@@ -490,44 +646,46 @@ Style/Alias:
490
646
  - 'lib/blacklight/solr/response/group_response.rb'
491
647
 
492
648
  # Offense count: 3
493
- # Cop supports --auto-correct.
494
- # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
649
+ # This cop supports safe autocorrection (--autocorrect).
650
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
495
651
  # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
496
652
  # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
497
653
  # FunctionalMethods: let, let!, subject, watch
498
- # IgnoredMethods: lambda, proc, it
654
+ # AllowedMethods: lambda, proc, it
499
655
  Style/BlockDelimiters:
500
656
  Exclude:
501
657
  - 'app/views/catalog/index.rss.builder'
502
658
  - 'app/views/catalog/opensearch.xml.builder'
503
659
 
504
- # Offense count: 51
505
- # Cop supports --auto-correct.
660
+ # Offense count: 56
661
+ # This cop supports unsafe autocorrection (--autocorrect-all).
506
662
  # Configuration parameters: EnforcedStyle.
507
663
  # SupportedStyles: nested, compact
508
664
  Style/ClassAndModuleChildren:
509
665
  Enabled: false
510
666
 
511
667
  # Offense count: 6
668
+ # This cop supports unsafe autocorrection (--autocorrect-all).
512
669
  Style/CommentedKeyword:
513
670
  Exclude:
514
671
  - 'spec/controllers/catalog_controller_spec.rb'
515
672
  - 'spec/services/blacklight/search_service_spec.rb'
516
673
 
517
674
  # Offense count: 1
518
- # Cop supports --auto-correct.
675
+ # This cop supports safe autocorrection (--autocorrect).
519
676
  # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
520
677
  # SupportedStyles: assign_to_condition, assign_inside_condition
521
678
  Style/ConditionalAssignment:
522
679
  Exclude:
523
680
  - 'lib/blacklight/solr/response/spelling.rb'
524
681
 
525
- # Offense count: 105
682
+ # Offense count: 127
683
+ # Configuration parameters: AllowedConstants.
526
684
  Style/Documentation:
527
685
  Enabled: false
528
686
 
529
687
  # Offense count: 10
530
- # Cop supports --auto-correct.
688
+ # This cop supports safe autocorrection (--autocorrect).
531
689
  Style/ExpandPathArguments:
532
690
  Exclude:
533
691
  - 'Gemfile'
@@ -541,15 +699,23 @@ Style/ExpandPathArguments:
541
699
  - 'lib/generators/blacklight/test_support_generator.rb'
542
700
  - 'lib/generators/blacklight/user_generator.rb'
543
701
 
544
- # Offense count: 16
545
- # Configuration parameters: EnforcedStyle.
702
+ # Offense count: 1
703
+ # This cop supports safe autocorrection (--autocorrect).
704
+ Style/ExplicitBlockArgument:
705
+ Exclude:
706
+ - 'tasks/blacklight.rake'
707
+
708
+ # Offense count: 17
709
+ # This cop supports safe autocorrection (--autocorrect).
710
+ # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
546
711
  # SupportedStyles: annotated, template, unannotated
712
+ # AllowedMethods: redirect
547
713
  Style/FormatStringToken:
548
- Exclude:
549
- - 'app/helpers/blacklight/render_partials_helper_behavior.rb'
714
+ EnforcedStyle: template
550
715
 
551
- # Offense count: 8
552
- # Configuration parameters: MinBodyLength.
716
+ # Offense count: 7
717
+ # This cop supports safe autocorrection (--autocorrect).
718
+ # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
553
719
  Style/GuardClause:
554
720
  Exclude:
555
721
  - 'app/controllers/concerns/blacklight/bookmarks.rb'
@@ -558,13 +724,40 @@ Style/GuardClause:
558
724
  - 'app/helpers/blacklight/catalog_helper_behavior.rb'
559
725
  - 'lib/blacklight/solr/search_builder_behavior.rb'
560
726
 
561
- # Offense count: 39
562
- # Cop supports --auto-correct.
727
+ # Offense count: 1
728
+ # This cop supports safe autocorrection (--autocorrect).
729
+ # Configuration parameters: EnforcedStyle.
730
+ # SupportedStyles: braces, no_braces
731
+ Style/HashAsLastArrayItem:
732
+ Exclude:
733
+ - 'spec/models/blacklight/solr/search_builder_spec.rb'
734
+
735
+ # Offense count: 8
736
+ # This cop supports unsafe autocorrection (--autocorrect-all).
737
+ # Configuration parameters: AllowedReceivers.
738
+ # AllowedReceivers: Thread.current
739
+ Style/HashEachMethods:
740
+ Exclude:
741
+ - 'app/components/blacklight/advanced_search_form_component.rb'
742
+ - 'spec/controllers/catalog_controller_spec.rb'
743
+ - 'spec/models/blacklight/solr/response_spec.rb'
744
+ - 'spec/services/blacklight/search_service_spec.rb'
745
+
746
+ # Offense count: 38
747
+ # This cop supports safe autocorrection (--autocorrect).
563
748
  Style/IfUnlessModifier:
564
749
  Enabled: false
565
750
 
566
- # Offense count: 5
567
- # Cop supports --auto-correct.
751
+ # Offense count: 4
752
+ # This cop supports safe autocorrection (--autocorrect).
753
+ Style/KeywordParametersOrder:
754
+ Exclude:
755
+ - 'app/components/blacklight/document/thumbnail_component.rb'
756
+ - 'app/components/blacklight/response/view_type_component.rb'
757
+ - 'app/components/blacklight/system/flash_message_component.rb'
758
+
759
+ # Offense count: 6
760
+ # This cop supports safe autocorrection (--autocorrect).
568
761
  Style/MultilineIfModifier:
569
762
  Exclude:
570
763
  - 'app/views/catalog/index.atom.builder'
@@ -572,12 +765,14 @@ Style/MultilineIfModifier:
572
765
  - 'lib/blacklight/solr/search_builder_behavior.rb'
573
766
 
574
767
  # Offense count: 1
768
+ # This cop supports safe autocorrection (--autocorrect).
769
+ # Configuration parameters: AllowMethodComparison, ComparisonsThreshold.
575
770
  Style/MultipleComparison:
576
771
  Exclude:
577
772
  - 'lib/blacklight/configuration/context.rb'
578
773
 
579
774
  # Offense count: 2
580
- # Cop supports --auto-correct.
775
+ # This cop supports unsafe autocorrection (--autocorrect-all).
581
776
  # Configuration parameters: EnforcedStyle.
582
777
  # SupportedStyles: literals, strict
583
778
  Style/MutableConstant:
@@ -585,12 +780,11 @@ Style/MutableConstant:
585
780
  - 'lib/blacklight/solr/request.rb'
586
781
 
587
782
  # Offense count: 9
588
- # Cop supports --auto-correct.
589
- # Configuration parameters: EnforcedStyle, IgnoredMethods.
783
+ # This cop supports unsafe autocorrection (--autocorrect-all).
784
+ # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
590
785
  # SupportedStyles: predicate, comparison
591
786
  Style/NumericPredicate:
592
787
  Exclude:
593
- - 'spec/**/*'
594
788
  - 'app/helpers/blacklight/catalog_helper_behavior.rb'
595
789
  - 'app/services/blacklight/search_service.rb'
596
790
  - 'lib/blacklight/search_builder.rb'
@@ -600,22 +794,43 @@ Style/NumericPredicate:
600
794
  - 'lib/railties/blacklight.rake'
601
795
 
602
796
  # Offense count: 3
603
- # Cop supports --auto-correct.
797
+ # This cop supports safe autocorrection (--autocorrect).
604
798
  # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
605
799
  Style/ParenthesesAroundCondition:
606
800
  Exclude:
607
801
  - 'app/views/catalog/_document.atom.builder'
608
802
 
609
803
  # Offense count: 3
610
- # Cop supports --auto-correct.
804
+ # This cop supports safe autocorrection (--autocorrect).
611
805
  # Configuration parameters: PreferredDelimiters.
612
806
  Style/PercentLiteralDelimiters:
613
807
  Exclude:
614
808
  - 'lib/blacklight/engine.rb'
615
809
  - 'lib/blacklight/solr/request.rb'
616
810
 
811
+ # Offense count: 2
812
+ # This cop supports safe autocorrection (--autocorrect).
813
+ Style/RedundantBegin:
814
+ Exclude:
815
+ - 'lib/blacklight.rb'
816
+ - 'lib/blacklight/configuration.rb'
817
+
818
+ # Offense count: 1
819
+ # This cop supports safe autocorrection (--autocorrect).
820
+ Style/RedundantParentheses:
821
+ Exclude:
822
+ - 'app/views/catalog/_document.atom.builder'
823
+
824
+ # Offense count: 2
825
+ # This cop supports safe autocorrection (--autocorrect).
826
+ # Configuration parameters: AllowMultipleReturnValues.
827
+ Style/RedundantReturn:
828
+ Exclude:
829
+ - 'app/models/concerns/blacklight/document/email.rb'
830
+ - 'app/models/concerns/blacklight/document/sms.rb'
831
+
617
832
  # Offense count: 7
618
- # Cop supports --auto-correct.
833
+ # This cop supports safe autocorrection (--autocorrect).
619
834
  # Configuration parameters: EnforcedStyle.
620
835
  # SupportedStyles: implicit, explicit
621
836
  Style/RescueStandardError:
@@ -625,9 +840,9 @@ Style/RescueStandardError:
625
840
  - 'lib/blacklight/configuration/fields.rb'
626
841
  - 'lib/railties/blacklight.rake'
627
842
 
628
- # Offense count: 12
629
- # Cop supports --auto-correct.
630
- # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
843
+ # Offense count: 11
844
+ # This cop supports unsafe autocorrection (--autocorrect-all).
845
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
631
846
  # AllowedMethods: present?, blank?, presence, try, try!
632
847
  Style/SafeNavigation:
633
848
  Exclude:
@@ -637,19 +852,40 @@ Style/SafeNavigation:
637
852
  - 'lib/blacklight.rb'
638
853
  - 'lib/blacklight/configuration/facet_field.rb'
639
854
  - 'lib/blacklight/configuration/search_field.rb'
640
- - 'lib/blacklight/search_state.rb'
641
855
  - 'lib/blacklight/solr/search_builder_behavior.rb'
642
856
 
643
- # Offense count: 3
644
- # Cop supports --auto-correct.
857
+ # Offense count: 6
858
+ # This cop supports safe autocorrection (--autocorrect).
645
859
  # Configuration parameters: AllowAsExpressionSeparator.
646
860
  Style/Semicolon:
647
861
  Exclude:
648
862
  - 'spec/models/blacklight/solr/repository_spec.rb'
649
863
  - 'spec/views/catalog/_paginate_compact.html.erb_spec.rb'
650
864
 
651
- # Offense count: 31
652
- # Cop supports --auto-correct.
865
+ # Offense count: 1
866
+ # This cop supports safe autocorrection (--autocorrect).
867
+ # Configuration parameters: AllowModifier.
868
+ Style/SoleNestedConditional:
869
+ Exclude:
870
+ - 'app/controllers/concerns/blacklight/controller.rb'
871
+
872
+ # Offense count: 12
873
+ # This cop supports unsafe autocorrection (--autocorrect-all).
874
+ # Configuration parameters: Mode.
875
+ Style/StringConcatenation:
876
+ Exclude:
877
+ - 'app/helpers/blacklight/blacklight_helper_behavior.rb'
878
+ - 'app/helpers/blacklight/render_constraints_helper_behavior.rb'
879
+ - 'lib/blacklight/configuration/fields.rb'
880
+ - 'lib/blacklight/solr/search_builder_behavior.rb'
881
+ - 'lib/railties/blacklight.rake'
882
+ - 'spec/features/search_results_spec.rb'
883
+ - 'spec/helpers/blacklight/url_helper_behavior_spec.rb'
884
+ - 'spec/models/blacklight/solr/response_spec.rb'
885
+ - 'spec/routing/catalog_routing_spec.rb'
886
+
887
+ # Offense count: 42
888
+ # This cop supports safe autocorrection (--autocorrect).
653
889
  # Configuration parameters: MinSize.
654
890
  # SupportedStyles: percent, brackets
655
891
  Style/SymbolArray: