blacklight 7.41.0 → 8.0.0.beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (425) hide show
  1. checksums.yaml +4 -4
  2. data/.env +2 -3
  3. data/.github/workflows/ruby.yml +81 -0
  4. data/.rubocop.yml +243 -14
  5. data/.rubocop_todo.yml +137 -429
  6. data/Gemfile +11 -6
  7. data/README.md +11 -3
  8. data/VERSION +1 -1
  9. data/app/assets/javascripts/blacklight/blacklight.esm.js +384 -0
  10. data/app/assets/javascripts/blacklight/blacklight.esm.js.map +1 -0
  11. data/app/assets/javascripts/blacklight/blacklight.js +374 -493
  12. data/app/assets/javascripts/blacklight/blacklight.js.map +1 -0
  13. data/app/assets/stylesheets/blacklight/_autocomplete.scss +25 -0
  14. data/app/assets/stylesheets/blacklight/_blacklight_base.scss +1 -1
  15. data/app/assets/stylesheets/blacklight/_bookmark.scss +16 -0
  16. data/app/assets/stylesheets/blacklight/_bootstrap_overrides.scss +8 -0
  17. data/app/assets/stylesheets/blacklight/_constraints.scss +4 -4
  18. data/app/assets/stylesheets/blacklight/_facets.scss +72 -44
  19. data/app/assets/stylesheets/blacklight/_header.scss +0 -15
  20. data/app/assets/stylesheets/blacklight/_icons.scss +0 -14
  21. data/app/assets/stylesheets/blacklight/_mixins.scss +20 -0
  22. data/app/assets/stylesheets/blacklight/_modal.scss +8 -2
  23. data/app/assets/stylesheets/blacklight/_search_form.scss +30 -3
  24. data/app/assets/stylesheets/blacklight/_search_history.scss +10 -1
  25. data/app/assets/stylesheets/blacklight/_search_results.scss +6 -2
  26. data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +4 -1
  27. data/app/builders/blacklight/action_builder.rb +18 -9
  28. data/app/components/blacklight/advanced_search_form_component.html.erb +3 -3
  29. data/app/components/blacklight/advanced_search_form_component.rb +8 -10
  30. data/app/components/blacklight/constraints_component.rb +27 -37
  31. data/app/components/blacklight/document/action_component.rb +12 -10
  32. data/app/components/blacklight/document/actions_component.rb +2 -2
  33. data/app/components/blacklight/document/bookmark_component.html.erb +9 -0
  34. data/app/components/blacklight/document/bookmark_component.rb +4 -2
  35. data/app/components/blacklight/document/citation_component.rb +5 -3
  36. data/app/components/blacklight/document/group_component.rb +7 -3
  37. data/app/components/blacklight/document/sidebar_component.html.erb +2 -0
  38. data/app/components/blacklight/document/sidebar_component.rb +16 -0
  39. data/app/components/blacklight/document/thumbnail_component.html.erb +2 -7
  40. data/app/components/blacklight/document/thumbnail_component.rb +1 -9
  41. data/app/components/blacklight/document_component.html.erb +1 -1
  42. data/app/components/blacklight/document_component.rb +16 -78
  43. data/app/components/blacklight/document_metadata_component.html.erb +2 -4
  44. data/app/components/blacklight/document_metadata_component.rb +5 -10
  45. data/app/components/blacklight/facet_component.rb +3 -3
  46. data/app/components/blacklight/facet_field_checkboxes_component.html.erb +4 -4
  47. data/app/components/blacklight/facet_field_checkboxes_component.rb +1 -1
  48. data/app/components/blacklight/facet_field_component.html.erb +4 -5
  49. data/app/components/blacklight/facet_field_component.rb +9 -2
  50. data/app/components/blacklight/facet_field_list_component.html.erb +3 -3
  51. data/app/components/blacklight/facet_field_list_component.rb +37 -5
  52. data/app/components/blacklight/facet_field_no_layout_component.rb +0 -2
  53. data/app/components/blacklight/facet_item_component.rb +1 -43
  54. data/app/components/blacklight/facet_item_pivot_component.rb +21 -23
  55. data/app/components/blacklight/header_component.rb +1 -1
  56. data/app/components/blacklight/hidden_search_state_component.rb +1 -2
  57. data/app/components/blacklight/icons/icon_component.rb +4 -9
  58. data/app/components/blacklight/icons/legacy_icon_component.rb +30 -0
  59. data/app/components/blacklight/icons/list_component.rb +16 -0
  60. data/app/components/blacklight/icons/search_component.rb +16 -0
  61. data/app/components/blacklight/metadata_field_component.html.erb +2 -2
  62. data/app/components/blacklight/metadata_field_component.rb +24 -8
  63. data/app/components/blacklight/metadata_field_layout_component.rb +4 -25
  64. data/app/components/blacklight/response/facet_group_component.html.erb +3 -5
  65. data/app/components/blacklight/response/facet_group_component.rb +29 -8
  66. data/app/components/blacklight/response/pagination_component.html.erb +1 -1
  67. data/app/components/blacklight/response/pagination_component.rb +2 -11
  68. data/app/components/blacklight/response/sort_component.html.erb +6 -1
  69. data/app/components/blacklight/response/sort_component.rb +1 -16
  70. data/app/components/blacklight/response/spellcheck_component.rb +18 -7
  71. data/app/components/blacklight/response/view_type_button_component.rb +3 -7
  72. data/app/components/blacklight/response/view_type_component.rb +4 -6
  73. data/app/components/blacklight/search/sidebar_component.html.erb +8 -0
  74. data/app/components/blacklight/search/sidebar_component.rb +17 -0
  75. data/app/components/blacklight/search_bar_component.html.erb +20 -15
  76. data/app/components/blacklight/search_bar_component.rb +2 -16
  77. data/app/components/blacklight/search_button_component.rb +3 -3
  78. data/app/components/blacklight/search_context_component.rb +43 -10
  79. data/app/components/blacklight/search_header_component.html.erb +2 -0
  80. data/app/components/blacklight/search_header_component.rb +6 -0
  81. data/app/components/blacklight/start_over_button_component.rb +5 -3
  82. data/app/components/blacklight/system/dropdown_component.rb +8 -5
  83. data/app/components/blacklight/system/flash_message_component.html.erb +4 -2
  84. data/app/components/blacklight/system/flash_message_component.rb +12 -3
  85. data/app/components/blacklight/system/modal_component.html.erb +1 -1
  86. data/app/components/blacklight/system/modal_component.rb +1 -3
  87. data/app/components/blacklight/top_navbar_component.html.erb +1 -1
  88. data/app/components/blacklight/top_navbar_component.rb +0 -4
  89. data/app/controllers/bookmarks_controller.rb +1 -0
  90. data/app/controllers/catalog_controller.rb +1 -0
  91. data/app/controllers/concerns/blacklight/bookmarks.rb +10 -9
  92. data/app/controllers/concerns/blacklight/catalog.rb +21 -83
  93. data/app/controllers/concerns/blacklight/controller.rb +3 -41
  94. data/app/controllers/concerns/blacklight/search_context.rb +25 -7
  95. data/app/controllers/concerns/blacklight/search_history.rb +2 -0
  96. data/app/controllers/concerns/blacklight/searchable.rb +12 -1
  97. data/app/controllers/concerns/blacklight/token_based_user.rb +13 -1
  98. data/app/controllers/search_history_controller.rb +1 -0
  99. data/app/helpers/blacklight/blacklight_helper_behavior.rb +12 -310
  100. data/app/helpers/blacklight/catalog_helper_behavior.rb +22 -139
  101. data/app/helpers/blacklight/component_helper_behavior.rb +2 -53
  102. data/app/helpers/blacklight/configuration_helper_behavior.rb +2 -119
  103. data/app/helpers/blacklight/facets_helper_behavior.rb +4 -321
  104. data/app/helpers/blacklight/icon_helper_behavior.rb +5 -7
  105. data/app/helpers/blacklight/layout_helper_behavior.rb +4 -3
  106. data/app/helpers/blacklight/render_partials_helper_behavior.rb +11 -31
  107. data/app/helpers/blacklight/url_helper_behavior.rb +12 -97
  108. data/app/helpers/blacklight_helper.rb +1 -0
  109. data/app/helpers/catalog_helper.rb +1 -0
  110. data/app/javascript/blacklight/bookmark_toggle.js +13 -19
  111. data/app/javascript/blacklight/button_focus.js +12 -10
  112. data/app/javascript/blacklight/checkbox_submit.js +68 -123
  113. data/app/javascript/blacklight/core.js +5 -7
  114. data/app/javascript/blacklight/index.js +13 -0
  115. data/app/javascript/blacklight/modal.js +99 -164
  116. data/app/javascript/blacklight/modalForm.js +60 -0
  117. data/app/javascript/blacklight/search_context.js +46 -54
  118. data/app/models/blacklight/facet_paginator.rb +3 -2
  119. data/app/models/blacklight/icon.rb +4 -2
  120. data/app/models/bookmark.rb +0 -2
  121. data/app/models/concerns/blacklight/configurable.rb +5 -4
  122. data/app/models/concerns/blacklight/document/active_model_shim.rb +1 -10
  123. data/app/models/concerns/blacklight/document/cache_key.rb +1 -0
  124. data/app/models/concerns/blacklight/document/dublin_core.rb +2 -1
  125. data/app/models/concerns/blacklight/document/email.rb +1 -0
  126. data/app/models/concerns/blacklight/document/export.rb +2 -1
  127. data/app/models/concerns/blacklight/document/extensions.rb +1 -0
  128. data/app/models/concerns/blacklight/document/schema_org.rb +1 -0
  129. data/app/models/concerns/blacklight/document/semantic_fields.rb +2 -1
  130. data/app/models/concerns/blacklight/document/sms.rb +1 -0
  131. data/app/models/concerns/blacklight/suggest/response.rb +1 -0
  132. data/app/models/concerns/blacklight/user.rb +17 -8
  133. data/app/models/record_mailer.rb +13 -12
  134. data/app/models/search.rb +1 -7
  135. data/app/models/solr_document.rb +1 -0
  136. data/app/presenters/blacklight/clause_presenter.rb +1 -1
  137. data/app/presenters/blacklight/document_presenter.rb +23 -50
  138. data/app/presenters/blacklight/facet_field_presenter.rb +39 -14
  139. data/app/presenters/blacklight/facet_grouped_item_presenter.rb +1 -5
  140. data/app/presenters/blacklight/facet_item_pivot_presenter.rb +60 -0
  141. data/app/presenters/blacklight/facet_item_presenter.rb +3 -9
  142. data/app/presenters/blacklight/field_presenter.rb +1 -0
  143. data/app/presenters/blacklight/index_presenter.rb +2 -40
  144. data/app/presenters/blacklight/json_presenter.rb +10 -6
  145. data/app/presenters/blacklight/rendering/link_to_facet.rb +2 -5
  146. data/app/presenters/blacklight/show_presenter.rb +1 -9
  147. data/app/presenters/blacklight/thumbnail_presenter.rb +1 -1
  148. data/app/services/blacklight/bookmarks_search_builder.rb +22 -0
  149. data/app/services/blacklight/field_retriever.rb +12 -21
  150. data/app/services/blacklight/search_service.rb +10 -17
  151. data/app/values/blacklight/types.rb +0 -18
  152. data/app/views/bookmarks/_clear_bookmarks_widget.html.erb +8 -1
  153. data/app/views/bookmarks/_tools.html.erb +7 -12
  154. data/app/views/catalog/_advanced_search_form.html.erb +0 -1
  155. data/app/views/catalog/_bookmark_control.html.erb +1 -1
  156. data/app/views/catalog/_citation.html.erb +1 -1
  157. data/app/views/catalog/_constraints.html.erb +1 -14
  158. data/app/views/catalog/_document.atom.builder +12 -14
  159. data/app/views/catalog/_document.html.erb +5 -3
  160. data/app/views/catalog/_document.rss.builder +2 -4
  161. data/app/views/catalog/_facet_layout.html.erb +2 -2
  162. data/app/views/catalog/_facets.html.erb +5 -4
  163. data/app/views/catalog/_home_text.html.erb +2 -14
  164. data/app/views/catalog/_per_page_widget.html.erb +10 -1
  165. data/app/views/catalog/_search_form.html.erb +2 -2
  166. data/app/views/catalog/_search_header.html.erb +1 -2
  167. data/app/views/catalog/_search_results.html.erb +2 -2
  168. data/app/views/catalog/_search_sidebar.html.erb +5 -1
  169. data/app/views/catalog/_show_main_content.html.erb +11 -16
  170. data/app/views/catalog/_show_sidebar.html.erb +2 -2
  171. data/app/views/catalog/_show_tools.html.erb +8 -14
  172. data/app/views/catalog/_view_type_group.html.erb +1 -1
  173. data/app/views/catalog/email.html.erb +2 -2
  174. data/app/views/catalog/email_success.html.erb +5 -6
  175. data/app/views/catalog/facet.html.erb +7 -5
  176. data/app/views/catalog/index.atom.builder +12 -14
  177. data/app/views/catalog/index.html.erb +4 -1
  178. data/app/views/catalog/index.json.jbuilder +19 -19
  179. data/app/views/catalog/index.rss.builder +1 -1
  180. data/app/views/catalog/opensearch.xml.builder +1 -1
  181. data/app/views/catalog/sms.html.erb +2 -2
  182. data/app/views/catalog/sms_success.html.erb +5 -6
  183. data/app/views/catalog/suggest.html.erb +3 -0
  184. data/app/views/kaminari/blacklight/_page.html.erb +2 -1
  185. data/app/views/layouts/blacklight/base.html.erb +13 -2
  186. data/app/views/search_history/index.html.erb +6 -2
  187. data/app/views/shared/_flash_messages.html.erb +1 -1
  188. data/app/views/shared/_modal.html.erb +3 -3
  189. data/blacklight.gemspec +7 -11
  190. data/config/importmap.rb +3 -0
  191. data/config/locales/blacklight.ar.yml +0 -1
  192. data/config/locales/blacklight.ca.yml +0 -1
  193. data/config/locales/blacklight.de.yml +0 -1
  194. data/config/locales/blacklight.en.yml +0 -2
  195. data/config/locales/blacklight.es.yml +0 -1
  196. data/config/locales/blacklight.fr.yml +0 -1
  197. data/config/locales/blacklight.hu.yml +0 -1
  198. data/config/locales/blacklight.it.yml +0 -1
  199. data/config/locales/blacklight.nl.yml +0 -1
  200. data/config/locales/blacklight.pt-BR.yml +0 -1
  201. data/config/locales/blacklight.sq.yml +0 -1
  202. data/config/locales/blacklight.zh.yml +0 -1
  203. data/config/routes.rb +3 -2
  204. data/db/migrate/20140202020201_create_searches.rb +1 -0
  205. data/db/migrate/20140202020202_create_bookmarks.rb +1 -0
  206. data/db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb +1 -0
  207. data/docker-compose.yml +3 -3
  208. data/lib/blacklight/abstract_repository.rb +1 -6
  209. data/lib/blacklight/component.rb +47 -10
  210. data/lib/blacklight/configuration/context.rb +4 -4
  211. data/lib/blacklight/configuration/display_field.rb +7 -9
  212. data/lib/blacklight/configuration/facet_field.rb +17 -11
  213. data/lib/blacklight/configuration/field.rb +1 -0
  214. data/lib/blacklight/configuration/fields.rb +12 -15
  215. data/lib/blacklight/configuration/index_field.rb +1 -0
  216. data/lib/blacklight/configuration/null_display_field.rb +17 -0
  217. data/lib/blacklight/configuration/search_field.rb +1 -0
  218. data/lib/blacklight/configuration/show_field.rb +1 -0
  219. data/lib/blacklight/configuration/sort_field.rb +1 -0
  220. data/lib/blacklight/configuration/tool_config.rb +1 -0
  221. data/lib/blacklight/configuration/view_config.rb +14 -10
  222. data/lib/blacklight/configuration.rb +310 -365
  223. data/lib/blacklight/engine.rb +8 -24
  224. data/lib/blacklight/exceptions.rb +2 -2
  225. data/lib/blacklight/nested_open_struct_with_hash_access.rb +7 -13
  226. data/lib/blacklight/open_struct_with_hash_access.rb +23 -6
  227. data/lib/blacklight/parameters.rb +7 -21
  228. data/lib/blacklight/routes/exportable.rb +1 -0
  229. data/lib/blacklight/routes/searchable.rb +2 -1
  230. data/lib/blacklight/routes.rb +1 -0
  231. data/lib/blacklight/search_builder.rb +10 -10
  232. data/lib/blacklight/search_state/filter_field.rb +8 -25
  233. data/lib/blacklight/search_state/pivot_filter_field.rb +144 -0
  234. data/lib/blacklight/search_state.rb +23 -79
  235. data/lib/blacklight/solr/document.rb +1 -0
  236. data/lib/blacklight/solr/facet_paginator.rb +1 -0
  237. data/lib/blacklight/solr/repository.rb +4 -24
  238. data/lib/blacklight/solr/request.rb +1 -0
  239. data/lib/blacklight/solr/response/facets.rb +21 -5
  240. data/lib/blacklight/solr/response/group.rb +1 -0
  241. data/lib/blacklight/solr/response/group_response.rb +1 -0
  242. data/lib/blacklight/solr/response/more_like_this.rb +1 -0
  243. data/lib/blacklight/solr/response/pagination_methods.rb +4 -3
  244. data/lib/blacklight/solr/response/params.rb +5 -4
  245. data/lib/blacklight/solr/response/response.rb +1 -0
  246. data/lib/blacklight/solr/response/spelling.rb +1 -0
  247. data/lib/blacklight/solr/response.rb +16 -3
  248. data/lib/blacklight/solr/search_builder_behavior.rb +16 -35
  249. data/lib/blacklight/solr.rb +7 -0
  250. data/lib/blacklight/version.rb +1 -0
  251. data/lib/blacklight.rb +26 -14
  252. data/lib/generators/blacklight/assets/importmap_generator.rb +55 -0
  253. data/lib/generators/blacklight/assets/propshaft_generator.rb +25 -0
  254. data/lib/generators/blacklight/assets/sprockets_generator.rb +66 -0
  255. data/lib/generators/blacklight/assets_generator.rb +13 -86
  256. data/lib/generators/blacklight/controller_generator.rb +4 -3
  257. data/lib/generators/blacklight/document_generator.rb +1 -0
  258. data/lib/generators/blacklight/install_generator.rb +4 -3
  259. data/lib/generators/blacklight/models_generator.rb +1 -0
  260. data/lib/generators/blacklight/search_builder_generator.rb +1 -0
  261. data/lib/generators/blacklight/solr_generator.rb +1 -1
  262. data/lib/generators/blacklight/templates/catalog_controller.rb +34 -8
  263. data/lib/generators/blacklight/templates/solr/conf/solrconfig.xml +1 -70
  264. data/lib/generators/blacklight/test_support_generator.rb +5 -3
  265. data/lib/generators/blacklight/user_generator.rb +7 -9
  266. data/lib/railties/blacklight.rake +6 -7
  267. data/package.json +10 -13
  268. data/rollup.config.js +27 -0
  269. data/spec/components/blacklight/constraints_component_spec.rb +17 -13
  270. data/spec/components/blacklight/document/action_component_spec.rb +6 -1
  271. data/spec/components/blacklight/document_component_spec.rb +22 -131
  272. data/spec/components/blacklight/facet_component_spec.rb +3 -18
  273. data/spec/components/blacklight/facet_field_checkboxes_component_spec.rb +1 -2
  274. data/spec/components/blacklight/facet_field_list_component_spec.rb +7 -6
  275. data/spec/components/blacklight/facet_item_pivot_component_spec.rb +10 -9
  276. data/spec/components/blacklight/response/view_type_component_spec.rb +66 -0
  277. data/spec/components/blacklight/search_bar_component_spec.rb +1 -1
  278. data/spec/components/blacklight/search_context_component_spec.rb +17 -8
  279. data/spec/controllers/blacklight/catalog/component_configuration_spec.rb +1 -6
  280. data/spec/controllers/blacklight/{base_spec.rb → catalog_spec.rb} +2 -2
  281. data/spec/controllers/bookmarks_controller_spec.rb +2 -3
  282. data/spec/controllers/catalog_controller_spec.rb +13 -135
  283. data/spec/features/advanced_search_spec.rb +0 -56
  284. data/spec/features/autocomplete_spec.rb +1 -1
  285. data/spec/features/axe_spec.rb +1 -6
  286. data/spec/features/bookmarks_spec.rb +1 -1
  287. data/spec/features/facets_spec.rb +6 -4
  288. data/spec/features/search_context_spec.rb +5 -11
  289. data/spec/features/search_results_spec.rb +0 -33
  290. data/spec/features/sitelinks_search_box.rb +13 -0
  291. data/spec/helpers/blacklight/configuration_helper_behavior_spec.rb +2 -138
  292. data/spec/helpers/blacklight/facets_helper_behavior_spec.rb +0 -387
  293. data/spec/helpers/blacklight/icon_helper_behavior_spec.rb +8 -0
  294. data/spec/helpers/blacklight/layout_helper_behavior_spec.rb +3 -20
  295. data/spec/helpers/blacklight/render_partials_helper_behavior_spec.rb +5 -7
  296. data/spec/helpers/blacklight/url_helper_behavior_spec.rb +9 -131
  297. data/spec/helpers/blacklight_helper_spec.rb +8 -252
  298. data/spec/helpers/catalog_helper_spec.rb +7 -118
  299. data/spec/i18n_spec.rb +1 -0
  300. data/spec/integration/generators/blacklight/solr_generator_spec.rb +1 -1
  301. data/spec/lib/blacklight/component_spec.rb +27 -32
  302. data/spec/lib/blacklight/configuration/facet_field_spec.rb +27 -16
  303. data/spec/lib/blacklight/configuration/field_spec.rb +1 -1
  304. data/spec/lib/blacklight/configuration/view_config_spec.rb +1 -1
  305. data/spec/lib/blacklight/open_struct_with_hash_access_spec.rb +2 -2
  306. data/spec/lib/blacklight/parameters_spec.rb +1 -4
  307. data/spec/lib/blacklight/search_state/filter_field_spec.rb +4 -4
  308. data/spec/lib/blacklight/search_state/pivot_filter_field_spec.rb +117 -0
  309. data/spec/lib/blacklight/search_state_spec.rb +80 -198
  310. data/spec/lib/tasks/blacklight_task_spec.rb +1 -0
  311. data/spec/models/blacklight/configuration_spec.rb +17 -51
  312. data/spec/models/blacklight/document/active_model_shim_spec.rb +2 -2
  313. data/spec/models/blacklight/icon_spec.rb +31 -15
  314. data/spec/models/blacklight/search_builder_spec.rb +9 -9
  315. data/spec/models/blacklight/solr/document_spec.rb +3 -3
  316. data/spec/models/blacklight/solr/repository_spec.rb +0 -45
  317. data/spec/models/blacklight/solr/response/facets_spec.rb +27 -27
  318. data/spec/models/blacklight/solr/response/group_response_spec.rb +1 -0
  319. data/spec/models/blacklight/solr/response/group_spec.rb +1 -0
  320. data/spec/models/blacklight/solr/response_spec.rb +9 -2
  321. data/spec/models/blacklight/solr/search_builder_spec.rb +24 -44
  322. data/spec/models/blacklight/user_spec.rb +22 -0
  323. data/spec/models/solr_document_spec.rb +3 -9
  324. data/spec/presenters/blacklight/clause_presenter_spec.rb +1 -0
  325. data/spec/presenters/blacklight/document_presenter_spec.rb +2 -3
  326. data/spec/presenters/blacklight/facet_field_presenter_spec.rb +85 -12
  327. data/spec/presenters/blacklight/facet_grouped_item_presenter_spec.rb +1 -0
  328. data/spec/presenters/blacklight/facet_item_presenter_spec.rb +14 -13
  329. data/spec/presenters/blacklight/field_presenter_spec.rb +0 -14
  330. data/spec/presenters/blacklight/index_presenter_spec.rb +2 -5
  331. data/spec/presenters/blacklight/json_presenter_spec.rb +1 -0
  332. data/spec/presenters/blacklight/link_alternate_presenter_spec.rb +3 -2
  333. data/spec/presenters/blacklight/show_presenter_spec.rb +20 -30
  334. data/spec/presenters/thumbnail_presenter_spec.rb +1 -1
  335. data/spec/requests/load_suggestions_spec.rb +16 -0
  336. data/spec/routing/catalog_routing_spec.rb +2 -1
  337. data/spec/services/blacklight/search_service_spec.rb +39 -76
  338. data/spec/spec_helper.rb +8 -9
  339. data/spec/support/controller_level_helpers.rb +1 -2
  340. data/spec/support/features/search_helpers.rb +39 -0
  341. data/spec/support/features/session_helpers.rb +1 -0
  342. data/spec/support/features.rb +3 -0
  343. data/spec/support/view_component_capybara_test_helpers.rb +8 -0
  344. data/spec/test_app_templates/Gemfile.extra +1 -0
  345. data/spec/test_app_templates/lib/generators/test_app_generator.rb +9 -2
  346. data/spec/views/catalog/_document.html.erb_spec.rb +3 -34
  347. data/spec/views/catalog/_facet_index_navigation.html.erb_spec.rb +1 -1
  348. data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +0 -2
  349. data/spec/views/catalog/_search_header.erb_spec.rb +1 -0
  350. data/spec/views/catalog/_show_sidebar.erb_spec.rb +1 -0
  351. data/spec/views/catalog/_show_tools.html.erb_spec.rb +5 -66
  352. data/spec/views/catalog/_view_type_group.html.erb_spec.rb +17 -9
  353. data/spec/views/catalog/email_success.html.erb_spec.rb +2 -2
  354. data/spec/views/catalog/facet.html.erb_spec.rb +6 -3
  355. data/spec/views/catalog/index.atom.builder_spec.rb +17 -11
  356. data/spec/views/catalog/index.html.erb_spec.rb +5 -6
  357. data/spec/views/catalog/index.json.jbuilder_spec.rb +2 -2
  358. data/spec/views/catalog/show.html.erb_spec.rb +3 -25
  359. data/spec/views/catalog/sms_success.html.erb_spec.rb +2 -2
  360. data/tasks/blacklight.rake +11 -9
  361. data/template.demo.rb +7 -7
  362. metadata +77 -189
  363. data/.babelrc +0 -11
  364. data/.github/matrix.json +0 -62
  365. data/.github/workflows/build.yml +0 -16
  366. data/.github/workflows/lint.yml +0 -23
  367. data/.github/workflows/main.yml +0 -23
  368. data/.github/workflows/test.yml +0 -53
  369. data/app/assets/images/blacklight/list.svg +0 -1
  370. data/app/assets/images/blacklight/search.svg +0 -1
  371. data/app/assets/stylesheets/blacklight/_twitter_typeahead.scss +0 -37
  372. data/app/components/blacklight/content_areas_shim.rb +0 -13
  373. data/app/components/blacklight/search/per_page_component.html.erb +0 -2
  374. data/app/components/blacklight/search/per_page_component.rb +0 -50
  375. data/app/components/blacklight/search_context/server_item_pagination_component.html.erb +0 -10
  376. data/app/components/blacklight/search_context/server_item_pagination_component.rb +0 -15
  377. data/app/components/blacklight/system/dropdown_button_component.rb +0 -18
  378. data/app/controllers/concerns/blacklight/base.rb +0 -12
  379. data/app/controllers/concerns/blacklight/default_component_configuration.rb +0 -64
  380. data/app/controllers/concerns/blacklight/facet.rb +0 -69
  381. data/app/controllers/concerns/blacklight/search_fields.rb +0 -46
  382. data/app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb +0 -27
  383. data/app/helpers/blacklight/render_constraints_helper_behavior.rb +0 -188
  384. data/app/helpers/blacklight/search_history_constraints_helper_behavior.rb +0 -97
  385. data/app/helpers/blacklight/suggest_helper_behavior.rb +0 -13
  386. data/app/javascript/blacklight/autocomplete.js +0 -36
  387. data/app/javascript/blacklight/facet_load.js +0 -22
  388. data/app/presenters/blacklight/search_bar_presenter.rb +0 -47
  389. data/app/views/catalog/_constraints_element.html.erb +0 -14
  390. data/app/views/catalog/_document_action.html.erb +0 -5
  391. data/app/views/catalog/_facet_group.html.erb +0 -5
  392. data/app/views/catalog/_facet_limit.html.erb +0 -3
  393. data/app/views/catalog/_index.html.erb +0 -1
  394. data/app/views/catalog/_index_header.html.erb +0 -22
  395. data/app/views/catalog/_previous_next_doc.html.erb +0 -2
  396. data/app/views/catalog/_show.html.erb +0 -6
  397. data/app/views/catalog/_show_header.html.erb +0 -2
  398. data/app/views/catalog/_thumbnail.html.erb +0 -1
  399. data/lib/blacklight/deprecations/engine_configuration.rb +0 -66
  400. data/lib/blacklight/deprecations/search_state_normalization.rb +0 -52
  401. data/spec/components/blacklight/header_component_spec.rb +0 -20
  402. data/spec/components/blacklight/icons/icon_component_spec.rb +0 -42
  403. data/spec/components/blacklight/response/pagination_component_spec.rb +0 -53
  404. data/spec/components/blacklight/search_context/server_item_pagination_component_spec.rb +0 -35
  405. data/spec/controllers/blacklight/facet_spec.rb +0 -33
  406. data/spec/controllers/blacklight/search_fields_spec.rb +0 -62
  407. data/spec/features/citation_spec.rb +0 -10
  408. data/spec/features/sitelinks_search_box_spec.rb +0 -13
  409. data/spec/features/sms_spec.rb +0 -12
  410. data/spec/helpers/blacklight/hash_as_hidden_fields_behavior_spec.rb +0 -26
  411. data/spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb +0 -92
  412. data/spec/helpers/blacklight/search_history_constraints_helper_behavior_spec.rb +0 -101
  413. data/spec/helpers/blacklight/suggest_helper_behavior_spec.rb +0 -48
  414. data/spec/lib/blacklight/engine_spec.rb +0 -41
  415. data/spec/presenters/blacklight/search_bar_presenter_spec.rb +0 -94
  416. data/spec/services/blacklight/field_retriever_spec.rb +0 -17
  417. data/spec/support/view_component_test_helpers.rb +0 -35
  418. data/spec/views/catalog/_constraints.html.erb_spec.rb +0 -33
  419. data/spec/views/catalog/_facet_group.html.erb_spec.rb +0 -84
  420. data/spec/views/catalog/_facets.html.erb_spec.rb +0 -15
  421. data/spec/views/catalog/_index.html.erb_spec.rb +0 -62
  422. data/spec/views/catalog/_index_header.html.erb_spec.rb +0 -35
  423. data/spec/views/catalog/_previous_next_doc.html.erb_spec.rb +0 -22
  424. data/spec/views/catalog/_show.html.erb_spec.rb +0 -62
  425. data/spec/views/catalog/_thumbnail.html.erb_spec.rb +0 -38
data/.rubocop_todo.yml CHANGED
@@ -1,169 +1,35 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2024-09-23 14:38:22 UTC using RuboCop version 1.66.1.
3
+ # on 2022-06-27 19:52:51 UTC using RuboCop version 1.31.0.
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
- # Offense count: 4
10
- # This cop supports safe autocorrection (--autocorrect).
11
- Capybara/CurrentPathExpectation:
12
- Exclude:
13
- - 'spec/features/alternate_controller_spec.rb'
14
-
15
- # Offense count: 20
16
- Capybara/VisibilityMatcher:
17
- Exclude:
18
- - 'spec/features/facets_spec.rb'
19
- - 'spec/features/search_filters_spec.rb'
20
- - 'spec/helpers/blacklight/hash_as_hidden_fields_behavior_spec.rb'
21
- - 'spec/helpers/blacklight_helper_spec.rb'
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
-
32
- # Offense count: 8
33
- # This cop supports safe autocorrection (--autocorrect).
34
- # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
35
- # SupportedStyles: case, end
36
- Layout/CaseIndentation:
37
- Exclude:
38
- - 'app/helpers/blacklight/catalog_helper_behavior.rb'
39
- - 'app/presenters/blacklight/index_presenter.rb'
40
- - 'lib/blacklight/configuration/fields.rb'
41
-
42
- # Offense count: 2
43
- # This cop supports safe autocorrection (--autocorrect).
44
- Layout/ClosingParenthesisIndentation:
45
- Exclude:
46
- - 'app/views/catalog/index.atom.builder'
47
-
48
- # Offense count: 114
49
- # This cop supports safe autocorrection (--autocorrect).
50
- Layout/EmptyLineAfterMagicComment:
51
- Enabled: false
52
-
53
- # Offense count: 1
54
- # This cop supports safe autocorrection (--autocorrect).
55
- # Configuration parameters: AllowAliasSyntax, AllowedMethods.
56
- # AllowedMethods: alias_method, public, protected, private
57
- Layout/EmptyLinesAroundAttributeAccessor:
58
- Exclude:
59
- - 'app/presenters/blacklight/field_presenter.rb'
60
-
61
- # Offense count: 8
62
- # This cop supports safe autocorrection (--autocorrect).
63
- # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
64
- Layout/ExtraSpacing:
65
- Exclude:
66
- - 'app/models/concerns/blacklight/document/dublin_core.rb'
67
- - 'app/models/record_mailer.rb'
68
- - 'app/views/catalog/index.atom.builder'
69
- - 'config/routes.rb'
70
- - 'spec/models/blacklight/configurable_spec.rb'
71
-
72
- # Offense count: 9
73
- # This cop supports safe autocorrection (--autocorrect).
74
- # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
75
- Layout/LeadingCommentSpace:
76
- Exclude:
77
- - 'app/models/blacklight/facet_paginator.rb'
78
- - 'app/models/concerns/blacklight/configurable.rb'
79
- - 'app/models/concerns/blacklight/document/export.rb'
80
- - 'app/views/catalog/_document.atom.builder'
81
- - 'lib/blacklight/solr/response/pagination_methods.rb'
82
-
83
- # Offense count: 1
84
- # This cop supports safe autocorrection (--autocorrect).
85
- Layout/MultilineBlockLayout:
86
- Exclude:
87
- - 'lib/generators/blacklight/test_support_generator.rb'
88
-
89
- # Offense count: 2
90
- # This cop supports safe autocorrection (--autocorrect).
91
- # Configuration parameters: EnforcedStyle.
92
- # SupportedStyles: symmetrical, new_line, same_line
93
- Layout/MultilineMethodCallBraceLayout:
94
- Exclude:
95
- - 'app/views/catalog/index.atom.builder'
96
-
97
- # Offense count: 9
98
- # This cop supports safe autocorrection (--autocorrect).
99
- # Configuration parameters: EnforcedStyle, IndentationWidth.
100
- # SupportedStyles: aligned, indented, indented_relative_to_receiver
101
- Layout/MultilineMethodCallIndentation:
102
- Exclude:
103
- - 'lib/blacklight/search_builder.rb'
104
-
105
- # Offense count: 9
106
- # This cop supports safe autocorrection (--autocorrect).
107
- # Configuration parameters: EnforcedStyle, IndentationWidth.
108
- # SupportedStyles: aligned, indented
109
- Layout/MultilineOperationIndentation:
110
- Exclude:
111
- - 'app/helpers/blacklight/search_history_constraints_helper_behavior.rb'
112
- - 'lib/blacklight/configuration/context.rb'
113
- - 'lib/blacklight/search_state.rb'
114
- - 'lib/blacklight/solr/search_builder_behavior.rb'
115
-
116
- # Offense count: 2
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).
125
- Layout/SpaceAfterComma:
126
- Exclude:
127
- - 'app/views/catalog/index.atom.builder'
128
- - 'app/views/catalog/opensearch.xml.builder'
129
-
130
- # Offense count: 2
131
- # This cop supports safe autocorrection (--autocorrect).
132
- # Configuration parameters: AllowForAlignment.
133
- Layout/SpaceBeforeFirstArg:
134
- Exclude:
135
- - 'app/views/catalog/index.atom.builder'
136
- - 'spec/models/blacklight/configurable_spec.rb'
137
-
138
- # Offense count: 7
139
- # This cop supports safe autocorrection (--autocorrect).
140
- # Configuration parameters: EnforcedStyle.
141
- # SupportedStyles: space, compact, no_space
142
- Layout/SpaceInsideParens:
9
+ # Offense count: 5
10
+ # Configuration parameters: AutoCorrect.
11
+ Layout/LineContinuationLeadingSpace:
143
12
  Exclude:
144
- - 'app/views/catalog/_document.rss.builder'
145
- - 'app/views/catalog/index.atom.builder'
13
+ - 'lib/generators/blacklight/controller_generator.rb'
14
+ - 'lib/generators/blacklight/user_generator.rb'
146
15
 
147
16
  # Offense count: 1
148
- # This cop supports safe autocorrection (--autocorrect).
149
- # Configuration parameters: AllowedMethods, AllowedPatterns.
17
+ # Configuration parameters: IgnoredMethods.
150
18
  Lint/AmbiguousBlockAssociation:
151
19
  Exclude:
152
20
  - 'lib/blacklight/solr/search_builder_behavior.rb'
153
21
 
154
- # Offense count: 9
22
+ # Offense count: 5
155
23
  # This cop supports safe autocorrection (--autocorrect).
156
24
  Lint/AmbiguousOperator:
157
25
  Exclude:
158
- - 'spec/helpers/blacklight/facets_helper_behavior_spec.rb'
159
- - 'spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb'
160
26
  - 'spec/helpers/blacklight/url_helper_behavior_spec.rb'
161
27
  - 'spec/helpers/blacklight_helper_spec.rb'
162
28
  - 'spec/models/blacklight/facet_paginator_spec.rb'
163
29
  - 'spec/models/blacklight/solr/search_builder_spec.rb'
164
30
  - 'spec/services/blacklight/search_service_spec.rb'
165
31
 
166
- # Offense count: 55
32
+ # Offense count: 44
167
33
  # This cop supports safe autocorrection (--autocorrect).
168
34
  Lint/AmbiguousRegexpLiteral:
169
35
  Exclude:
@@ -175,7 +41,6 @@ Lint/AmbiguousRegexpLiteral:
175
41
  - 'spec/views/catalog/_document.html.erb_spec.rb'
176
42
  - 'spec/views/catalog/_search_header.erb_spec.rb'
177
43
  - 'spec/views/catalog/_sort_and_per_page.html.erb_spec.rb'
178
- - 'spec/views/catalog/_thumbnail.html.erb_spec.rb'
179
44
  - 'spec/views/catalog/index.html.erb_spec.rb'
180
45
  - 'spec/views/catalog/show.html.erb_spec.rb'
181
46
 
@@ -184,13 +49,11 @@ Lint/BinaryOperatorWithIdenticalOperands:
184
49
  Exclude:
185
50
  - 'spec/models/blacklight/document/active_model_shim_spec.rb'
186
51
 
187
- # Offense count: 16
52
+ # Offense count: 14
188
53
  # Configuration parameters: AllowedMethods.
189
54
  # AllowedMethods: enums
190
55
  Lint/ConstantDefinitionInBlock:
191
56
  Exclude:
192
- - 'lib/blacklight/engine.rb'
193
- - 'spec/controllers/blacklight/search_fields_spec.rb'
194
57
  - 'spec/controllers/bookmarks_controller_spec.rb'
195
58
  - 'spec/controllers/catalog_controller_spec.rb'
196
59
  - 'spec/models/blacklight/configurable_spec.rb'
@@ -199,18 +62,24 @@ Lint/ConstantDefinitionInBlock:
199
62
  - 'spec/models/blacklight/solr/document_spec.rb'
200
63
  - 'spec/presenters/blacklight/show_presenter_spec.rb'
201
64
 
65
+ # Offense count: 2
66
+ # Configuration parameters: AllowComments, AllowEmptyLambdas.
67
+ Lint/EmptyBlock:
68
+ Exclude:
69
+ - 'app/controllers/concerns/blacklight/bookmarks.rb'
70
+ - 'lib/blacklight/solr/search_builder_behavior.rb'
71
+
202
72
  # Offense count: 1
203
73
  # Configuration parameters: AllowComments.
204
74
  Lint/EmptyFile:
205
75
  Exclude:
206
76
  - 'spec/components/blacklight/document_metadata_component_spec.rb'
207
77
 
208
- # Offense count: 46
209
- # Configuration parameters: AllowedParentClasses.
78
+ # Offense count: 38
210
79
  Lint/MissingSuper:
211
80
  Enabled: false
212
81
 
213
- # Offense count: 30
82
+ # Offense count: 29
214
83
  # This cop supports safe autocorrection (--autocorrect).
215
84
  Lint/ParenthesesAsGroupedExpression:
216
85
  Exclude:
@@ -218,73 +87,66 @@ Lint/ParenthesesAsGroupedExpression:
218
87
  - 'spec/features/search_filters_spec.rb'
219
88
  - 'spec/features/search_pagination_spec.rb'
220
89
  - 'spec/features/search_spec.rb'
221
- - 'spec/lib/blacklight/search_state_spec.rb'
222
90
  - 'spec/models/blacklight/solr/repository_spec.rb'
223
91
 
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
-
233
92
  # Offense count: 2
234
93
  Lint/ShadowingOuterLocalVariable:
235
94
  Exclude:
236
95
  - 'spec/models/blacklight/configuration_spec.rb'
237
96
 
238
- # Offense count: 87
239
- # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
97
+ # Offense count: 74
98
+ # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
240
99
  Metrics/AbcSize:
241
100
  Max: 46
242
101
 
243
- # Offense count: 2
244
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
245
- # AllowedMethods: refine
102
+ # Offense count: 1
103
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods, inherit_mode.
104
+ # IgnoredMethods: refine
246
105
  Metrics/BlockLength:
247
- Max: 29
106
+ Max: 26
107
+
108
+ # Offense count: 1
109
+ # Configuration parameters: CountBlocks.
110
+ Metrics/BlockNesting:
111
+ Max: 4
248
112
 
249
- # Offense count: 47
250
- # Configuration parameters: AllowedMethods, AllowedPatterns.
113
+ # Offense count: 43
114
+ # Configuration parameters: IgnoredMethods.
251
115
  Metrics/CyclomaticComplexity:
252
- Max: 17
116
+ Max: 14
253
117
 
254
- # Offense count: 94
255
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
118
+ # Offense count: 69
119
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
256
120
  Metrics/MethodLength:
257
121
  Max: 29
258
122
 
259
- # Offense count: 9
123
+ # Offense count: 3
260
124
  # Configuration parameters: CountComments, CountAsOne.
261
125
  Metrics/ModuleLength:
262
- Max: 203
126
+ Max: 126
263
127
 
264
128
  # Offense count: 8
265
129
  # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
266
130
  Metrics/ParameterLists:
267
131
  Max: 6
268
132
 
269
- # Offense count: 40
270
- # Configuration parameters: AllowedMethods, AllowedPatterns.
133
+ # Offense count: 36
134
+ # Configuration parameters: IgnoredMethods.
271
135
  Metrics/PerceivedComplexity:
272
- Max: 18
136
+ Max: 14
273
137
 
274
- # Offense count: 4
275
- # This cop supports unsafe autocorrection (--autocorrect-all).
138
+ # Offense count: 3
276
139
  # Configuration parameters: EnforcedStyleForLeadingUnderscores.
277
140
  # SupportedStylesForLeadingUnderscores: disallowed, required, optional
278
141
  Naming/MemoizedInstanceVariableName:
279
142
  Exclude:
280
- - 'app/helpers/blacklight/blacklight_helper_behavior.rb'
281
143
  - 'app/helpers/blacklight/render_partials_helper_behavior.rb'
282
144
  - 'app/models/concerns/blacklight/document/semantic_fields.rb'
283
145
  - 'lib/blacklight/solr/response.rb'
284
146
 
285
- # Offense count: 10
147
+ # Offense count: 9
286
148
  # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
287
- # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
149
+ # AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
288
150
  Naming/MethodParameterName:
289
151
  Exclude:
290
152
  - 'app/models/concerns/blacklight/document.rb'
@@ -293,105 +155,86 @@ Naming/MethodParameterName:
293
155
  - 'lib/blacklight/solr/document.rb'
294
156
  - 'lib/blacklight/solr/search_builder_behavior.rb'
295
157
 
296
- # Offense count: 25
158
+ # Offense count: 9
297
159
  # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
298
160
  # SupportedStyles: snake_case, normalcase, non_integer
299
- # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
161
+ # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
300
162
  Naming/VariableNumber:
301
163
  Exclude:
302
164
  - 'spec/lib/blacklight/search_state_spec.rb'
303
165
  - 'spec/models/blacklight/search_builder_spec.rb'
304
- - 'spec/views/catalog/_facet_group.html.erb_spec.rb'
305
- - 'spec/views/catalog/_index.html.erb_spec.rb'
306
- - 'spec/views/catalog/_show.html.erb_spec.rb'
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
166
 
322
- # Offense count: 9
167
+ # Offense count: 7
323
168
  RSpec/BeforeAfterAll:
324
169
  Exclude:
325
- - 'spec/controllers/blacklight/search_fields_spec.rb'
326
170
  - 'spec/controllers/search_history_controller_spec.rb'
327
- - 'spec/helpers/blacklight/search_history_constraints_helper_behavior_spec.rb'
328
171
  - 'spec/models/blacklight/configurable_spec.rb'
329
172
  - 'spec/models/blacklight/document/dublin_core_spec.rb'
330
173
  - 'spec/models/blacklight/document/email_spec.rb'
331
174
  - 'spec/models/blacklight/document/sms_spec.rb'
332
175
  - 'spec/models/blacklight/solr/document_spec.rb'
333
176
 
334
- # Offense count: 50
177
+ # Offense count: 4
335
178
  # This cop supports safe autocorrection (--autocorrect).
336
- # Configuration parameters: EnforcedStyle.
337
- # SupportedStyles: be_a, be_kind_of
338
- RSpec/ClassCheck:
339
- Enabled: false
179
+ RSpec/Capybara/CurrentPathExpectation:
180
+ Exclude:
181
+ - 'spec/features/alternate_controller_spec.rb'
182
+
183
+ # Offense count: 13
184
+ RSpec/Capybara/VisibilityMatcher:
185
+ Exclude:
186
+ - 'spec/features/facets_spec.rb'
187
+ - 'spec/features/search_filters_spec.rb'
188
+ - 'spec/helpers/blacklight_helper_spec.rb'
340
189
 
341
- # Offense count: 110
342
- # Configuration parameters: Prefixes, AllowedPatterns.
190
+ # Offense count: 98
191
+ # Configuration parameters: Prefixes.
343
192
  # Prefixes: when, with, without
344
193
  RSpec/ContextWording:
345
194
  Enabled: false
346
195
 
347
196
  # Offense count: 1
348
- # This cop supports unsafe autocorrection (--autocorrect-all).
349
- # Configuration parameters: AutoCorrect.
350
197
  RSpec/EmptyExampleGroup:
351
198
  Exclude:
352
199
  - 'spec/models/blacklight/solr/search_builder_spec.rb'
353
200
 
354
- # Offense count: 152
201
+ # Offense count: 128
355
202
  # Configuration parameters: CountAsOne.
356
203
  RSpec/ExampleLength:
357
204
  Max: 33
358
205
 
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
206
+ # Offense count: 8
377
207
  RSpec/ExpectInHook:
378
208
  Exclude:
379
209
  - 'spec/controllers/catalog_controller_spec.rb'
380
- - 'spec/helpers/blacklight/configuration_helper_behavior_spec.rb'
381
- - 'spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb'
382
- - 'spec/helpers/blacklight/suggest_helper_behavior_spec.rb'
383
210
 
384
- # Offense count: 9
385
- # Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
386
- RSpec/IndexedLet:
211
+ # Offense count: 5
212
+ # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
213
+ # Include: **/*_spec*rb*, **/spec/**/*
214
+ RSpec/FilePath:
387
215
  Exclude:
388
- - 'spec/helpers/blacklight/facets_helper_behavior_spec.rb'
389
- - 'spec/models/blacklight/facet_paginator_spec.rb'
216
+ - 'spec/controllers/blacklight/catalog/component_configuration_spec.rb'
217
+ - 'spec/features/sitelinks_search_box.rb'
218
+ - 'spec/models/blacklight/solr/search_builder_spec.rb'
219
+ - 'spec/presenters/pipeline_spec.rb'
220
+ - 'spec/presenters/thumbnail_presenter_spec.rb'
390
221
 
391
- # Offense count: 188
222
+ # Offense count: 128
392
223
  # Configuration parameters: AssignmentOnly.
393
224
  RSpec/InstanceVariable:
394
- Enabled: false
225
+ Exclude:
226
+ - 'spec/controllers/bookmarks_controller_spec.rb'
227
+ - 'spec/controllers/search_history_controller_spec.rb'
228
+ - 'spec/helpers/catalog_helper_spec.rb'
229
+ - 'spec/lib/blacklight/open_struct_with_hash_access_spec.rb'
230
+ - 'spec/lib/tasks/blacklight_task_spec.rb'
231
+ - 'spec/models/blacklight/configuration_spec.rb'
232
+ - 'spec/models/blacklight/document/dublin_core_spec.rb'
233
+ - 'spec/models/blacklight/solr/document_spec.rb'
234
+ - 'spec/models/record_mailer_spec.rb'
235
+ - 'spec/models/search_spec.rb'
236
+ - 'spec/services/blacklight/search_service_spec.rb'
237
+ - 'spec/views/catalog/index.atom.builder_spec.rb'
395
238
 
396
239
  # Offense count: 4
397
240
  RSpec/IteratedExpectation:
@@ -400,10 +243,9 @@ RSpec/IteratedExpectation:
400
243
  - 'spec/models/blacklight/solr/response/group_spec.rb'
401
244
  - 'spec/models/blacklight/solr/response_spec.rb'
402
245
 
403
- # Offense count: 17
246
+ # Offense count: 16
404
247
  RSpec/LeakyConstantDeclaration:
405
248
  Exclude:
406
- - 'spec/controllers/blacklight/search_fields_spec.rb'
407
249
  - 'spec/controllers/bookmarks_controller_spec.rb'
408
250
  - 'spec/controllers/catalog_controller_spec.rb'
409
251
  - 'spec/models/blacklight/configurable_spec.rb'
@@ -412,18 +254,6 @@ RSpec/LeakyConstantDeclaration:
412
254
  - 'spec/models/blacklight/solr/document_spec.rb'
413
255
  - 'spec/presenters/blacklight/show_presenter_spec.rb'
414
256
 
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
257
  # Offense count: 9
428
258
  RSpec/MessageChain:
429
259
  Exclude:
@@ -431,80 +261,43 @@ RSpec/MessageChain:
431
261
  - 'spec/presenters/blacklight/field_presenter_spec.rb'
432
262
  - 'spec/views/shared/_user_util_links.html.erb_spec.rb'
433
263
 
434
- # Offense count: 57
264
+ # Offense count: 30
435
265
  # Configuration parameters: EnforcedStyle.
436
266
  # SupportedStyles: have_received, receive
437
267
  RSpec/MessageSpies:
438
268
  Exclude:
439
269
  - 'spec/controllers/catalog_controller_spec.rb'
440
270
  - 'spec/helpers/blacklight/configuration_helper_behavior_spec.rb'
441
- - 'spec/helpers/blacklight/facets_helper_behavior_spec.rb'
442
- - 'spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb'
443
- - 'spec/helpers/blacklight/suggest_helper_behavior_spec.rb'
444
271
  - 'spec/helpers/blacklight/url_helper_behavior_spec.rb'
445
272
  - 'spec/helpers/blacklight_helper_spec.rb'
446
273
  - 'spec/helpers/catalog_helper_spec.rb'
447
- - 'spec/lib/blacklight/configuration/facet_field_spec.rb'
448
274
  - 'spec/models/blacklight/search_builder_spec.rb'
449
275
  - 'spec/models/blacklight/suggest_search_spec.rb'
450
276
  - 'spec/presenters/blacklight/field_presenter_spec.rb'
451
277
  - 'spec/presenters/thumbnail_presenter_spec.rb'
452
278
 
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
279
+ # Offense count: 364
461
280
  RSpec/MultipleExpectations:
462
281
  Max: 16
463
282
 
464
- # Offense count: 272
283
+ # Offense count: 258
465
284
  # Configuration parameters: AllowSubject.
466
285
  RSpec/MultipleMemoizedHelpers:
467
286
  Max: 14
468
287
 
469
- # Offense count: 417
470
- # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
471
- # SupportedStyles: always, named_only
288
+ # Offense count: 388
289
+ # Configuration parameters: IgnoreSharedExamples.
472
290
  RSpec/NamedSubject:
473
291
  Enabled: false
474
292
 
475
- # Offense count: 57
476
- # Configuration parameters: AllowedGroups.
293
+ # Offense count: 55
477
294
  RSpec/NestedGroups:
478
295
  Max: 5
479
296
 
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
-
503
- # Offense count: 11
297
+ # Offense count: 6
504
298
  RSpec/RepeatedDescription:
505
299
  Exclude:
506
300
  - 'spec/features/search_results_spec.rb'
507
- - 'spec/helpers/blacklight/facets_helper_behavior_spec.rb'
508
301
  - 'spec/helpers/catalog_helper_spec.rb'
509
302
  - 'spec/models/blacklight/solr/search_builder_spec.rb'
510
303
 
@@ -513,39 +306,23 @@ RSpec/RepeatedExample:
513
306
  Exclude:
514
307
  - 'spec/models/blacklight/solr/document_spec.rb'
515
308
 
516
- # Offense count: 4
309
+ # Offense count: 2
517
310
  RSpec/RepeatedExampleGroupDescription:
518
311
  Exclude:
519
- - 'spec/helpers/blacklight/facets_helper_behavior_spec.rb'
520
312
  - 'spec/services/blacklight/search_service_spec.rb'
521
313
 
522
- # Offense count: 4
314
+ # Offense count: 3
523
315
  # This cop supports safe autocorrection (--autocorrect).
524
- # Configuration parameters: AutoCorrect.
525
316
  RSpec/ScatteredLet:
526
317
  Exclude:
527
- - 'spec/helpers/catalog_helper_spec.rb'
528
318
  - 'spec/models/blacklight/solr/search_builder_spec.rb'
529
319
  - 'spec/views/catalog/index.atom.builder_spec.rb'
530
320
 
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
321
+ # Offense count: 22
543
322
  RSpec/StubbedMock:
544
323
  Exclude:
545
324
  - 'spec/controllers/catalog_controller_spec.rb'
546
325
  - '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
326
  - 'spec/helpers/blacklight/url_helper_behavior_spec.rb'
550
327
  - 'spec/helpers/blacklight_helper_spec.rb'
551
328
  - 'spec/helpers/catalog_helper_spec.rb'
@@ -558,28 +335,22 @@ RSpec/SubjectDeclaration:
558
335
  Exclude:
559
336
  - 'spec/models/blacklight/document/cache_key_spec.rb'
560
337
 
561
- # Offense count: 12
338
+ # Offense count: 15
562
339
  RSpec/SubjectStub:
563
340
  Exclude:
564
341
  - 'spec/controllers/catalog_controller_spec.rb'
342
+ - 'spec/lib/blacklight/search_state_spec.rb'
565
343
  - 'spec/models/blacklight/document/cache_key_spec.rb'
566
344
  - 'spec/models/blacklight/search_builder_spec.rb'
567
345
  - 'spec/presenters/blacklight/document_presenter_spec.rb'
568
- - 'spec/presenters/blacklight/field_presenter_spec.rb'
569
346
  - 'spec/services/blacklight/search_service_spec.rb'
570
347
 
571
- # Offense count: 132
348
+ # Offense count: 77
572
349
  # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
573
350
  RSpec/VerifiedDoubles:
574
351
  Enabled: false
575
352
 
576
- # Offense count: 1
577
- RSpec/VoidExpect:
578
- Exclude:
579
- - 'spec/lib/blacklight/configuration/facet_field_spec.rb'
580
-
581
353
  # Offense count: 4
582
- # This cop supports unsafe autocorrection (--autocorrect-all).
583
354
  # Configuration parameters: EnforcedStyle, AllowToTime.
584
355
  # SupportedStyles: strict, flexible
585
356
  Rails/Date:
@@ -587,14 +358,13 @@ Rails/Date:
587
358
  - 'spec/models/search_spec.rb'
588
359
 
589
360
  # Offense count: 1
590
- # This cop supports safe autocorrection (--autocorrect).
591
361
  # Configuration parameters: EnforcedStyle.
592
362
  # SupportedStyles: slashes, arguments
593
363
  Rails/FilePath:
594
364
  Exclude:
595
- - 'lib/blacklight/component.rb'
365
+ - 'lib/railties/blacklight.rake'
596
366
 
597
- # Offense count: 31
367
+ # Offense count: 20
598
368
  # Configuration parameters: Include.
599
369
  # Include: app/helpers/**/*.rb
600
370
  Rails/HelperInstanceVariable:
@@ -602,21 +372,21 @@ Rails/HelperInstanceVariable:
602
372
  - 'app/helpers/blacklight/blacklight_helper_behavior.rb'
603
373
  - 'app/helpers/blacklight/catalog_helper_behavior.rb'
604
374
  - 'app/helpers/blacklight/component_helper_behavior.rb'
605
- - 'app/helpers/blacklight/facets_helper_behavior.rb'
606
375
  - 'app/helpers/blacklight/render_partials_helper_behavior.rb'
607
376
 
608
377
  # Offense count: 2
609
- # This cop supports safe autocorrection (--autocorrect).
610
- # Configuration parameters: EnforcedStyle.
611
- # SupportedStyles: numeric, symbolic
612
- Rails/HttpStatus:
378
+ # Configuration parameters: Include.
379
+ # Include: spec/**/*.rb, test/**/*.rb
380
+ Rails/I18nLocaleAssignment:
613
381
  Exclude:
614
- - 'app/controllers/concerns/blacklight/bookmarks.rb'
382
+ - 'spec/helpers/blacklight_helper_spec.rb'
615
383
 
616
- # Offense count: 2
384
+ # Offense count: 10
617
385
  Rails/OutputSafety:
618
386
  Exclude:
619
- - 'app/helpers/blacklight/icon_helper_behavior.rb'
387
+ - 'app/components/blacklight/search_context_component.rb'
388
+ - 'app/helpers/blacklight/catalog_helper_behavior.rb'
389
+ - 'app/helpers/blacklight/configuration_helper_behavior.rb'
620
390
  - 'app/presenters/blacklight/rendering/join.rb'
621
391
 
622
392
  # Offense count: 14
@@ -624,14 +394,6 @@ Security/Eval:
624
394
  Exclude:
625
395
  - 'spec/models/blacklight/solr/response_spec.rb'
626
396
 
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
-
635
397
  # Offense count: 9
636
398
  # This cop supports safe autocorrection (--autocorrect).
637
399
  # Configuration parameters: EnforcedStyle.
@@ -647,17 +409,17 @@ Style/Alias:
647
409
 
648
410
  # Offense count: 3
649
411
  # This cop supports safe autocorrection (--autocorrect).
650
- # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
412
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
651
413
  # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
652
414
  # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
653
415
  # FunctionalMethods: let, let!, subject, watch
654
- # AllowedMethods: lambda, proc, it
416
+ # IgnoredMethods: lambda, proc, it
655
417
  Style/BlockDelimiters:
656
418
  Exclude:
657
419
  - 'app/views/catalog/index.rss.builder'
658
420
  - 'app/views/catalog/opensearch.xml.builder'
659
421
 
660
- # Offense count: 56
422
+ # Offense count: 52
661
423
  # This cop supports unsafe autocorrection (--autocorrect-all).
662
424
  # Configuration parameters: EnforcedStyle.
663
425
  # SupportedStyles: nested, compact
@@ -679,7 +441,13 @@ Style/ConditionalAssignment:
679
441
  Exclude:
680
442
  - 'lib/blacklight/solr/response/spelling.rb'
681
443
 
682
- # Offense count: 127
444
+ # Offense count: 2
445
+ Style/DocumentDynamicEvalDefinition:
446
+ Exclude:
447
+ - 'app/builders/blacklight/action_builder.rb'
448
+ - 'lib/blacklight/configuration/fields.rb'
449
+
450
+ # Offense count: 105
683
451
  # Configuration parameters: AllowedConstants.
684
452
  Style/Documentation:
685
453
  Enabled: false
@@ -699,22 +467,14 @@ Style/ExpandPathArguments:
699
467
  - 'lib/generators/blacklight/test_support_generator.rb'
700
468
  - 'lib/generators/blacklight/user_generator.rb'
701
469
 
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
470
+ # Offense count: 16
709
471
  # This cop supports safe autocorrection (--autocorrect).
710
- # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
472
+ # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods.
711
473
  # SupportedStyles: annotated, template, unannotated
712
- # AllowedMethods: redirect
713
474
  Style/FormatStringToken:
714
475
  EnforcedStyle: template
715
476
 
716
- # Offense count: 7
717
- # This cop supports safe autocorrection (--autocorrect).
477
+ # Offense count: 6
718
478
  # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
719
479
  Style/GuardClause:
720
480
  Exclude:
@@ -724,38 +484,11 @@ Style/GuardClause:
724
484
  - 'app/helpers/blacklight/catalog_helper_behavior.rb'
725
485
  - 'lib/blacklight/solr/search_builder_behavior.rb'
726
486
 
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
487
+ # Offense count: 30
747
488
  # This cop supports safe autocorrection (--autocorrect).
748
489
  Style/IfUnlessModifier:
749
490
  Enabled: false
750
491
 
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
492
  # Offense count: 6
760
493
  # This cop supports safe autocorrection (--autocorrect).
761
494
  Style/MultilineIfModifier:
@@ -766,7 +499,7 @@ Style/MultilineIfModifier:
766
499
 
767
500
  # Offense count: 1
768
501
  # This cop supports safe autocorrection (--autocorrect).
769
- # Configuration parameters: AllowMethodComparison, ComparisonsThreshold.
502
+ # Configuration parameters: AllowMethodComparison.
770
503
  Style/MultipleComparison:
771
504
  Exclude:
772
505
  - 'lib/blacklight/configuration/context.rb'
@@ -781,7 +514,7 @@ Style/MutableConstant:
781
514
 
782
515
  # Offense count: 9
783
516
  # This cop supports unsafe autocorrection (--autocorrect-all).
784
- # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
517
+ # Configuration parameters: EnforcedStyle, IgnoredMethods.
785
518
  # SupportedStyles: predicate, comparison
786
519
  Style/NumericPredicate:
787
520
  Exclude:
@@ -793,7 +526,18 @@ Style/NumericPredicate:
793
526
  - 'lib/blacklight/solr/search_builder_behavior.rb'
794
527
  - 'lib/railties/blacklight.rake'
795
528
 
796
- # Offense count: 3
529
+ # Offense count: 15
530
+ Style/OpenStructUse:
531
+ Exclude:
532
+ - 'lib/blacklight/configuration.rb'
533
+ - 'lib/blacklight/open_struct_with_hash_access.rb'
534
+ - 'lib/blacklight/solr/response/facets.rb'
535
+ - 'spec/components/blacklight/facet_item_pivot_component_spec.rb'
536
+ - 'spec/lib/blacklight/search_state/filter_field_spec.rb'
537
+ - 'spec/models/blacklight/configuration_spec.rb'
538
+ - 'spec/models/blacklight/solr/response_spec.rb'
539
+
540
+ # Offense count: 1
797
541
  # This cop supports safe autocorrection (--autocorrect).
798
542
  # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
799
543
  Style/ParenthesesAroundCondition:
@@ -808,27 +552,6 @@ Style/PercentLiteralDelimiters:
808
552
  - 'lib/blacklight/engine.rb'
809
553
  - 'lib/blacklight/solr/request.rb'
810
554
 
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
-
832
555
  # Offense count: 7
833
556
  # This cop supports safe autocorrection (--autocorrect).
834
557
  # Configuration parameters: EnforcedStyle.
@@ -869,22 +592,7 @@ Style/SoleNestedConditional:
869
592
  Exclude:
870
593
  - 'app/controllers/concerns/blacklight/controller.rb'
871
594
 
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
595
+ # Offense count: 34
888
596
  # This cop supports safe autocorrection (--autocorrect).
889
597
  # Configuration parameters: MinSize.
890
598
  # SupportedStyles: percent, brackets