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.
- checksums.yaml +4 -4
- data/.env +2 -3
- data/.github/workflows/ruby.yml +81 -0
- data/.rubocop.yml +243 -14
- data/.rubocop_todo.yml +137 -429
- data/Gemfile +11 -6
- data/README.md +11 -3
- data/VERSION +1 -1
- data/app/assets/javascripts/blacklight/blacklight.esm.js +384 -0
- data/app/assets/javascripts/blacklight/blacklight.esm.js.map +1 -0
- data/app/assets/javascripts/blacklight/blacklight.js +374 -493
- data/app/assets/javascripts/blacklight/blacklight.js.map +1 -0
- data/app/assets/stylesheets/blacklight/_autocomplete.scss +25 -0
- data/app/assets/stylesheets/blacklight/_blacklight_base.scss +1 -1
- data/app/assets/stylesheets/blacklight/_bookmark.scss +16 -0
- data/app/assets/stylesheets/blacklight/_bootstrap_overrides.scss +8 -0
- data/app/assets/stylesheets/blacklight/_constraints.scss +4 -4
- data/app/assets/stylesheets/blacklight/_facets.scss +72 -44
- data/app/assets/stylesheets/blacklight/_header.scss +0 -15
- data/app/assets/stylesheets/blacklight/_icons.scss +0 -14
- data/app/assets/stylesheets/blacklight/_mixins.scss +20 -0
- data/app/assets/stylesheets/blacklight/_modal.scss +8 -2
- data/app/assets/stylesheets/blacklight/_search_form.scss +30 -3
- data/app/assets/stylesheets/blacklight/_search_history.scss +10 -1
- data/app/assets/stylesheets/blacklight/_search_results.scss +6 -2
- data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +4 -1
- data/app/builders/blacklight/action_builder.rb +18 -9
- data/app/components/blacklight/advanced_search_form_component.html.erb +3 -3
- data/app/components/blacklight/advanced_search_form_component.rb +8 -10
- data/app/components/blacklight/constraints_component.rb +27 -37
- data/app/components/blacklight/document/action_component.rb +12 -10
- data/app/components/blacklight/document/actions_component.rb +2 -2
- data/app/components/blacklight/document/bookmark_component.html.erb +9 -0
- data/app/components/blacklight/document/bookmark_component.rb +4 -2
- data/app/components/blacklight/document/citation_component.rb +5 -3
- data/app/components/blacklight/document/group_component.rb +7 -3
- data/app/components/blacklight/document/sidebar_component.html.erb +2 -0
- data/app/components/blacklight/document/sidebar_component.rb +16 -0
- data/app/components/blacklight/document/thumbnail_component.html.erb +2 -7
- data/app/components/blacklight/document/thumbnail_component.rb +1 -9
- data/app/components/blacklight/document_component.html.erb +1 -1
- data/app/components/blacklight/document_component.rb +16 -78
- data/app/components/blacklight/document_metadata_component.html.erb +2 -4
- data/app/components/blacklight/document_metadata_component.rb +5 -10
- data/app/components/blacklight/facet_component.rb +3 -3
- data/app/components/blacklight/facet_field_checkboxes_component.html.erb +4 -4
- data/app/components/blacklight/facet_field_checkboxes_component.rb +1 -1
- data/app/components/blacklight/facet_field_component.html.erb +4 -5
- data/app/components/blacklight/facet_field_component.rb +9 -2
- data/app/components/blacklight/facet_field_list_component.html.erb +3 -3
- data/app/components/blacklight/facet_field_list_component.rb +37 -5
- data/app/components/blacklight/facet_field_no_layout_component.rb +0 -2
- data/app/components/blacklight/facet_item_component.rb +1 -43
- data/app/components/blacklight/facet_item_pivot_component.rb +21 -23
- data/app/components/blacklight/header_component.rb +1 -1
- data/app/components/blacklight/hidden_search_state_component.rb +1 -2
- data/app/components/blacklight/icons/icon_component.rb +4 -9
- data/app/components/blacklight/icons/legacy_icon_component.rb +30 -0
- data/app/components/blacklight/icons/list_component.rb +16 -0
- data/app/components/blacklight/icons/search_component.rb +16 -0
- data/app/components/blacklight/metadata_field_component.html.erb +2 -2
- data/app/components/blacklight/metadata_field_component.rb +24 -8
- data/app/components/blacklight/metadata_field_layout_component.rb +4 -25
- data/app/components/blacklight/response/facet_group_component.html.erb +3 -5
- data/app/components/blacklight/response/facet_group_component.rb +29 -8
- data/app/components/blacklight/response/pagination_component.html.erb +1 -1
- data/app/components/blacklight/response/pagination_component.rb +2 -11
- data/app/components/blacklight/response/sort_component.html.erb +6 -1
- data/app/components/blacklight/response/sort_component.rb +1 -16
- data/app/components/blacklight/response/spellcheck_component.rb +18 -7
- data/app/components/blacklight/response/view_type_button_component.rb +3 -7
- data/app/components/blacklight/response/view_type_component.rb +4 -6
- data/app/components/blacklight/search/sidebar_component.html.erb +8 -0
- data/app/components/blacklight/search/sidebar_component.rb +17 -0
- data/app/components/blacklight/search_bar_component.html.erb +20 -15
- data/app/components/blacklight/search_bar_component.rb +2 -16
- data/app/components/blacklight/search_button_component.rb +3 -3
- data/app/components/blacklight/search_context_component.rb +43 -10
- data/app/components/blacklight/search_header_component.html.erb +2 -0
- data/app/components/blacklight/search_header_component.rb +6 -0
- data/app/components/blacklight/start_over_button_component.rb +5 -3
- data/app/components/blacklight/system/dropdown_component.rb +8 -5
- data/app/components/blacklight/system/flash_message_component.html.erb +4 -2
- data/app/components/blacklight/system/flash_message_component.rb +12 -3
- data/app/components/blacklight/system/modal_component.html.erb +1 -1
- data/app/components/blacklight/system/modal_component.rb +1 -3
- data/app/components/blacklight/top_navbar_component.html.erb +1 -1
- data/app/components/blacklight/top_navbar_component.rb +0 -4
- data/app/controllers/bookmarks_controller.rb +1 -0
- data/app/controllers/catalog_controller.rb +1 -0
- data/app/controllers/concerns/blacklight/bookmarks.rb +10 -9
- data/app/controllers/concerns/blacklight/catalog.rb +21 -83
- data/app/controllers/concerns/blacklight/controller.rb +3 -41
- data/app/controllers/concerns/blacklight/search_context.rb +25 -7
- data/app/controllers/concerns/blacklight/search_history.rb +2 -0
- data/app/controllers/concerns/blacklight/searchable.rb +12 -1
- data/app/controllers/concerns/blacklight/token_based_user.rb +13 -1
- data/app/controllers/search_history_controller.rb +1 -0
- data/app/helpers/blacklight/blacklight_helper_behavior.rb +12 -310
- data/app/helpers/blacklight/catalog_helper_behavior.rb +22 -139
- data/app/helpers/blacklight/component_helper_behavior.rb +2 -53
- data/app/helpers/blacklight/configuration_helper_behavior.rb +2 -119
- data/app/helpers/blacklight/facets_helper_behavior.rb +4 -321
- data/app/helpers/blacklight/icon_helper_behavior.rb +5 -7
- data/app/helpers/blacklight/layout_helper_behavior.rb +4 -3
- data/app/helpers/blacklight/render_partials_helper_behavior.rb +11 -31
- data/app/helpers/blacklight/url_helper_behavior.rb +12 -97
- data/app/helpers/blacklight_helper.rb +1 -0
- data/app/helpers/catalog_helper.rb +1 -0
- data/app/javascript/blacklight/bookmark_toggle.js +13 -19
- data/app/javascript/blacklight/button_focus.js +12 -10
- data/app/javascript/blacklight/checkbox_submit.js +68 -123
- data/app/javascript/blacklight/core.js +5 -7
- data/app/javascript/blacklight/index.js +13 -0
- data/app/javascript/blacklight/modal.js +99 -164
- data/app/javascript/blacklight/modalForm.js +60 -0
- data/app/javascript/blacklight/search_context.js +46 -54
- data/app/models/blacklight/facet_paginator.rb +3 -2
- data/app/models/blacklight/icon.rb +4 -2
- data/app/models/bookmark.rb +0 -2
- data/app/models/concerns/blacklight/configurable.rb +5 -4
- data/app/models/concerns/blacklight/document/active_model_shim.rb +1 -10
- data/app/models/concerns/blacklight/document/cache_key.rb +1 -0
- data/app/models/concerns/blacklight/document/dublin_core.rb +2 -1
- data/app/models/concerns/blacklight/document/email.rb +1 -0
- data/app/models/concerns/blacklight/document/export.rb +2 -1
- data/app/models/concerns/blacklight/document/extensions.rb +1 -0
- data/app/models/concerns/blacklight/document/schema_org.rb +1 -0
- data/app/models/concerns/blacklight/document/semantic_fields.rb +2 -1
- data/app/models/concerns/blacklight/document/sms.rb +1 -0
- data/app/models/concerns/blacklight/suggest/response.rb +1 -0
- data/app/models/concerns/blacklight/user.rb +17 -8
- data/app/models/record_mailer.rb +13 -12
- data/app/models/search.rb +1 -7
- data/app/models/solr_document.rb +1 -0
- data/app/presenters/blacklight/clause_presenter.rb +1 -1
- data/app/presenters/blacklight/document_presenter.rb +23 -50
- data/app/presenters/blacklight/facet_field_presenter.rb +39 -14
- data/app/presenters/blacklight/facet_grouped_item_presenter.rb +1 -5
- data/app/presenters/blacklight/facet_item_pivot_presenter.rb +60 -0
- data/app/presenters/blacklight/facet_item_presenter.rb +3 -9
- data/app/presenters/blacklight/field_presenter.rb +1 -0
- data/app/presenters/blacklight/index_presenter.rb +2 -40
- data/app/presenters/blacklight/json_presenter.rb +10 -6
- data/app/presenters/blacklight/rendering/link_to_facet.rb +2 -5
- data/app/presenters/blacklight/show_presenter.rb +1 -9
- data/app/presenters/blacklight/thumbnail_presenter.rb +1 -1
- data/app/services/blacklight/bookmarks_search_builder.rb +22 -0
- data/app/services/blacklight/field_retriever.rb +12 -21
- data/app/services/blacklight/search_service.rb +10 -17
- data/app/values/blacklight/types.rb +0 -18
- data/app/views/bookmarks/_clear_bookmarks_widget.html.erb +8 -1
- data/app/views/bookmarks/_tools.html.erb +7 -12
- data/app/views/catalog/_advanced_search_form.html.erb +0 -1
- data/app/views/catalog/_bookmark_control.html.erb +1 -1
- data/app/views/catalog/_citation.html.erb +1 -1
- data/app/views/catalog/_constraints.html.erb +1 -14
- data/app/views/catalog/_document.atom.builder +12 -14
- data/app/views/catalog/_document.html.erb +5 -3
- data/app/views/catalog/_document.rss.builder +2 -4
- data/app/views/catalog/_facet_layout.html.erb +2 -2
- data/app/views/catalog/_facets.html.erb +5 -4
- data/app/views/catalog/_home_text.html.erb +2 -14
- data/app/views/catalog/_per_page_widget.html.erb +10 -1
- data/app/views/catalog/_search_form.html.erb +2 -2
- data/app/views/catalog/_search_header.html.erb +1 -2
- data/app/views/catalog/_search_results.html.erb +2 -2
- data/app/views/catalog/_search_sidebar.html.erb +5 -1
- data/app/views/catalog/_show_main_content.html.erb +11 -16
- data/app/views/catalog/_show_sidebar.html.erb +2 -2
- data/app/views/catalog/_show_tools.html.erb +8 -14
- data/app/views/catalog/_view_type_group.html.erb +1 -1
- data/app/views/catalog/email.html.erb +2 -2
- data/app/views/catalog/email_success.html.erb +5 -6
- data/app/views/catalog/facet.html.erb +7 -5
- data/app/views/catalog/index.atom.builder +12 -14
- data/app/views/catalog/index.html.erb +4 -1
- data/app/views/catalog/index.json.jbuilder +19 -19
- data/app/views/catalog/index.rss.builder +1 -1
- data/app/views/catalog/opensearch.xml.builder +1 -1
- data/app/views/catalog/sms.html.erb +2 -2
- data/app/views/catalog/sms_success.html.erb +5 -6
- data/app/views/catalog/suggest.html.erb +3 -0
- data/app/views/kaminari/blacklight/_page.html.erb +2 -1
- data/app/views/layouts/blacklight/base.html.erb +13 -2
- data/app/views/search_history/index.html.erb +6 -2
- data/app/views/shared/_flash_messages.html.erb +1 -1
- data/app/views/shared/_modal.html.erb +3 -3
- data/blacklight.gemspec +7 -11
- data/config/importmap.rb +3 -0
- data/config/locales/blacklight.ar.yml +0 -1
- data/config/locales/blacklight.ca.yml +0 -1
- data/config/locales/blacklight.de.yml +0 -1
- data/config/locales/blacklight.en.yml +0 -2
- data/config/locales/blacklight.es.yml +0 -1
- data/config/locales/blacklight.fr.yml +0 -1
- data/config/locales/blacklight.hu.yml +0 -1
- data/config/locales/blacklight.it.yml +0 -1
- data/config/locales/blacklight.nl.yml +0 -1
- data/config/locales/blacklight.pt-BR.yml +0 -1
- data/config/locales/blacklight.sq.yml +0 -1
- data/config/locales/blacklight.zh.yml +0 -1
- data/config/routes.rb +3 -2
- data/db/migrate/20140202020201_create_searches.rb +1 -0
- data/db/migrate/20140202020202_create_bookmarks.rb +1 -0
- data/db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb +1 -0
- data/docker-compose.yml +3 -3
- data/lib/blacklight/abstract_repository.rb +1 -6
- data/lib/blacklight/component.rb +47 -10
- data/lib/blacklight/configuration/context.rb +4 -4
- data/lib/blacklight/configuration/display_field.rb +7 -9
- data/lib/blacklight/configuration/facet_field.rb +17 -11
- data/lib/blacklight/configuration/field.rb +1 -0
- data/lib/blacklight/configuration/fields.rb +12 -15
- data/lib/blacklight/configuration/index_field.rb +1 -0
- data/lib/blacklight/configuration/null_display_field.rb +17 -0
- data/lib/blacklight/configuration/search_field.rb +1 -0
- data/lib/blacklight/configuration/show_field.rb +1 -0
- data/lib/blacklight/configuration/sort_field.rb +1 -0
- data/lib/blacklight/configuration/tool_config.rb +1 -0
- data/lib/blacklight/configuration/view_config.rb +14 -10
- data/lib/blacklight/configuration.rb +310 -365
- data/lib/blacklight/engine.rb +8 -24
- data/lib/blacklight/exceptions.rb +2 -2
- data/lib/blacklight/nested_open_struct_with_hash_access.rb +7 -13
- data/lib/blacklight/open_struct_with_hash_access.rb +23 -6
- data/lib/blacklight/parameters.rb +7 -21
- data/lib/blacklight/routes/exportable.rb +1 -0
- data/lib/blacklight/routes/searchable.rb +2 -1
- data/lib/blacklight/routes.rb +1 -0
- data/lib/blacklight/search_builder.rb +10 -10
- data/lib/blacklight/search_state/filter_field.rb +8 -25
- data/lib/blacklight/search_state/pivot_filter_field.rb +144 -0
- data/lib/blacklight/search_state.rb +23 -79
- data/lib/blacklight/solr/document.rb +1 -0
- data/lib/blacklight/solr/facet_paginator.rb +1 -0
- data/lib/blacklight/solr/repository.rb +4 -24
- data/lib/blacklight/solr/request.rb +1 -0
- data/lib/blacklight/solr/response/facets.rb +21 -5
- data/lib/blacklight/solr/response/group.rb +1 -0
- data/lib/blacklight/solr/response/group_response.rb +1 -0
- data/lib/blacklight/solr/response/more_like_this.rb +1 -0
- data/lib/blacklight/solr/response/pagination_methods.rb +4 -3
- data/lib/blacklight/solr/response/params.rb +5 -4
- data/lib/blacklight/solr/response/response.rb +1 -0
- data/lib/blacklight/solr/response/spelling.rb +1 -0
- data/lib/blacklight/solr/response.rb +16 -3
- data/lib/blacklight/solr/search_builder_behavior.rb +16 -35
- data/lib/blacklight/solr.rb +7 -0
- data/lib/blacklight/version.rb +1 -0
- data/lib/blacklight.rb +26 -14
- data/lib/generators/blacklight/assets/importmap_generator.rb +55 -0
- data/lib/generators/blacklight/assets/propshaft_generator.rb +25 -0
- data/lib/generators/blacklight/assets/sprockets_generator.rb +66 -0
- data/lib/generators/blacklight/assets_generator.rb +13 -86
- data/lib/generators/blacklight/controller_generator.rb +4 -3
- data/lib/generators/blacklight/document_generator.rb +1 -0
- data/lib/generators/blacklight/install_generator.rb +4 -3
- data/lib/generators/blacklight/models_generator.rb +1 -0
- data/lib/generators/blacklight/search_builder_generator.rb +1 -0
- data/lib/generators/blacklight/solr_generator.rb +1 -1
- data/lib/generators/blacklight/templates/catalog_controller.rb +34 -8
- data/lib/generators/blacklight/templates/solr/conf/solrconfig.xml +1 -70
- data/lib/generators/blacklight/test_support_generator.rb +5 -3
- data/lib/generators/blacklight/user_generator.rb +7 -9
- data/lib/railties/blacklight.rake +6 -7
- data/package.json +10 -13
- data/rollup.config.js +27 -0
- data/spec/components/blacklight/constraints_component_spec.rb +17 -13
- data/spec/components/blacklight/document/action_component_spec.rb +6 -1
- data/spec/components/blacklight/document_component_spec.rb +22 -131
- data/spec/components/blacklight/facet_component_spec.rb +3 -18
- data/spec/components/blacklight/facet_field_checkboxes_component_spec.rb +1 -2
- data/spec/components/blacklight/facet_field_list_component_spec.rb +7 -6
- data/spec/components/blacklight/facet_item_pivot_component_spec.rb +10 -9
- data/spec/components/blacklight/response/view_type_component_spec.rb +66 -0
- data/spec/components/blacklight/search_bar_component_spec.rb +1 -1
- data/spec/components/blacklight/search_context_component_spec.rb +17 -8
- data/spec/controllers/blacklight/catalog/component_configuration_spec.rb +1 -6
- data/spec/controllers/blacklight/{base_spec.rb → catalog_spec.rb} +2 -2
- data/spec/controllers/bookmarks_controller_spec.rb +2 -3
- data/spec/controllers/catalog_controller_spec.rb +13 -135
- data/spec/features/advanced_search_spec.rb +0 -56
- data/spec/features/autocomplete_spec.rb +1 -1
- data/spec/features/axe_spec.rb +1 -6
- data/spec/features/bookmarks_spec.rb +1 -1
- data/spec/features/facets_spec.rb +6 -4
- data/spec/features/search_context_spec.rb +5 -11
- data/spec/features/search_results_spec.rb +0 -33
- data/spec/features/sitelinks_search_box.rb +13 -0
- data/spec/helpers/blacklight/configuration_helper_behavior_spec.rb +2 -138
- data/spec/helpers/blacklight/facets_helper_behavior_spec.rb +0 -387
- data/spec/helpers/blacklight/icon_helper_behavior_spec.rb +8 -0
- data/spec/helpers/blacklight/layout_helper_behavior_spec.rb +3 -20
- data/spec/helpers/blacklight/render_partials_helper_behavior_spec.rb +5 -7
- data/spec/helpers/blacklight/url_helper_behavior_spec.rb +9 -131
- data/spec/helpers/blacklight_helper_spec.rb +8 -252
- data/spec/helpers/catalog_helper_spec.rb +7 -118
- data/spec/i18n_spec.rb +1 -0
- data/spec/integration/generators/blacklight/solr_generator_spec.rb +1 -1
- data/spec/lib/blacklight/component_spec.rb +27 -32
- data/spec/lib/blacklight/configuration/facet_field_spec.rb +27 -16
- data/spec/lib/blacklight/configuration/field_spec.rb +1 -1
- data/spec/lib/blacklight/configuration/view_config_spec.rb +1 -1
- data/spec/lib/blacklight/open_struct_with_hash_access_spec.rb +2 -2
- data/spec/lib/blacklight/parameters_spec.rb +1 -4
- data/spec/lib/blacklight/search_state/filter_field_spec.rb +4 -4
- data/spec/lib/blacklight/search_state/pivot_filter_field_spec.rb +117 -0
- data/spec/lib/blacklight/search_state_spec.rb +80 -198
- data/spec/lib/tasks/blacklight_task_spec.rb +1 -0
- data/spec/models/blacklight/configuration_spec.rb +17 -51
- data/spec/models/blacklight/document/active_model_shim_spec.rb +2 -2
- data/spec/models/blacklight/icon_spec.rb +31 -15
- data/spec/models/blacklight/search_builder_spec.rb +9 -9
- data/spec/models/blacklight/solr/document_spec.rb +3 -3
- data/spec/models/blacklight/solr/repository_spec.rb +0 -45
- data/spec/models/blacklight/solr/response/facets_spec.rb +27 -27
- data/spec/models/blacklight/solr/response/group_response_spec.rb +1 -0
- data/spec/models/blacklight/solr/response/group_spec.rb +1 -0
- data/spec/models/blacklight/solr/response_spec.rb +9 -2
- data/spec/models/blacklight/solr/search_builder_spec.rb +24 -44
- data/spec/models/blacklight/user_spec.rb +22 -0
- data/spec/models/solr_document_spec.rb +3 -9
- data/spec/presenters/blacklight/clause_presenter_spec.rb +1 -0
- data/spec/presenters/blacklight/document_presenter_spec.rb +2 -3
- data/spec/presenters/blacklight/facet_field_presenter_spec.rb +85 -12
- data/spec/presenters/blacklight/facet_grouped_item_presenter_spec.rb +1 -0
- data/spec/presenters/blacklight/facet_item_presenter_spec.rb +14 -13
- data/spec/presenters/blacklight/field_presenter_spec.rb +0 -14
- data/spec/presenters/blacklight/index_presenter_spec.rb +2 -5
- data/spec/presenters/blacklight/json_presenter_spec.rb +1 -0
- data/spec/presenters/blacklight/link_alternate_presenter_spec.rb +3 -2
- data/spec/presenters/blacklight/show_presenter_spec.rb +20 -30
- data/spec/presenters/thumbnail_presenter_spec.rb +1 -1
- data/spec/requests/load_suggestions_spec.rb +16 -0
- data/spec/routing/catalog_routing_spec.rb +2 -1
- data/spec/services/blacklight/search_service_spec.rb +39 -76
- data/spec/spec_helper.rb +8 -9
- data/spec/support/controller_level_helpers.rb +1 -2
- data/spec/support/features/search_helpers.rb +39 -0
- data/spec/support/features/session_helpers.rb +1 -0
- data/spec/support/features.rb +3 -0
- data/spec/support/view_component_capybara_test_helpers.rb +8 -0
- data/spec/test_app_templates/Gemfile.extra +1 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +9 -2
- data/spec/views/catalog/_document.html.erb_spec.rb +3 -34
- data/spec/views/catalog/_facet_index_navigation.html.erb_spec.rb +1 -1
- data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +0 -2
- data/spec/views/catalog/_search_header.erb_spec.rb +1 -0
- data/spec/views/catalog/_show_sidebar.erb_spec.rb +1 -0
- data/spec/views/catalog/_show_tools.html.erb_spec.rb +5 -66
- data/spec/views/catalog/_view_type_group.html.erb_spec.rb +17 -9
- data/spec/views/catalog/email_success.html.erb_spec.rb +2 -2
- data/spec/views/catalog/facet.html.erb_spec.rb +6 -3
- data/spec/views/catalog/index.atom.builder_spec.rb +17 -11
- data/spec/views/catalog/index.html.erb_spec.rb +5 -6
- data/spec/views/catalog/index.json.jbuilder_spec.rb +2 -2
- data/spec/views/catalog/show.html.erb_spec.rb +3 -25
- data/spec/views/catalog/sms_success.html.erb_spec.rb +2 -2
- data/tasks/blacklight.rake +11 -9
- data/template.demo.rb +7 -7
- metadata +77 -189
- data/.babelrc +0 -11
- data/.github/matrix.json +0 -62
- data/.github/workflows/build.yml +0 -16
- data/.github/workflows/lint.yml +0 -23
- data/.github/workflows/main.yml +0 -23
- data/.github/workflows/test.yml +0 -53
- data/app/assets/images/blacklight/list.svg +0 -1
- data/app/assets/images/blacklight/search.svg +0 -1
- data/app/assets/stylesheets/blacklight/_twitter_typeahead.scss +0 -37
- data/app/components/blacklight/content_areas_shim.rb +0 -13
- data/app/components/blacklight/search/per_page_component.html.erb +0 -2
- data/app/components/blacklight/search/per_page_component.rb +0 -50
- data/app/components/blacklight/search_context/server_item_pagination_component.html.erb +0 -10
- data/app/components/blacklight/search_context/server_item_pagination_component.rb +0 -15
- data/app/components/blacklight/system/dropdown_button_component.rb +0 -18
- data/app/controllers/concerns/blacklight/base.rb +0 -12
- data/app/controllers/concerns/blacklight/default_component_configuration.rb +0 -64
- data/app/controllers/concerns/blacklight/facet.rb +0 -69
- data/app/controllers/concerns/blacklight/search_fields.rb +0 -46
- data/app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb +0 -27
- data/app/helpers/blacklight/render_constraints_helper_behavior.rb +0 -188
- data/app/helpers/blacklight/search_history_constraints_helper_behavior.rb +0 -97
- data/app/helpers/blacklight/suggest_helper_behavior.rb +0 -13
- data/app/javascript/blacklight/autocomplete.js +0 -36
- data/app/javascript/blacklight/facet_load.js +0 -22
- data/app/presenters/blacklight/search_bar_presenter.rb +0 -47
- data/app/views/catalog/_constraints_element.html.erb +0 -14
- data/app/views/catalog/_document_action.html.erb +0 -5
- data/app/views/catalog/_facet_group.html.erb +0 -5
- data/app/views/catalog/_facet_limit.html.erb +0 -3
- data/app/views/catalog/_index.html.erb +0 -1
- data/app/views/catalog/_index_header.html.erb +0 -22
- data/app/views/catalog/_previous_next_doc.html.erb +0 -2
- data/app/views/catalog/_show.html.erb +0 -6
- data/app/views/catalog/_show_header.html.erb +0 -2
- data/app/views/catalog/_thumbnail.html.erb +0 -1
- data/lib/blacklight/deprecations/engine_configuration.rb +0 -66
- data/lib/blacklight/deprecations/search_state_normalization.rb +0 -52
- data/spec/components/blacklight/header_component_spec.rb +0 -20
- data/spec/components/blacklight/icons/icon_component_spec.rb +0 -42
- data/spec/components/blacklight/response/pagination_component_spec.rb +0 -53
- data/spec/components/blacklight/search_context/server_item_pagination_component_spec.rb +0 -35
- data/spec/controllers/blacklight/facet_spec.rb +0 -33
- data/spec/controllers/blacklight/search_fields_spec.rb +0 -62
- data/spec/features/citation_spec.rb +0 -10
- data/spec/features/sitelinks_search_box_spec.rb +0 -13
- data/spec/features/sms_spec.rb +0 -12
- data/spec/helpers/blacklight/hash_as_hidden_fields_behavior_spec.rb +0 -26
- data/spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb +0 -92
- data/spec/helpers/blacklight/search_history_constraints_helper_behavior_spec.rb +0 -101
- data/spec/helpers/blacklight/suggest_helper_behavior_spec.rb +0 -48
- data/spec/lib/blacklight/engine_spec.rb +0 -41
- data/spec/presenters/blacklight/search_bar_presenter_spec.rb +0 -94
- data/spec/services/blacklight/field_retriever_spec.rb +0 -17
- data/spec/support/view_component_test_helpers.rb +0 -35
- data/spec/views/catalog/_constraints.html.erb_spec.rb +0 -33
- data/spec/views/catalog/_facet_group.html.erb_spec.rb +0 -84
- data/spec/views/catalog/_facets.html.erb_spec.rb +0 -15
- data/spec/views/catalog/_index.html.erb_spec.rb +0 -62
- data/spec/views/catalog/_index_header.html.erb_spec.rb +0 -35
- data/spec/views/catalog/_previous_next_doc.html.erb_spec.rb +0 -22
- data/spec/views/catalog/_show.html.erb_spec.rb +0 -62
- 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
|
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:
|
10
|
-
#
|
11
|
-
|
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
|
-
- '
|
145
|
-
- '
|
13
|
+
- 'lib/generators/blacklight/controller_generator.rb'
|
14
|
+
- 'lib/generators/blacklight/user_generator.rb'
|
146
15
|
|
147
16
|
# Offense count: 1
|
148
|
-
#
|
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:
|
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:
|
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:
|
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:
|
209
|
-
# Configuration parameters: AllowedParentClasses.
|
78
|
+
# Offense count: 38
|
210
79
|
Lint/MissingSuper:
|
211
80
|
Enabled: false
|
212
81
|
|
213
|
-
# Offense count:
|
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:
|
239
|
-
# Configuration parameters:
|
97
|
+
# Offense count: 74
|
98
|
+
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
240
99
|
Metrics/AbcSize:
|
241
100
|
Max: 46
|
242
101
|
|
243
|
-
# Offense count:
|
244
|
-
# Configuration parameters: CountComments, CountAsOne,
|
245
|
-
#
|
102
|
+
# Offense count: 1
|
103
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods, inherit_mode.
|
104
|
+
# IgnoredMethods: refine
|
246
105
|
Metrics/BlockLength:
|
247
|
-
Max:
|
106
|
+
Max: 26
|
107
|
+
|
108
|
+
# Offense count: 1
|
109
|
+
# Configuration parameters: CountBlocks.
|
110
|
+
Metrics/BlockNesting:
|
111
|
+
Max: 4
|
248
112
|
|
249
|
-
# Offense count:
|
250
|
-
# Configuration parameters:
|
113
|
+
# Offense count: 43
|
114
|
+
# Configuration parameters: IgnoredMethods.
|
251
115
|
Metrics/CyclomaticComplexity:
|
252
|
-
Max:
|
116
|
+
Max: 14
|
253
117
|
|
254
|
-
# Offense count:
|
255
|
-
# Configuration parameters: CountComments, CountAsOne,
|
118
|
+
# Offense count: 69
|
119
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
256
120
|
Metrics/MethodLength:
|
257
121
|
Max: 29
|
258
122
|
|
259
|
-
# Offense count:
|
123
|
+
# Offense count: 3
|
260
124
|
# Configuration parameters: CountComments, CountAsOne.
|
261
125
|
Metrics/ModuleLength:
|
262
|
-
Max:
|
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:
|
270
|
-
# Configuration parameters:
|
133
|
+
# Offense count: 36
|
134
|
+
# Configuration parameters: IgnoredMethods.
|
271
135
|
Metrics/PerceivedComplexity:
|
272
|
-
Max:
|
136
|
+
Max: 14
|
273
137
|
|
274
|
-
# Offense count:
|
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:
|
147
|
+
# Offense count: 9
|
286
148
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
287
|
-
# AllowedNames:
|
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:
|
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
|
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:
|
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:
|
177
|
+
# Offense count: 4
|
335
178
|
# This cop supports safe autocorrection (--autocorrect).
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
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:
|
342
|
-
# Configuration parameters: Prefixes
|
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:
|
201
|
+
# Offense count: 128
|
355
202
|
# Configuration parameters: CountAsOne.
|
356
203
|
RSpec/ExampleLength:
|
357
204
|
Max: 33
|
358
205
|
|
359
|
-
# Offense count:
|
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:
|
385
|
-
# Configuration parameters:
|
386
|
-
|
211
|
+
# Offense count: 5
|
212
|
+
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
|
213
|
+
# Include: **/*_spec*rb*, **/spec/**/*
|
214
|
+
RSpec/FilePath:
|
387
215
|
Exclude:
|
388
|
-
- 'spec/
|
389
|
-
- 'spec/
|
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:
|
222
|
+
# Offense count: 128
|
392
223
|
# Configuration parameters: AssignmentOnly.
|
393
224
|
RSpec/InstanceVariable:
|
394
|
-
|
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:
|
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:
|
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:
|
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:
|
283
|
+
# Offense count: 258
|
465
284
|
# Configuration parameters: AllowSubject.
|
466
285
|
RSpec/MultipleMemoizedHelpers:
|
467
286
|
Max: 14
|
468
287
|
|
469
|
-
# Offense count:
|
470
|
-
# Configuration parameters:
|
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:
|
476
|
-
# Configuration parameters: AllowedGroups.
|
293
|
+
# Offense count: 55
|
477
294
|
RSpec/NestedGroups:
|
478
295
|
Max: 5
|
479
296
|
|
480
|
-
# Offense count:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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
|
365
|
+
- 'lib/railties/blacklight.rake'
|
596
366
|
|
597
|
-
# Offense count:
|
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
|
-
#
|
610
|
-
#
|
611
|
-
|
612
|
-
Rails/HttpStatus:
|
378
|
+
# Configuration parameters: Include.
|
379
|
+
# Include: spec/**/*.rb, test/**/*.rb
|
380
|
+
Rails/I18nLocaleAssignment:
|
613
381
|
Exclude:
|
614
|
-
- '
|
382
|
+
- 'spec/helpers/blacklight_helper_spec.rb'
|
615
383
|
|
616
|
-
# Offense count:
|
384
|
+
# Offense count: 10
|
617
385
|
Rails/OutputSafety:
|
618
386
|
Exclude:
|
619
|
-
- 'app/
|
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,
|
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
|
-
#
|
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:
|
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:
|
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:
|
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,
|
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:
|
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:
|
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
|
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,
|
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:
|
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:
|
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
|