blacklight 6.20.0 → 7.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.jshintrc +3 -1
- data/.npmignore +23 -0
- data/.rubocop.yml +40 -16
- data/.rubocop_todo.yml +478 -382
- data/.travis.yml +28 -31
- data/CONTRIBUTING.md +50 -0
- data/Gemfile +5 -2
- data/README.md +22 -5
- data/Rakefile +3 -2
- data/VERSION +1 -1
- data/Vagrantfile +2 -0
- data/app/assets/images/blacklight/list.svg +1 -0
- data/app/assets/images/blacklight/search.svg +1 -0
- data/app/assets/javascripts/blacklight/blacklight.js +495 -57
- data/app/assets/stylesheets/blacklight/_balanced_list.scss +7 -12
- data/app/assets/stylesheets/blacklight/_blacklight_base.scss +18 -15
- data/app/assets/stylesheets/blacklight/_bookmark.scss +1 -13
- data/app/assets/stylesheets/blacklight/_bootstrap_overrides.scss +31 -0
- data/app/assets/stylesheets/blacklight/_constraints.scss +17 -25
- data/app/assets/stylesheets/blacklight/_controls.scss +8 -16
- data/app/assets/stylesheets/blacklight/_facets.scss +66 -92
- data/app/assets/stylesheets/blacklight/_header.scss +60 -47
- data/app/assets/stylesheets/blacklight/_icons.scss +35 -0
- data/app/assets/stylesheets/blacklight/_layout.scss +0 -10
- data/app/assets/stylesheets/blacklight/_mixins.scss +15 -0
- data/app/assets/stylesheets/blacklight/_modal.scss +9 -17
- data/app/assets/stylesheets/blacklight/_pagination.scss +4 -13
- data/app/assets/stylesheets/blacklight/_search_form.scss +7 -0
- data/app/assets/stylesheets/blacklight/_search_history.scss +5 -13
- data/app/assets/stylesheets/blacklight/_search_results.scss +9 -8
- data/app/assets/stylesheets/blacklight/_twitter_typeahead.scss +1 -2
- data/app/assets/stylesheets/blacklight/blacklight.scss +1 -1
- data/app/builders/blacklight/action_builder.rb +57 -0
- data/app/controllers/bookmarks_controller.rb +2 -2
- data/app/controllers/catalog_controller.rb +2 -2
- data/app/controllers/concerns/blacklight/base.rb +0 -33
- data/app/controllers/concerns/blacklight/bookmarks.rb +20 -30
- data/app/controllers/concerns/blacklight/catalog.rb +256 -210
- data/app/controllers/concerns/blacklight/controller.rb +102 -124
- data/app/controllers/concerns/blacklight/default_component_configuration.rb +12 -43
- data/app/controllers/concerns/blacklight/facet.rb +22 -8
- data/app/controllers/concerns/blacklight/search_context.rb +11 -11
- data/app/controllers/concerns/blacklight/search_fields.rb +4 -14
- data/app/controllers/concerns/blacklight/search_history.rb +1 -6
- data/app/controllers/concerns/blacklight/searchable.rb +17 -0
- data/app/controllers/concerns/blacklight/token_based_user.rb +5 -7
- data/app/helpers/blacklight/blacklight_helper_behavior.rb +37 -119
- data/app/helpers/blacklight/catalog_helper_behavior.rb +103 -93
- data/app/helpers/blacklight/component_helper_behavior.rb +21 -21
- data/app/helpers/blacklight/configuration_helper_behavior.rb +30 -58
- data/app/helpers/blacklight/facets_helper_behavior.rb +79 -54
- data/app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb +9 -11
- data/app/helpers/blacklight/icon_helper_behavior.rb +18 -0
- data/app/helpers/blacklight/layout_helper_behavior.rb +3 -3
- data/app/helpers/blacklight/render_constraints_helper_behavior.rb +8 -6
- data/app/helpers/blacklight/render_partials_helper_behavior.rb +207 -0
- data/app/helpers/blacklight/search_history_constraints_helper_behavior.rb +19 -11
- data/app/helpers/blacklight/suggest_helper_behavior.rb +1 -0
- data/app/helpers/blacklight/url_helper_behavior.rb +51 -42
- data/app/{assets/javascripts → javascript}/blacklight/autocomplete.js +3 -2
- data/app/javascript/blacklight/bookmark_toggle.js +25 -0
- data/app/javascript/blacklight/button_focus.js +9 -0
- data/app/javascript/blacklight/checkbox_submit.js +134 -0
- data/app/javascript/blacklight/core.js +41 -0
- data/app/javascript/blacklight/facet_load.js +22 -0
- data/app/{assets/javascripts/blacklight/ajax_modal.js → javascript/blacklight/modal.js} +62 -64
- data/app/javascript/blacklight/search_context.js +67 -0
- data/app/models/blacklight/facet_paginator.rb +3 -3
- data/app/models/blacklight/icon.rb +79 -0
- data/app/models/blacklight/suggest_search.rb +1 -1
- data/app/models/bookmark.rb +5 -10
- data/app/models/concerns/blacklight/configurable.rb +13 -13
- data/app/models/concerns/blacklight/document.rb +23 -39
- data/app/models/concerns/blacklight/document/active_model_shim.rb +8 -11
- data/app/models/concerns/blacklight/document/cache_key.rb +1 -1
- data/app/models/concerns/blacklight/document/dublin_core.rb +2 -2
- data/app/models/concerns/blacklight/document/email.rb +5 -5
- data/app/models/concerns/blacklight/document/extensions.rb +5 -5
- data/app/models/concerns/blacklight/document/semantic_fields.rb +9 -9
- data/app/models/concerns/blacklight/document/sms.rb +3 -3
- data/app/models/concerns/blacklight/user.rb +7 -6
- data/app/models/record_mailer.rb +8 -6
- data/app/models/search.rb +5 -7
- data/app/presenters/blacklight/document_presenter.rb +25 -140
- data/app/presenters/blacklight/field_presenter.rb +19 -14
- data/app/presenters/blacklight/index_presenter.rb +43 -71
- data/app/presenters/blacklight/json_presenter.rb +10 -14
- data/app/presenters/blacklight/link_alternate_presenter.rb +3 -1
- data/app/presenters/blacklight/rendering/abstract_step.rb +7 -5
- data/app/presenters/blacklight/rendering/helper_method.rb +10 -8
- data/app/presenters/blacklight/rendering/join.rb +5 -3
- data/app/presenters/blacklight/rendering/link_to_facet.rb +23 -19
- data/app/presenters/blacklight/rendering/microdata.rb +6 -3
- data/app/presenters/blacklight/rendering/pipeline.rb +27 -10
- data/app/presenters/blacklight/rendering/terminator.rb +2 -0
- data/app/presenters/blacklight/search_bar_presenter.rb +41 -0
- data/app/presenters/blacklight/show_presenter.rb +26 -72
- data/app/presenters/blacklight/thumbnail_presenter.rb +74 -0
- data/app/services/blacklight/document_factory.rb +13 -0
- data/app/services/blacklight/field_retriever.rb +26 -24
- data/app/services/blacklight/search_service.rb +153 -0
- data/app/values/blacklight/types.rb +31 -0
- data/app/views/blacklight/nav/_bookmark.html.erb +2 -2
- data/app/views/blacklight/nav/_search_history.html.erb +1 -1
- data/app/views/bookmarks/_tools.html.erb +2 -2
- data/app/views/bookmarks/index.html.erb +12 -13
- data/app/views/catalog/_bookmark_control.html.erb +27 -13
- data/app/views/catalog/_constraints.html.erb +6 -7
- data/app/views/catalog/_constraints_element.html.erb +6 -6
- data/app/views/catalog/_did_you_mean.html.erb +1 -1
- data/app/views/catalog/{_document_default.atom.builder → _document.atom.builder} +20 -19
- data/app/views/catalog/_document.html.erb +5 -3
- data/app/views/catalog/{_document_default.rss.builder → _document.rss.builder} +2 -0
- data/app/views/catalog/_document_action.html.erb +2 -1
- data/app/views/catalog/_email_form.html.erb +8 -4
- data/app/views/catalog/_facet_group.html.erb +19 -0
- data/app/views/catalog/_facet_index_navigation.html.erb +5 -4
- data/app/views/catalog/_facet_layout.html.erb +13 -8
- data/app/views/catalog/_facet_limit.html.erb +3 -2
- data/app/views/catalog/_facet_pagination.html.erb +8 -8
- data/app/views/catalog/_facet_pivot.html.erb +2 -2
- data/app/views/catalog/_facets.html.erb +3 -21
- data/app/views/catalog/_field.json.jbuilder +10 -0
- data/app/views/catalog/{_group_default.html.erb → _group.html.erb} +1 -1
- data/app/views/catalog/_home_text.html.erb +32 -36
- data/app/views/catalog/_index.html.erb +10 -0
- data/app/views/catalog/{_index_header_default.html.erb → _index_header.html.erb} +3 -3
- data/app/views/catalog/_per_page_widget.html.erb +7 -8
- data/app/views/catalog/_previous_next_doc.html.erb +6 -14
- data/app/views/catalog/_results_pagination.html.erb +2 -2
- data/app/views/catalog/_search_form.html.erb +12 -8
- data/app/views/catalog/_search_header.html.erb +0 -3
- data/app/views/catalog/_search_results.html.erb +10 -2
- data/app/views/catalog/_show.html.erb +8 -0
- data/app/views/catalog/{_show_header_default.html.erb → _show_header.html.erb} +0 -0
- data/app/views/catalog/_show_main_content.html.erb +4 -4
- data/app/views/catalog/_show_more_like_this.html.erb +1 -1
- data/app/views/catalog/_show_sidebar.html.erb +10 -8
- data/app/views/catalog/_show_tools.html.erb +10 -21
- data/app/views/catalog/_sms_form.html.erb +8 -4
- data/app/views/catalog/_sort_and_per_page.html.erb +3 -3
- data/app/views/catalog/_sort_widget.html.erb +8 -8
- data/app/views/catalog/_thumbnail.html.erb +5 -0
- data/app/views/catalog/_view_type_group.html.erb +2 -2
- data/app/views/catalog/_zero_results.html.erb +1 -1
- data/app/views/catalog/email.html.erb +5 -3
- data/app/views/catalog/email_success.html.erb +12 -8
- data/app/views/catalog/facet.html.erb +10 -8
- data/app/views/catalog/facet.json.jbuilder +2 -0
- data/app/views/catalog/index.atom.builder +28 -30
- data/app/views/catalog/index.html.erb +9 -11
- data/app/views/catalog/index.json.jbuilder +84 -3
- data/app/views/catalog/index.rss.builder +8 -6
- data/app/views/catalog/opensearch.xml.builder +12 -10
- data/app/views/catalog/show.html.erb +11 -6
- data/app/views/catalog/show.json.jbuilder +21 -0
- data/app/views/catalog/sms.html.erb +3 -1
- data/app/views/catalog/sms_success.html.erb +12 -8
- data/app/views/kaminari/blacklight/_first_page.html.erb +2 -2
- data/app/views/kaminari/blacklight/_gap.html.erb +2 -2
- data/app/views/kaminari/blacklight/_last_page.html.erb +2 -2
- data/app/views/kaminari/blacklight/_next_page.html.erb +5 -5
- data/app/views/kaminari/blacklight/_page.html.erb +5 -3
- data/app/views/kaminari/blacklight/_prev_page.html.erb +4 -4
- data/app/views/kaminari/blacklight_compact/_paginator.html.erb +4 -4
- data/app/views/layouts/blacklight.html.erb +14 -41
- data/app/views/layouts/blacklight/base.html.erb +40 -0
- data/app/views/layouts/catalog_result.html.erb +11 -0
- data/app/views/record_mailer/email_record.text.erb +6 -5
- data/app/views/search_history/index.html.erb +16 -21
- data/app/views/{_flash_msg.html.erb → shared/_flash_msg.html.erb} +5 -3
- data/app/views/shared/_header_navbar.html.erb +8 -13
- data/app/views/shared/_modal.html.erb +6 -0
- data/app/views/shared/_user_util_links.html.erb +22 -0
- data/blacklight.gemspec +8 -12
- data/config/i18n-tasks.yml +17 -0
- data/config/locales/blacklight.de.yml +87 -83
- data/config/locales/blacklight.en.yml +32 -29
- data/config/locales/blacklight.es.yml +31 -28
- data/config/locales/blacklight.fr.yml +33 -35
- data/config/locales/blacklight.hu.yml +226 -0
- data/config/locales/blacklight.it.yml +32 -28
- data/config/locales/blacklight.nl.yml +226 -0
- data/config/locales/blacklight.pt-BR.yml +41 -31
- data/config/locales/blacklight.sq.yml +21 -30
- data/config/locales/blacklight.zh.yml +20 -28
- data/config/routes.rb +2 -10
- data/db/migrate/20140202020202_create_bookmarks.rb +0 -1
- data/db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb +1 -1
- data/lib/blacklight.rb +6 -4
- data/lib/blacklight/abstract_repository.rb +9 -9
- data/lib/blacklight/configuration.rb +106 -88
- data/lib/blacklight/configuration/context.rb +12 -1
- data/lib/blacklight/configuration/facet_field.rb +16 -9
- data/lib/blacklight/configuration/field.rb +32 -3
- data/lib/blacklight/configuration/fields.rb +15 -17
- data/lib/blacklight/configuration/null_field.rb +2 -0
- data/lib/blacklight/configuration/search_field.rb +2 -2
- data/lib/blacklight/configuration/sort_field.rb +2 -2
- data/lib/blacklight/configuration/view_config.rb +4 -0
- data/lib/blacklight/engine.rb +10 -10
- data/lib/blacklight/exceptions.rb +4 -7
- data/lib/blacklight/{utils.rb → nested_open_struct_with_hash_access.rb} +9 -81
- data/lib/blacklight/open_struct_with_hash_access.rb +49 -0
- data/lib/blacklight/parameters.rb +1 -1
- data/lib/blacklight/routes/exportable.rb +1 -3
- data/lib/blacklight/routes/searchable.rb +3 -3
- data/lib/blacklight/runtime_registry.rb +2 -0
- data/lib/blacklight/search_builder.rb +28 -35
- data/lib/blacklight/search_state.rb +10 -8
- data/lib/blacklight/solr.rb +2 -0
- data/{app/models/concerns → lib}/blacklight/solr/document.rb +8 -8
- data/{app/models → lib}/blacklight/solr/facet_paginator.rb +3 -3
- data/lib/blacklight/solr/repository.rb +4 -3
- data/lib/blacklight/solr/request.rb +1 -1
- data/lib/blacklight/solr/response.rb +29 -30
- data/lib/blacklight/solr/response/facets.rb +38 -31
- data/lib/blacklight/solr/response/group.rb +3 -3
- data/lib/blacklight/solr/response/group_response.rb +11 -1
- data/lib/blacklight/solr/response/more_like_this.rb +2 -2
- data/lib/blacklight/solr/response/pagination_methods.rb +12 -0
- data/lib/blacklight/solr/response/response.rb +2 -2
- data/lib/blacklight/solr/response/spelling.rb +4 -3
- data/lib/blacklight/solr/search_builder_behavior.rb +27 -31
- data/lib/blacklight/version.rb +1 -1
- data/lib/generators/blacklight/assets_generator.rb +28 -12
- data/lib/generators/blacklight/controller_generator.rb +4 -5
- data/lib/generators/blacklight/document_generator.rb +1 -1
- data/lib/generators/blacklight/install_generator.rb +15 -34
- data/lib/generators/blacklight/search_builder_generator.rb +1 -1
- data/lib/generators/blacklight/{solr5_generator.rb → solr_generator.rb} +12 -6
- data/{.solr_wrapper.yml → lib/generators/blacklight/templates/.solr_wrapper.yml} +0 -0
- data/lib/generators/blacklight/templates/alternate_controller.rb +4 -4
- data/lib/generators/blacklight/templates/blacklight.scss +0 -2
- data/lib/generators/blacklight/templates/catalog_controller.rb +57 -50
- data/lib/generators/blacklight/templates/config/blacklight.yml +1 -13
- data/{solr → lib/generators/blacklight/templates/solr}/conf/_rest_managed.json +0 -0
- data/{solr → lib/generators/blacklight/templates/solr}/conf/admin-extra.html +0 -0
- data/{solr → lib/generators/blacklight/templates/solr}/conf/elevate.xml +0 -0
- data/{solr → lib/generators/blacklight/templates/solr}/conf/mapping-ISOLatin1Accent.txt +0 -0
- data/{solr → lib/generators/blacklight/templates/solr}/conf/protwords.txt +0 -0
- data/lib/generators/blacklight/templates/solr/conf/schema.xml +388 -0
- data/{solr → lib/generators/blacklight/templates/solr}/conf/scripts.conf +0 -0
- data/lib/generators/blacklight/templates/solr/conf/solrconfig.xml +195 -0
- data/{solr → lib/generators/blacklight/templates/solr}/conf/spellings.txt +0 -0
- data/{solr → lib/generators/blacklight/templates/solr}/conf/stopwords.txt +0 -0
- data/{solr → lib/generators/blacklight/templates/solr}/conf/stopwords_en.txt +0 -0
- data/{solr → lib/generators/blacklight/templates/solr}/conf/synonyms.txt +0 -0
- data/{solr → lib/generators/blacklight/templates/solr}/conf/xslt/example.xsl +0 -0
- data/{solr → lib/generators/blacklight/templates/solr}/conf/xslt/example_atom.xsl +0 -0
- data/{solr → lib/generators/blacklight/templates/solr}/conf/xslt/example_rss.xsl +0 -0
- data/{solr → lib/generators/blacklight/templates/solr}/conf/xslt/luke.xsl +0 -0
- data/lib/generators/blacklight/test_support_generator.rb +10 -10
- data/lib/generators/blacklight/user_generator.rb +5 -6
- data/lib/railties/blacklight.rake +7 -6
- data/package-lock.json +2793 -0
- data/package.json +30 -0
- data/spec/controllers/alternate_controller_spec.rb +5 -4
- data/spec/controllers/application_controller_spec.rb +1 -5
- data/spec/controllers/blacklight/base_spec.rb +6 -3
- data/spec/controllers/blacklight/catalog/component_configuration_spec.rb +11 -7
- data/spec/controllers/blacklight/facet_spec.rb +1 -2
- data/spec/controllers/blacklight/search_fields_spec.rb +25 -34
- data/spec/controllers/bookmarks_controller_spec.rb +17 -13
- data/spec/controllers/catalog_controller_spec.rb +329 -161
- data/spec/controllers/search_history_controller_spec.rb +6 -6
- data/spec/features/alternate_controller_spec.rb +4 -4
- data/spec/features/autocomplete_spec.rb +4 -2
- data/spec/features/bookmarks_spec.rb +10 -10
- data/spec/features/did_you_mean_spec.rb +7 -12
- data/spec/features/facets_spec.rb +38 -17
- data/spec/features/record_view_spec.rb +12 -18
- data/spec/features/search_context_spec.rb +6 -7
- data/spec/features/search_crawler_spec.rb +3 -5
- data/spec/features/search_filters_spec.rb +100 -80
- data/spec/features/search_formats_spec.rb +4 -5
- data/spec/features/search_history_spec.rb +6 -29
- data/spec/features/search_pagination_spec.rb +4 -2
- data/spec/features/search_results_spec.rb +14 -12
- data/spec/features/search_sort_spec.rb +2 -2
- data/spec/features/search_spec.rb +8 -9
- data/spec/features/sitelinks_search_box.rb +4 -4
- data/{solr → spec/fixtures}/sample_solr_documents.yml +688 -688
- data/spec/helpers/{configuration_helper_spec.rb → blacklight/configuration_helper_behavior_spec.rb} +97 -98
- data/spec/helpers/{facets_helper_spec.rb → blacklight/facets_helper_behavior_spec.rb} +82 -73
- data/spec/helpers/{hash_as_hidden_fields_spec.rb → blacklight/hash_as_hidden_fields_behavior_spec.rb} +2 -2
- data/spec/helpers/blacklight/icon_helper_behavior_spec.rb +10 -0
- data/spec/helpers/{layout_helper_spec.rb → blacklight/layout_helper_behavior_spec.rb} +5 -5
- data/spec/helpers/{render_constraints_helper_spec.rb → blacklight/render_constraints_helper_behavior_spec.rb} +10 -6
- data/spec/helpers/blacklight/render_partials_helper_behavior_spec.rb +92 -0
- data/spec/helpers/{search_history_constraints_helper_spec.rb → blacklight/search_history_constraints_helper_behavior_spec.rb} +29 -30
- data/spec/helpers/{suggest_helper_spec.rb → blacklight/suggest_helper_behavior_spec.rb} +9 -2
- data/spec/helpers/{url_helper_spec.rb → blacklight/url_helper_behavior_spec.rb} +61 -54
- data/spec/helpers/blacklight_helper_spec.rb +104 -151
- data/spec/helpers/catalog_helper_spec.rb +89 -105
- data/spec/i18n_spec.rb +18 -0
- data/spec/integration/generators/blacklight/{solr5_generator_spec.rb → solr_generator_spec.rb} +21 -13
- data/spec/lib/blacklight/configuration/facet_field_spec.rb +13 -0
- data/spec/lib/blacklight/configuration/field_spec.rb +15 -0
- data/spec/lib/blacklight/nested_open_struct_with_hash_access_spec.rb +17 -0
- data/spec/lib/blacklight/open_struct_with_hash_access_spec.rb +148 -0
- data/spec/lib/blacklight/parameters_spec.rb +4 -2
- data/spec/lib/blacklight/search_state_spec.rb +53 -36
- data/spec/lib/blacklight_spec.rb +14 -15
- data/spec/lib/tasks/blacklight_task_spec.rb +4 -6
- data/spec/models/blacklight/configurable_spec.rb +24 -27
- data/spec/models/blacklight/configuration/context_spec.rb +9 -10
- data/spec/models/blacklight/configuration_spec.rb +188 -165
- data/spec/models/blacklight/document/active_model_shim_spec.rb +15 -6
- data/spec/models/blacklight/document/cache_key_spec.rb +10 -3
- data/spec/models/blacklight/document/dublin_core_spec.rb +17 -20
- data/spec/models/blacklight/document/email_spec.rb +10 -10
- data/spec/models/blacklight/document/sms_spec.rb +10 -10
- data/spec/models/blacklight/document_spec.rb +10 -22
- data/spec/models/blacklight/facet_paginator_spec.rb +40 -30
- data/spec/models/blacklight/icon_spec.rb +82 -0
- data/spec/models/blacklight/search_builder_spec.rb +41 -26
- data/spec/models/blacklight/solr/document_spec.rb +224 -216
- data/spec/models/blacklight/solr/facet_paginator_spec.rb +6 -4
- data/spec/models/blacklight/solr/repository_spec.rb +50 -42
- data/spec/models/blacklight/solr/request_spec.rb +17 -18
- data/spec/models/blacklight/solr/response/facets_spec.rb +97 -60
- data/spec/models/blacklight/solr/response/group_response_spec.rb +29 -22
- data/spec/models/blacklight/solr/response/group_spec.rb +18 -25
- data/spec/models/blacklight/solr/response_spec.rb +72 -68
- data/spec/models/blacklight/solr/search_builder_spec.rb +150 -164
- data/spec/models/blacklight/suggest/response_spec.rb +2 -1
- data/spec/models/blacklight/suggest_search_spec.rb +4 -4
- data/spec/models/blacklight/user_spec.rb +9 -11
- data/spec/models/bookmark_spec.rb +7 -6
- data/spec/models/record_mailer_spec.rb +23 -21
- data/spec/models/search_spec.rb +19 -18
- data/spec/models/solr_document_spec.rb +33 -5
- data/spec/presenters/blacklight/document_presenter_spec.rb +86 -0
- data/spec/presenters/{index_presenter_spec.rb → blacklight/index_presenter_spec.rb} +25 -62
- data/spec/presenters/blacklight/json_presenter_spec.rb +59 -0
- data/spec/presenters/blacklight/link_alternate_presenter_spec.rb +3 -0
- data/spec/presenters/blacklight/search_bar_presenter_spec.rb +94 -0
- data/spec/presenters/{show_presenter_spec.rb → blacklight/show_presenter_spec.rb} +47 -62
- data/spec/presenters/pipeline_spec.rb +43 -16
- data/spec/presenters/thumbnail_presenter_spec.rb +174 -0
- data/spec/routing/catalog_routing_spec.rb +13 -31
- data/spec/services/blacklight/search_service_spec.rb +495 -0
- data/spec/spec_helper.rb +12 -24
- data/spec/support/features.rb +1 -1
- data/spec/support/features/session_helpers.rb +4 -4
- data/spec/test_app_templates/Gemfile.extra +2 -5
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +12 -13
- data/spec/views/catalog/_constraints.html.erb_spec.rb +3 -6
- data/spec/views/catalog/_constraints_element.html.erb_spec.rb +17 -13
- data/spec/views/catalog/_document.html.erb_spec.rb +11 -11
- data/spec/views/catalog/_document_list.html.erb_spec.rb +2 -1
- data/spec/views/catalog/_facet_group.html.erb_spec.rb +82 -0
- data/spec/views/catalog/_facet_index_navigation.html.erb_spec.rb +5 -5
- data/spec/views/catalog/_facet_layout.html.erb_spec.rb +6 -6
- data/spec/views/catalog/_facets.html.erb_spec.rb +6 -46
- data/spec/views/catalog/{_index_default.erb_spec.rb → _index.html.erb_spec.rb} +14 -15
- data/spec/views/catalog/{_index_header_default.html.erb_spec.rb → _index_header.html.erb_spec.rb} +6 -9
- data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +7 -30
- data/spec/views/catalog/_search_header.erb_spec.rb +1 -3
- data/spec/views/catalog/{_show_default.erb_spec.rb → _show.html.erb_spec.rb} +13 -14
- data/spec/views/catalog/_show_sidebar.erb_spec.rb +7 -10
- data/spec/views/catalog/_show_tools.html.erb_spec.rb +6 -6
- data/spec/views/catalog/_sort_and_per_page.html.erb_spec.rb +1 -2
- data/spec/views/catalog/_sort_widget.html.erb_spec.rb +3 -1
- data/spec/views/catalog/{_thumbnail_default.erb_spec.rb → _thumbnail.html.erb_spec.rb} +7 -9
- data/spec/views/catalog/_view_type_group.html.erb_spec.rb +12 -10
- data/spec/views/catalog/email_success.html.erb_spec.rb +8 -0
- data/spec/views/catalog/facet.html.erb_spec.rb +4 -3
- data/spec/views/catalog/facet.json.jbuilder_spec.rb +3 -2
- data/spec/views/catalog/index.atom.builder_spec.rb +11 -6
- data/spec/views/catalog/index.html.erb_spec.rb +6 -8
- data/spec/views/catalog/index.json.jbuilder_spec.rb +119 -26
- data/spec/views/catalog/opensearch.xml.builder_spec.rb +1 -1
- data/spec/views/catalog/show.html.erb_spec.rb +8 -8
- data/spec/views/catalog/show.json.jbuilder_spec.rb +40 -0
- data/spec/views/catalog/sms_success.html.erb_spec.rb +8 -0
- data/spec/views/{_user_util_links.html.erb_spec.rb → shared/_user_util_links.html.erb_spec.rb} +4 -7
- data/tasks/blacklight.rake +9 -12
- data/template.demo.rb +4 -12
- metadata +178 -218
- data/app/assets/javascripts/blacklight/autofocus.js +0 -16
- data/app/assets/javascripts/blacklight/bookmark_toggle.js +0 -23
- data/app/assets/javascripts/blacklight/checkbox_submit.js +0 -139
- data/app/assets/javascripts/blacklight/collapsable.js +0 -9
- data/app/assets/javascripts/blacklight/core.js +0 -30
- data/app/assets/javascripts/blacklight/facet_load.js +0 -23
- data/app/assets/javascripts/blacklight/search_context.js +0 -42
- data/app/controllers/concerns/blacklight/request_builders.rb +0 -77
- data/app/controllers/concerns/blacklight/saved_searches.rb +0 -70
- data/app/controllers/concerns/blacklight/search_helper.rb +0 -161
- data/app/controllers/concerns/blacklight/suggest.rb +0 -25
- data/app/controllers/saved_searches_controller.rb +0 -4
- data/app/controllers/suggest_controller.rb +0 -4
- data/app/helpers/blacklight/deprecated_url_helper_behavior.rb +0 -57
- data/app/helpers/blacklight/render_partials_helper.rb +0 -205
- data/app/helpers/blacklight_configuration_helper.rb +0 -4
- data/app/helpers/blacklight_url_helper.rb +0 -4
- data/app/helpers/component_helper.rb +0 -4
- data/app/helpers/facets_helper.rb +0 -4
- data/app/helpers/hash_as_hidden_fields_helper.rb +0 -4
- data/app/helpers/layout_helper.rb +0 -4
- data/app/helpers/render_constraints_helper.rb +0 -4
- data/app/helpers/search_history_constraints_helper.rb +0 -4
- data/app/helpers/suggest_helper.rb +0 -4
- data/app/models/concerns/blacklight/solr/document/more_like_this.rb +0 -6
- data/app/views/_user_util_links.html.erb +0 -26
- data/app/views/blacklight/nav/_saved_searches.html.erb +0 -1
- data/app/views/catalog/_index_default.html.erb +0 -12
- data/app/views/catalog/_show_default.html.erb +0 -10
- data/app/views/catalog/_thumbnail_default.html.erb +0 -5
- data/app/views/saved_searches/index.html.erb +0 -32
- data/app/views/shared/_ajax_modal.html.erb +0 -6
- data/lib/generators/blacklight/solr4_generator.rb +0 -31
- data/lib/generators/blacklight/templates/config/jetty.yml +0 -13
- data/solr/conf/schema.xml +0 -629
- data/solr/conf/solrconfig.xml +0 -411
- data/spec/controllers/blacklight/search_helper_spec.rb +0 -489
- data/spec/controllers/saved_searches_controller_spec.rb +0 -32
- data/spec/controllers/suggest_controller_spec.rb +0 -17
- data/spec/features/saved_searches_spec.rb +0 -47
- data/spec/helpers/deprecated_url_helper_behavior_spec.rb +0 -101
- data/spec/lib/blacklight/utils_spec.rb +0 -167
- data/spec/models/blacklight/solr/document/more_like_this_spec.rb +0 -18
- data/spec/presenters/document_presenter_spec.rb +0 -438
- data/spec/support/backport_test.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 958a6b0c5bfc8cfdd7fa31fe600d5bc77219f389b850453ade7a7a7aef6f8229
|
4
|
+
data.tar.gz: f6a49835143c4126550be6f937e7328e002e2c63f20dcb36adfa77150d6e60a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fce42f491e0dd73fc1f0f71d051d0afc8c324ac07b4fbaf9f0d728e0bdb0bde657000ef044e48b28fad008015b29c4dc0e73c47671677ae37cf2e38a06137741
|
7
|
+
data.tar.gz: eb4d53904c2d1a309aef41fbcb166c18fabde6d0a8eaf8851df1032c783ea4b34af8115ffb91464f9aaed907078f42cacb644d12770f14fc301e9c008c3e4648
|
data/.gitignore
CHANGED
data/.jshintrc
CHANGED
data/.npmignore
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
.*
|
2
|
+
Gemfile
|
3
|
+
Rakefile
|
4
|
+
Vagrantfile
|
5
|
+
app/assets/images
|
6
|
+
app/controllers
|
7
|
+
app/helpers
|
8
|
+
app/models
|
9
|
+
app/presenters
|
10
|
+
app/services
|
11
|
+
app/views
|
12
|
+
blacklight.gemspec
|
13
|
+
config/locales
|
14
|
+
config/routes.rb
|
15
|
+
coverage
|
16
|
+
db
|
17
|
+
lib
|
18
|
+
pkg
|
19
|
+
provision.sh
|
20
|
+
solr
|
21
|
+
spec
|
22
|
+
tasks
|
23
|
+
template.demo.rb
|
data/.rubocop.yml
CHANGED
@@ -5,36 +5,60 @@ inherit_from:
|
|
5
5
|
|
6
6
|
AllCops:
|
7
7
|
DisplayCopNames: true
|
8
|
+
TargetRubyVersion: 2.3
|
8
9
|
Exclude:
|
9
10
|
- "lib/generators/blacklight/templates/**/*"
|
10
|
-
- "spec/**/*"
|
11
11
|
- "blacklight.gemspec"
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
# engine_cart block includes conditional, not duplication
|
14
|
+
Bundler/DuplicatedGem:
|
15
|
+
Exclude:
|
16
|
+
- 'Gemfile'
|
17
|
+
|
18
|
+
# engine_cart block is following default Rails order
|
19
|
+
Bundler/OrderedGems:
|
20
|
+
Exclude:
|
21
|
+
- 'Gemfile'
|
22
|
+
|
23
|
+
Layout/IndentationConsistency:
|
24
|
+
EnforcedStyle: normal
|
25
|
+
|
26
|
+
Metrics/BlockLength:
|
27
|
+
Exclude:
|
28
|
+
- "app/views/catalog/index.json.jbuilder"
|
29
|
+
- "lib/railties/blacklight.rake"
|
30
|
+
- "tasks/blacklight.rake"
|
31
|
+
- "spec/**/*"
|
32
|
+
|
33
|
+
Metrics/ClassLength:
|
34
|
+
Exclude:
|
35
|
+
- "lib/blacklight/configuration.rb"
|
15
36
|
|
16
37
|
Metrics/LineLength:
|
17
38
|
Max: 200
|
39
|
+
Exclude:
|
40
|
+
- 'spec/**/*'
|
18
41
|
|
19
|
-
|
42
|
+
Naming/HeredocDelimiterNaming:
|
20
43
|
Enabled: false
|
21
44
|
|
22
|
-
|
23
|
-
|
45
|
+
Naming/PredicateName:
|
46
|
+
NamePrefixBlacklist:
|
47
|
+
- is_
|
48
|
+
|
49
|
+
Rails:
|
50
|
+
Enabled: true
|
24
51
|
|
25
52
|
Rails/OutputSafety:
|
26
53
|
Enabled: false
|
27
54
|
|
28
|
-
|
29
|
-
|
30
|
-
|
55
|
+
# https://github.com/rubocop-hq/rubocop/issues/6439
|
56
|
+
Style/AccessModifierDeclarations:
|
57
|
+
Enabled: false
|
31
58
|
|
32
|
-
|
33
|
-
Bundler/DuplicatedGem:
|
59
|
+
Style/MissingRespondToMissing:
|
34
60
|
Exclude:
|
35
|
-
- '
|
61
|
+
- 'lib/blacklight/nested_open_struct_with_hash_access.rb'
|
36
62
|
|
37
|
-
|
38
|
-
|
39
|
-
Exclude:
|
40
|
-
- 'Gemfile'
|
63
|
+
Style/StringLiterals:
|
64
|
+
Enabled: false
|
data/.rubocop_todo.yml
CHANGED
@@ -1,157 +1,460 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2019-09-11 10:59:32 -0500 using RuboCop version 0.63.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count:
|
9
|
+
# Offense count: 4
|
10
10
|
# Cop supports --auto-correct.
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
Capybara/CurrentPathExpectation:
|
12
|
+
Exclude:
|
13
|
+
- 'spec/features/alternate_controller_spec.rb'
|
14
|
+
|
15
|
+
# Offense count: 2
|
16
|
+
# Cop supports --auto-correct.
|
17
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
18
|
+
# SupportedStyles: with_first_parameter, with_fixed_indentation
|
19
|
+
Layout/AlignParameters:
|
20
|
+
Exclude:
|
21
|
+
- 'app/views/catalog/_document.atom.builder'
|
22
|
+
|
23
|
+
# Offense count: 8
|
24
|
+
# Cop supports --auto-correct.
|
25
|
+
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
|
26
|
+
# SupportedStyles: case, end
|
27
|
+
Layout/CaseIndentation:
|
14
28
|
Exclude:
|
15
|
-
- 'app/controllers/concerns/blacklight/token_based_user.rb'
|
16
29
|
- 'app/helpers/blacklight/catalog_helper_behavior.rb'
|
17
|
-
- 'app/helpers/blacklight/deprecated_url_helper_behavior.rb'
|
18
|
-
- 'app/helpers/blacklight/facets_helper_behavior.rb'
|
19
|
-
- 'app/helpers/blacklight/render_partials_helper.rb'
|
20
|
-
- 'app/helpers/blacklight/url_helper_behavior.rb'
|
21
|
-
- 'app/models/concerns/blacklight/configurable.rb'
|
22
30
|
- 'app/presenters/blacklight/index_presenter.rb'
|
23
31
|
- 'lib/blacklight/configuration/fields.rb'
|
24
|
-
- 'lib/blacklight/search_builder.rb'
|
25
|
-
- 'lib/blacklight/solr/response/facets.rb'
|
26
|
-
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
27
32
|
|
28
|
-
# Offense count:
|
33
|
+
# Offense count: 2
|
29
34
|
# Cop supports --auto-correct.
|
30
|
-
|
31
|
-
Lint/UnusedBlockArgument:
|
35
|
+
Layout/ClosingParenthesisIndentation:
|
32
36
|
Exclude:
|
33
|
-
- 'app/
|
34
|
-
- 'app/helpers/blacklight/configuration_helper_behavior.rb'
|
35
|
-
- 'app/models/concerns/blacklight/document/dublin_core.rb'
|
36
|
-
- 'lib/blacklight/configuration/fields.rb'
|
37
|
-
- 'lib/blacklight/engine.rb'
|
38
|
-
- 'lib/blacklight/parameters.rb'
|
39
|
-
- 'lib/blacklight/solr/response/facets.rb'
|
40
|
-
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
41
|
-
- 'lib/railties/blacklight.rake'
|
42
|
-
- 'tasks/blacklight.rake'
|
37
|
+
- 'app/views/catalog/index.atom.builder'
|
43
38
|
|
44
|
-
# Offense count:
|
39
|
+
# Offense count: 108
|
45
40
|
# Cop supports --auto-correct.
|
46
|
-
|
47
|
-
|
41
|
+
Layout/EmptyLineAfterMagicComment:
|
42
|
+
Enabled: false
|
43
|
+
|
44
|
+
# Offense count: 8
|
45
|
+
# Cop supports --auto-correct.
|
46
|
+
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
47
|
+
Layout/ExtraSpacing:
|
48
48
|
Exclude:
|
49
|
-
- 'app/helpers/blacklight/blacklight_helper_behavior.rb'
|
50
49
|
- 'app/helpers/blacklight/catalog_helper_behavior.rb'
|
51
|
-
- 'app/
|
52
|
-
- 'app/
|
53
|
-
- 'app/
|
50
|
+
- 'app/models/concerns/blacklight/document/dublin_core.rb'
|
51
|
+
- 'app/models/record_mailer.rb'
|
52
|
+
- 'app/views/catalog/index.atom.builder'
|
53
|
+
- 'config/routes.rb'
|
54
|
+
|
55
|
+
# Offense count: 2
|
56
|
+
# Cop supports --auto-correct.
|
57
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
58
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
59
|
+
Layout/IndentHash:
|
60
|
+
Exclude:
|
61
|
+
- 'lib/blacklight/configuration.rb'
|
62
|
+
|
63
|
+
# Offense count: 6
|
64
|
+
# Cop supports --auto-correct.
|
65
|
+
Layout/LeadingCommentSpace:
|
66
|
+
Exclude:
|
67
|
+
- 'app/models/blacklight/facet_paginator.rb'
|
68
|
+
- 'app/models/concerns/blacklight/configurable.rb'
|
69
|
+
- 'app/models/concerns/blacklight/document/export.rb'
|
70
|
+
- 'app/views/catalog/_document.atom.builder'
|
71
|
+
|
72
|
+
# Offense count: 1
|
73
|
+
# Cop supports --auto-correct.
|
74
|
+
Layout/MultilineBlockLayout:
|
75
|
+
Exclude:
|
76
|
+
- 'lib/generators/blacklight/test_support_generator.rb'
|
77
|
+
|
78
|
+
# Offense count: 2
|
79
|
+
# Cop supports --auto-correct.
|
80
|
+
# Configuration parameters: EnforcedStyle.
|
81
|
+
# SupportedStyles: symmetrical, new_line, same_line
|
82
|
+
Layout/MultilineMethodCallBraceLayout:
|
83
|
+
Exclude:
|
84
|
+
- 'app/views/catalog/index.atom.builder'
|
85
|
+
|
86
|
+
# Offense count: 9
|
87
|
+
# Cop supports --auto-correct.
|
88
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
89
|
+
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
90
|
+
Layout/MultilineMethodCallIndentation:
|
91
|
+
Exclude:
|
92
|
+
- 'lib/blacklight/search_builder.rb'
|
93
|
+
|
94
|
+
# Offense count: 11
|
95
|
+
# Cop supports --auto-correct.
|
96
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
97
|
+
# SupportedStyles: aligned, indented
|
98
|
+
Layout/MultilineOperationIndentation:
|
99
|
+
Exclude:
|
54
100
|
- 'app/helpers/blacklight/facets_helper_behavior.rb'
|
55
|
-
- 'app/helpers/blacklight/render_partials_helper.rb'
|
56
101
|
- 'app/helpers/blacklight/search_history_constraints_helper_behavior.rb'
|
57
|
-
- '
|
58
|
-
- 'lib/blacklight/abstract_repository.rb'
|
59
|
-
- 'lib/blacklight/configuration/field.rb'
|
60
|
-
- 'lib/blacklight/search_builder.rb'
|
102
|
+
- 'lib/blacklight/configuration/context.rb'
|
61
103
|
- 'lib/blacklight/search_state.rb'
|
104
|
+
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
62
105
|
|
63
|
-
# Offense count:
|
64
|
-
|
106
|
+
# Offense count: 2
|
107
|
+
# Cop supports --auto-correct.
|
108
|
+
Layout/SpaceAfterComma:
|
65
109
|
Exclude:
|
66
|
-
- 'app/
|
67
|
-
- 'app/
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
110
|
+
- 'app/views/catalog/index.atom.builder'
|
111
|
+
- 'app/views/catalog/opensearch.xml.builder'
|
112
|
+
|
113
|
+
# Offense count: 1
|
114
|
+
# Cop supports --auto-correct.
|
115
|
+
# Configuration parameters: AllowForAlignment.
|
116
|
+
Layout/SpaceBeforeFirstArg:
|
117
|
+
Exclude:
|
118
|
+
- 'app/views/catalog/index.atom.builder'
|
119
|
+
|
120
|
+
# Offense count: 7
|
121
|
+
# Cop supports --auto-correct.
|
122
|
+
# Configuration parameters: EnforcedStyle.
|
123
|
+
# SupportedStyles: space, no_space
|
124
|
+
Layout/SpaceInsideParens:
|
125
|
+
Exclude:
|
126
|
+
- 'app/views/catalog/_document.rss.builder'
|
127
|
+
- 'app/views/catalog/index.atom.builder'
|
128
|
+
|
129
|
+
# Offense count: 1
|
130
|
+
# Cop supports --auto-correct.
|
131
|
+
# Configuration parameters: AllowInHeredoc.
|
132
|
+
Layout/TrailingWhitespace:
|
133
|
+
Exclude:
|
134
|
+
- 'app/views/catalog/_document.rss.builder'
|
135
|
+
|
136
|
+
# Offense count: 1
|
137
|
+
Lint/AmbiguousBlockAssociation:
|
138
|
+
Exclude:
|
139
|
+
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
140
|
+
|
141
|
+
# Offense count: 8
|
142
|
+
Lint/AmbiguousOperator:
|
143
|
+
Exclude:
|
144
|
+
- 'spec/helpers/blacklight/facets_helper_behavior_spec.rb'
|
145
|
+
- 'spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb'
|
146
|
+
- 'spec/helpers/blacklight/url_helper_behavior_spec.rb'
|
147
|
+
- 'spec/helpers/blacklight_helper_spec.rb'
|
148
|
+
- 'spec/models/blacklight/facet_paginator_spec.rb'
|
149
|
+
- 'spec/models/blacklight/solr/search_builder_spec.rb'
|
150
|
+
- 'spec/services/blacklight/search_service_spec.rb'
|
151
|
+
|
152
|
+
# Offense count: 55
|
153
|
+
Lint/AmbiguousRegexpLiteral:
|
154
|
+
Exclude:
|
155
|
+
- 'spec/controllers/catalog_controller_spec.rb'
|
156
|
+
- 'spec/features/alternate_controller_spec.rb'
|
157
|
+
- 'spec/helpers/blacklight/url_helper_behavior_spec.rb'
|
158
|
+
- 'spec/helpers/catalog_helper_spec.rb'
|
159
|
+
- 'spec/models/record_mailer_spec.rb'
|
160
|
+
- 'spec/views/catalog/_document.html.erb_spec.rb'
|
161
|
+
- 'spec/views/catalog/_search_header.erb_spec.rb'
|
162
|
+
- 'spec/views/catalog/_sort_and_per_page.html.erb_spec.rb'
|
163
|
+
- 'spec/views/catalog/_thumbnail.html.erb_spec.rb'
|
164
|
+
- 'spec/views/catalog/index.html.erb_spec.rb'
|
165
|
+
- 'spec/views/catalog/show.html.erb_spec.rb'
|
166
|
+
|
167
|
+
# Offense count: 30
|
168
|
+
Lint/ParenthesesAsGroupedExpression:
|
169
|
+
Exclude:
|
170
|
+
- 'spec/controllers/catalog_controller_spec.rb'
|
171
|
+
- 'spec/features/did_you_mean_spec.rb'
|
172
|
+
- 'spec/features/search_filters_spec.rb'
|
173
|
+
- 'spec/features/search_pagination_spec.rb'
|
174
|
+
- 'spec/features/search_spec.rb'
|
175
|
+
- 'spec/lib/blacklight/search_state_spec.rb'
|
176
|
+
- 'spec/models/blacklight/solr/repository_spec.rb'
|
177
|
+
|
178
|
+
# Offense count: 2
|
179
|
+
Lint/ShadowingOuterLocalVariable:
|
180
|
+
Exclude:
|
181
|
+
- 'spec/models/blacklight/configuration_spec.rb'
|
182
|
+
|
183
|
+
# Offense count: 1
|
184
|
+
Lint/UselessComparison:
|
185
|
+
Exclude:
|
186
|
+
- 'spec/models/blacklight/document/active_model_shim_spec.rb'
|
74
187
|
|
75
|
-
# Offense count:
|
188
|
+
# Offense count: 58
|
76
189
|
Metrics/AbcSize:
|
77
|
-
Max:
|
190
|
+
Max: 49
|
78
191
|
|
79
|
-
# Offense count:
|
192
|
+
# Offense count: 2
|
80
193
|
# Configuration parameters: CountComments, ExcludedMethods.
|
194
|
+
# ExcludedMethods: refine
|
81
195
|
Metrics/BlockLength:
|
82
|
-
Max:
|
196
|
+
Max: 30
|
83
197
|
|
84
198
|
# Offense count: 1
|
85
199
|
# Configuration parameters: CountBlocks.
|
86
200
|
Metrics/BlockNesting:
|
87
201
|
Max: 4
|
88
202
|
|
203
|
+
# Offense count: 2
|
89
204
|
# Configuration parameters: CountComments.
|
90
205
|
Metrics/ClassLength:
|
91
|
-
Max:
|
92
|
-
Exclude:
|
93
|
-
- 'lib/blacklight/configuration.rb'
|
94
|
-
- 'lib/blacklight/search_builder.rb'
|
95
|
-
- 'lib/blacklight/search_state.rb'
|
206
|
+
Max: 169
|
96
207
|
|
97
|
-
# Offense count:
|
208
|
+
# Offense count: 19
|
98
209
|
Metrics/CyclomaticComplexity:
|
99
210
|
Max: 12
|
100
211
|
|
101
|
-
# Offense count:
|
102
|
-
# Configuration parameters: CountComments.
|
212
|
+
# Offense count: 48
|
213
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
103
214
|
Metrics/MethodLength:
|
104
|
-
Max:
|
105
|
-
Exclude:
|
106
|
-
- 'lib/blacklight/configuration.rb'
|
215
|
+
Max: 35
|
107
216
|
|
108
|
-
# Offense count:
|
217
|
+
# Offense count: 8
|
109
218
|
# Configuration parameters: CountComments.
|
110
219
|
Metrics/ModuleLength:
|
111
|
-
Max:
|
112
|
-
Exclude:
|
113
|
-
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
220
|
+
Max: 210
|
114
221
|
|
115
222
|
# Offense count: 1
|
116
223
|
# Configuration parameters: CountKeywordArgs.
|
117
224
|
Metrics/ParameterLists:
|
118
225
|
Max: 6
|
119
226
|
|
120
|
-
# Offense count:
|
227
|
+
# Offense count: 16
|
121
228
|
Metrics/PerceivedComplexity:
|
122
229
|
Max: 14
|
123
230
|
|
124
|
-
# Offense count:
|
125
|
-
|
231
|
+
# Offense count: 4
|
232
|
+
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
233
|
+
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
234
|
+
Naming/MemoizedInstanceVariableName:
|
126
235
|
Exclude:
|
127
|
-
- 'app/
|
236
|
+
- 'app/helpers/blacklight/blacklight_helper_behavior.rb'
|
237
|
+
- 'app/helpers/blacklight/render_partials_helper_behavior.rb'
|
238
|
+
- 'app/models/concerns/blacklight/document/semantic_fields.rb'
|
239
|
+
- 'lib/blacklight/solr/response.rb'
|
128
240
|
|
129
|
-
# Offense count:
|
130
|
-
# Configuration parameters:
|
131
|
-
#
|
132
|
-
|
241
|
+
# Offense count: 14
|
242
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
243
|
+
# AllowedNames: io, id, to, by, on, in, at, ip, db
|
244
|
+
Naming/UncommunicativeMethodParamName:
|
133
245
|
Exclude:
|
134
|
-
- 'app/
|
246
|
+
- 'app/models/blacklight/facet_paginator.rb'
|
247
|
+
- 'app/models/concerns/blacklight/document.rb'
|
248
|
+
- 'app/presenters/blacklight/rendering/link_to_facet.rb'
|
249
|
+
- 'lib/blacklight/nested_open_struct_with_hash_access.rb'
|
250
|
+
- 'lib/blacklight/search_state.rb'
|
251
|
+
- 'lib/blacklight/solr/document.rb'
|
252
|
+
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
253
|
+
- 'spec/features/search_context_spec.rb'
|
254
|
+
- 'spec/features/search_results_spec.rb'
|
135
255
|
|
136
|
-
# Offense count:
|
256
|
+
# Offense count: 16
|
257
|
+
# Configuration parameters: EnforcedStyle.
|
258
|
+
# SupportedStyles: snake_case, normalcase, non_integer
|
259
|
+
Naming/VariableNumber:
|
260
|
+
Exclude:
|
261
|
+
- 'spec/views/catalog/_facets.html.erb_spec.rb'
|
262
|
+
- 'spec/views/catalog/_index.html.erb_spec.rb'
|
263
|
+
- 'spec/views/catalog/_show.html.erb_spec.rb'
|
264
|
+
|
265
|
+
# Offense count: 1
|
137
266
|
# Cop supports --auto-correct.
|
138
|
-
|
267
|
+
# Configuration parameters: AutoCorrect.
|
268
|
+
Performance/TimesMap:
|
139
269
|
Exclude:
|
140
|
-
- '
|
141
|
-
- 'lib/railties/blacklight.rake'
|
270
|
+
- 'spec/views/catalog/index.atom.builder_spec.rb'
|
142
271
|
|
143
272
|
# Offense count: 2
|
144
|
-
|
145
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
146
|
-
# SupportedStyles: outdent, indent
|
147
|
-
Style/AccessModifierIndentation:
|
273
|
+
Performance/UnfreezeString:
|
148
274
|
Exclude:
|
149
|
-
- '
|
150
|
-
- '
|
275
|
+
- 'lib/generators/blacklight/install_generator.rb'
|
276
|
+
- 'spec/helpers/blacklight_helper_spec.rb'
|
277
|
+
|
278
|
+
# Offense count: 9
|
279
|
+
RSpec/BeforeAfterAll:
|
280
|
+
Exclude:
|
281
|
+
- 'spec/spec_helper.rb'
|
282
|
+
- 'spec/rails_helper.rb'
|
283
|
+
- 'spec/support/**/*.rb'
|
284
|
+
- 'spec/controllers/blacklight/search_fields_spec.rb'
|
285
|
+
- 'spec/controllers/search_history_controller_spec.rb'
|
286
|
+
- 'spec/helpers/blacklight/search_history_constraints_helper_behavior_spec.rb'
|
287
|
+
- 'spec/models/blacklight/configurable_spec.rb'
|
288
|
+
- 'spec/models/blacklight/document/dublin_core_spec.rb'
|
289
|
+
- 'spec/models/blacklight/document/email_spec.rb'
|
290
|
+
- 'spec/models/blacklight/document/sms_spec.rb'
|
291
|
+
- 'spec/models/blacklight/solr/document_spec.rb'
|
292
|
+
|
293
|
+
# Offense count: 71
|
294
|
+
# Configuration parameters: Prefixes.
|
295
|
+
# Prefixes: when, with, without
|
296
|
+
RSpec/ContextWording:
|
297
|
+
Enabled: false
|
298
|
+
|
299
|
+
# Offense count: 54
|
300
|
+
RSpec/DescribeClass:
|
301
|
+
Enabled: false
|
302
|
+
|
303
|
+
# Offense count: 1
|
304
|
+
# Configuration parameters: CustomIncludeMethods.
|
305
|
+
RSpec/EmptyExampleGroup:
|
306
|
+
Exclude:
|
307
|
+
- 'spec/models/blacklight/solr/search_builder_spec.rb'
|
308
|
+
|
309
|
+
# Offense count: 127
|
310
|
+
# Configuration parameters: Max.
|
311
|
+
RSpec/ExampleLength:
|
312
|
+
Enabled: false
|
313
|
+
|
314
|
+
# Offense count: 15
|
315
|
+
RSpec/ExpectInHook:
|
316
|
+
Exclude:
|
317
|
+
- 'spec/controllers/catalog_controller_spec.rb'
|
318
|
+
- 'spec/helpers/blacklight/configuration_helper_behavior_spec.rb'
|
319
|
+
- 'spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb'
|
320
|
+
- 'spec/helpers/blacklight/suggest_helper_behavior_spec.rb'
|
321
|
+
- 'spec/helpers/catalog_helper_spec.rb'
|
322
|
+
|
323
|
+
# Offense count: 5
|
324
|
+
# Configuration parameters: CustomTransform, IgnoreMethods.
|
325
|
+
RSpec/FilePath:
|
326
|
+
Exclude:
|
327
|
+
- 'spec/controllers/blacklight/catalog/component_configuration_spec.rb'
|
328
|
+
- 'spec/helpers/blacklight/hash_as_hidden_fields_behavior_spec.rb'
|
329
|
+
- 'spec/models/blacklight/solr/search_builder_spec.rb'
|
330
|
+
- 'spec/presenters/pipeline_spec.rb'
|
331
|
+
- 'spec/presenters/thumbnail_presenter_spec.rb'
|
332
|
+
|
333
|
+
# Offense count: 196
|
334
|
+
# Configuration parameters: AssignmentOnly.
|
335
|
+
RSpec/InstanceVariable:
|
336
|
+
Enabled: false
|
337
|
+
|
338
|
+
# Offense count: 4
|
339
|
+
RSpec/IteratedExpectation:
|
340
|
+
Exclude:
|
341
|
+
- 'spec/models/blacklight/solr/response/group_response_spec.rb'
|
342
|
+
- 'spec/models/blacklight/solr/response/group_spec.rb'
|
343
|
+
- 'spec/models/blacklight/solr/response_spec.rb'
|
344
|
+
|
345
|
+
# Offense count: 17
|
346
|
+
RSpec/LeakyConstantDeclaration:
|
347
|
+
Exclude:
|
348
|
+
- 'spec/controllers/blacklight/search_fields_spec.rb'
|
349
|
+
- 'spec/controllers/bookmarks_controller_spec.rb'
|
350
|
+
- 'spec/controllers/catalog_controller_spec.rb'
|
351
|
+
- 'spec/models/blacklight/configurable_spec.rb'
|
352
|
+
- 'spec/models/blacklight/document/active_model_shim_spec.rb'
|
353
|
+
- 'spec/models/blacklight/document_spec.rb'
|
354
|
+
- 'spec/models/blacklight/solr/document_spec.rb'
|
355
|
+
- 'spec/presenters/blacklight/show_presenter_spec.rb'
|
356
|
+
|
357
|
+
# Offense count: 8
|
358
|
+
RSpec/MessageChain:
|
359
|
+
Exclude:
|
360
|
+
- 'spec/controllers/bookmarks_controller_spec.rb'
|
361
|
+
- 'spec/presenters/blacklight/show_presenter_spec.rb'
|
362
|
+
- 'spec/views/shared/_user_util_links.html.erb_spec.rb'
|
363
|
+
|
364
|
+
# Offense count: 67
|
365
|
+
# Configuration parameters: EnforcedStyle.
|
366
|
+
# SupportedStyles: have_received, receive
|
367
|
+
RSpec/MessageSpies:
|
368
|
+
Exclude:
|
369
|
+
- 'spec/controllers/catalog_controller_spec.rb'
|
370
|
+
- 'spec/helpers/blacklight/configuration_helper_behavior_spec.rb'
|
371
|
+
- 'spec/helpers/blacklight/facets_helper_behavior_spec.rb'
|
372
|
+
- 'spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb'
|
373
|
+
- 'spec/helpers/blacklight/suggest_helper_behavior_spec.rb'
|
374
|
+
- 'spec/helpers/blacklight/url_helper_behavior_spec.rb'
|
375
|
+
- 'spec/helpers/blacklight_helper_spec.rb'
|
376
|
+
- 'spec/helpers/catalog_helper_spec.rb'
|
377
|
+
- 'spec/lib/blacklight/configuration/facet_field_spec.rb'
|
378
|
+
- 'spec/models/blacklight/search_builder_spec.rb'
|
379
|
+
- 'spec/models/blacklight/suggest_search_spec.rb'
|
380
|
+
- 'spec/presenters/blacklight/index_presenter_spec.rb'
|
381
|
+
- 'spec/presenters/blacklight/show_presenter_spec.rb'
|
382
|
+
- 'spec/presenters/thumbnail_presenter_spec.rb'
|
383
|
+
|
384
|
+
# Offense count: 346
|
385
|
+
# Configuration parameters: AggregateFailuresByDefault.
|
386
|
+
RSpec/MultipleExpectations:
|
387
|
+
Max: 16
|
388
|
+
|
389
|
+
# Offense count: 332
|
390
|
+
# Configuration parameters: IgnoreSharedExamples.
|
391
|
+
RSpec/NamedSubject:
|
392
|
+
Enabled: false
|
393
|
+
|
394
|
+
# Offense count: 40
|
395
|
+
RSpec/NestedGroups:
|
396
|
+
Max: 5
|
397
|
+
|
398
|
+
# Offense count: 8
|
399
|
+
RSpec/RepeatedDescription:
|
400
|
+
Exclude:
|
401
|
+
- 'spec/features/search_results_spec.rb'
|
402
|
+
- 'spec/helpers/blacklight/facets_helper_behavior_spec.rb'
|
403
|
+
- 'spec/helpers/catalog_helper_spec.rb'
|
404
|
+
- 'spec/models/blacklight/solr/search_builder_spec.rb'
|
405
|
+
|
406
|
+
# Offense count: 4
|
407
|
+
RSpec/RepeatedExample:
|
408
|
+
Exclude:
|
409
|
+
- 'spec/features/search_filters_spec.rb'
|
410
|
+
- 'spec/models/blacklight/solr/document_spec.rb'
|
411
|
+
|
412
|
+
# Offense count: 4
|
413
|
+
RSpec/ScatteredLet:
|
414
|
+
Exclude:
|
415
|
+
- 'spec/helpers/catalog_helper_spec.rb'
|
416
|
+
- 'spec/models/blacklight/solr/search_builder_spec.rb'
|
417
|
+
- 'spec/views/catalog/index.atom.builder_spec.rb'
|
418
|
+
|
419
|
+
# Offense count: 10
|
420
|
+
RSpec/SubjectStub:
|
421
|
+
Exclude:
|
422
|
+
- 'spec/lib/blacklight/search_state_spec.rb'
|
423
|
+
- 'spec/models/blacklight/search_builder_spec.rb'
|
424
|
+
- 'spec/services/blacklight/search_service_spec.rb'
|
425
|
+
|
426
|
+
# Offense count: 119
|
427
|
+
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
|
428
|
+
RSpec/VerifiedDoubles:
|
429
|
+
Enabled: false
|
430
|
+
|
431
|
+
# Offense count: 1
|
432
|
+
RSpec/VoidExpect:
|
433
|
+
Exclude:
|
434
|
+
- 'spec/lib/blacklight/configuration/facet_field_spec.rb'
|
435
|
+
|
436
|
+
# Offense count: 4
|
437
|
+
# Configuration parameters: EnforcedStyle.
|
438
|
+
# SupportedStyles: strict, flexible
|
439
|
+
Rails/Date:
|
440
|
+
Exclude:
|
441
|
+
- 'spec/models/search_spec.rb'
|
442
|
+
|
443
|
+
# Offense count: 1
|
444
|
+
# Configuration parameters: EnforcedStyle.
|
445
|
+
# SupportedStyles: strict, flexible
|
446
|
+
Rails/TimeZone:
|
447
|
+
Exclude:
|
448
|
+
- 'spec/models/blacklight/solr/search_builder_spec.rb'
|
449
|
+
|
450
|
+
# Offense count: 13
|
451
|
+
Security/Eval:
|
452
|
+
Exclude:
|
453
|
+
- 'spec/models/blacklight/solr/response_spec.rb'
|
151
454
|
|
152
455
|
# Offense count: 9
|
153
456
|
# Cop supports --auto-correct.
|
154
|
-
# Configuration parameters: EnforcedStyle
|
457
|
+
# Configuration parameters: EnforcedStyle.
|
155
458
|
# SupportedStyles: prefer_alias, prefer_alias_method
|
156
459
|
Style/Alias:
|
157
460
|
Exclude:
|
@@ -162,27 +465,21 @@ Style/Alias:
|
|
162
465
|
- 'lib/blacklight/solr/response.rb'
|
163
466
|
- 'lib/blacklight/solr/response/group_response.rb'
|
164
467
|
|
165
|
-
# Offense count:
|
468
|
+
# Offense count: 3
|
166
469
|
# Cop supports --auto-correct.
|
167
|
-
# Configuration parameters: EnforcedStyle,
|
168
|
-
# SupportedStyles:
|
169
|
-
|
470
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
471
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
472
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
473
|
+
# FunctionalMethods: let, let!, subject, watch
|
474
|
+
# IgnoredMethods: lambda, proc, it
|
475
|
+
Style/BlockDelimiters:
|
170
476
|
Exclude:
|
171
|
-
- 'app/
|
172
|
-
- 'app/
|
173
|
-
- 'lib/blacklight/configuration.rb'
|
174
|
-
- 'lib/generators/blacklight/solr4_generator.rb'
|
175
|
-
|
176
|
-
# Offense count: 64
|
177
|
-
# Cop supports --auto-correct.
|
178
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
179
|
-
# SupportedStyles: always, conditionals
|
180
|
-
Style/AndOr:
|
181
|
-
Enabled: false
|
477
|
+
- 'app/views/catalog/index.rss.builder'
|
478
|
+
- 'app/views/catalog/opensearch.xml.builder'
|
182
479
|
|
183
480
|
# Offense count: 3
|
184
481
|
# Cop supports --auto-correct.
|
185
|
-
# Configuration parameters: EnforcedStyle
|
482
|
+
# Configuration parameters: EnforcedStyle.
|
186
483
|
# SupportedStyles: braces, no_braces, context_dependent
|
187
484
|
Style/BracesAroundHashParameters:
|
188
485
|
Exclude:
|
@@ -190,199 +487,91 @@ Style/BracesAroundHashParameters:
|
|
190
487
|
- 'lib/blacklight/solr/response/facets.rb'
|
191
488
|
- 'lib/generators/blacklight/test_support_generator.rb'
|
192
489
|
|
193
|
-
# Offense count: 13
|
194
|
-
# Cop supports --auto-correct.
|
195
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentOneStep, IndentationWidth.
|
196
|
-
# SupportedStyles: case, end
|
197
|
-
Style/CaseIndentation:
|
198
|
-
Exclude:
|
199
|
-
- 'app/helpers/blacklight/catalog_helper_behavior.rb'
|
200
|
-
- 'app/helpers/blacklight/deprecated_url_helper_behavior.rb'
|
201
|
-
- 'app/presenters/blacklight/index_presenter.rb'
|
202
|
-
- 'lib/blacklight/configuration/fields.rb'
|
203
|
-
- 'lib/blacklight/search_builder.rb'
|
204
|
-
|
205
490
|
# Offense count: 51
|
206
|
-
#
|
491
|
+
# Cop supports --auto-correct.
|
492
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
207
493
|
# SupportedStyles: nested, compact
|
208
494
|
Style/ClassAndModuleChildren:
|
209
495
|
Enabled: false
|
210
496
|
|
211
|
-
# Offense count:
|
497
|
+
# Offense count: 6
|
498
|
+
Style/CommentedKeyword:
|
499
|
+
Exclude:
|
500
|
+
- 'spec/controllers/catalog_controller_spec.rb'
|
501
|
+
- 'spec/services/blacklight/search_service_spec.rb'
|
502
|
+
|
503
|
+
# Offense count: 1
|
212
504
|
# Cop supports --auto-correct.
|
213
|
-
# Configuration parameters: EnforcedStyle,
|
505
|
+
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
214
506
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
215
507
|
Style/ConditionalAssignment:
|
216
508
|
Exclude:
|
217
509
|
- 'lib/blacklight/solr/response/spelling.rb'
|
218
510
|
|
219
|
-
# Offense count:
|
511
|
+
# Offense count: 94
|
220
512
|
Style/Documentation:
|
221
513
|
Enabled: false
|
222
514
|
|
223
|
-
# Offense count: 7
|
224
|
-
# Cop supports --auto-correct.
|
225
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
226
|
-
# SupportedStyles: leading, trailing
|
227
|
-
Style/DotPosition:
|
228
|
-
Exclude:
|
229
|
-
- 'app/controllers/concerns/blacklight/search_helper.rb'
|
230
|
-
- 'lib/blacklight/search_builder.rb'
|
231
|
-
|
232
515
|
# Offense count: 1
|
233
516
|
Style/DoubleNegation:
|
234
517
|
Exclude:
|
235
518
|
- 'lib/blacklight/search_builder.rb'
|
236
519
|
|
237
|
-
# Offense count:
|
238
|
-
# Cop supports --auto-correct.
|
239
|
-
Style/ElseAlignment:
|
240
|
-
Exclude:
|
241
|
-
- 'app/helpers/blacklight/catalog_helper_behavior.rb'
|
242
|
-
- 'app/helpers/blacklight/facets_helper_behavior.rb'
|
243
|
-
- 'app/helpers/blacklight/url_helper_behavior.rb'
|
244
|
-
- 'app/models/concerns/blacklight/configurable.rb'
|
245
|
-
- 'lib/blacklight/search_builder.rb'
|
246
|
-
- 'lib/blacklight/solr/response/facets.rb'
|
247
|
-
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
248
|
-
|
249
|
-
# Offense count: 20
|
520
|
+
# Offense count: 9
|
250
521
|
# Cop supports --auto-correct.
|
251
|
-
|
252
|
-
Style/ExtraSpacing:
|
522
|
+
Style/ExpandPathArguments:
|
253
523
|
Exclude:
|
254
|
-
- '
|
255
|
-
- '
|
256
|
-
- 'app/models/concerns/blacklight/document/dublin_core.rb'
|
257
|
-
- 'app/models/record_mailer.rb'
|
258
|
-
- 'config/routes.rb'
|
524
|
+
- 'Gemfile'
|
525
|
+
- 'lib/generators/blacklight/assets_generator.rb'
|
259
526
|
- 'lib/generators/blacklight/controller_generator.rb'
|
260
527
|
- 'lib/generators/blacklight/document_generator.rb'
|
261
528
|
- 'lib/generators/blacklight/install_generator.rb'
|
529
|
+
- 'lib/generators/blacklight/models_generator.rb'
|
262
530
|
- 'lib/generators/blacklight/search_builder_generator.rb'
|
263
|
-
- 'lib/
|
264
|
-
- '
|
531
|
+
- 'lib/generators/blacklight/test_support_generator.rb'
|
532
|
+
- 'lib/generators/blacklight/user_generator.rb'
|
265
533
|
|
266
|
-
# Offense count:
|
267
|
-
# Configuration parameters: EnforcedStyle
|
268
|
-
# SupportedStyles:
|
269
|
-
Style/
|
534
|
+
# Offense count: 16
|
535
|
+
# Configuration parameters: EnforcedStyle.
|
536
|
+
# SupportedStyles: annotated, template, unannotated
|
537
|
+
Style/FormatStringToken:
|
270
538
|
Exclude:
|
271
|
-
- 'app/helpers/blacklight/
|
539
|
+
- 'app/helpers/blacklight/render_partials_helper_behavior.rb'
|
272
540
|
|
273
|
-
# Offense count:
|
541
|
+
# Offense count: 8
|
274
542
|
# Configuration parameters: MinBodyLength.
|
275
543
|
Style/GuardClause:
|
276
544
|
Exclude:
|
277
|
-
- 'app/controllers/concerns/blacklight/base.rb'
|
278
545
|
- 'app/controllers/concerns/blacklight/bookmarks.rb'
|
279
546
|
- 'app/controllers/concerns/blacklight/catalog.rb'
|
280
547
|
- 'app/controllers/concerns/blacklight/search_context.rb'
|
281
548
|
- 'app/helpers/blacklight/catalog_helper_behavior.rb'
|
282
549
|
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
283
550
|
|
284
|
-
# Offense count:
|
285
|
-
# Cop supports --auto-correct.
|
286
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
287
|
-
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
288
|
-
Style/HashSyntax:
|
289
|
-
Enabled: false
|
290
|
-
|
291
|
-
# Offense count: 15
|
551
|
+
# Offense count: 40
|
292
552
|
# Cop supports --auto-correct.
|
293
|
-
# Configuration parameters: MaxLineLength.
|
294
553
|
Style/IfUnlessModifier:
|
295
|
-
|
296
|
-
- 'app/controllers/concerns/blacklight/controller.rb'
|
297
|
-
- 'app/controllers/concerns/blacklight/request_builders.rb'
|
298
|
-
- 'app/controllers/concerns/blacklight/token_based_user.rb'
|
299
|
-
- 'app/helpers/blacklight/catalog_helper_behavior.rb'
|
300
|
-
- 'app/helpers/blacklight/url_helper_behavior.rb'
|
301
|
-
- 'app/models/blacklight/facet_paginator.rb'
|
302
|
-
- 'lib/blacklight/configuration/fields.rb'
|
303
|
-
- 'lib/blacklight/search_state.rb'
|
304
|
-
- 'lib/generators/blacklight/install_generator.rb'
|
305
|
-
- 'lib/railties/blacklight.rake'
|
306
|
-
|
307
|
-
# Offense count: 2
|
308
|
-
# Cop supports --auto-correct.
|
309
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
310
|
-
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
311
|
-
Style/IndentHash:
|
312
|
-
Exclude:
|
313
|
-
- 'lib/blacklight/configuration.rb'
|
314
|
-
|
315
|
-
# Offense count: 23
|
316
|
-
# Cop supports --auto-correct.
|
317
|
-
# Configuration parameters: Width.
|
318
|
-
Style/IndentationWidth:
|
319
|
-
Exclude:
|
320
|
-
- 'app/controllers/concerns/blacklight/bookmarks.rb'
|
321
|
-
- 'app/controllers/concerns/blacklight/search_fields.rb'
|
322
|
-
- 'app/controllers/concerns/blacklight/token_based_user.rb'
|
323
|
-
- 'app/helpers/blacklight/catalog_helper_behavior.rb'
|
324
|
-
- 'app/helpers/blacklight/facets_helper_behavior.rb'
|
325
|
-
- 'app/helpers/blacklight/render_constraints_helper_behavior.rb'
|
326
|
-
- 'app/helpers/blacklight/render_partials_helper.rb'
|
327
|
-
- 'app/helpers/blacklight/url_helper_behavior.rb'
|
328
|
-
- 'app/models/concerns/blacklight/configurable.rb'
|
329
|
-
- 'lib/blacklight/search_builder.rb'
|
330
|
-
- 'lib/blacklight/solr/response/facets.rb'
|
331
|
-
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
332
|
-
- 'lib/generators/blacklight/assets_generator.rb'
|
333
|
-
|
334
|
-
# Offense count: 9
|
335
|
-
# Cop supports --auto-correct.
|
336
|
-
Style/LeadingCommentSpace:
|
337
|
-
Exclude:
|
338
|
-
- 'app/models/blacklight/facet_paginator.rb'
|
339
|
-
- 'app/models/concerns/blacklight/configurable.rb'
|
340
|
-
- 'app/models/concerns/blacklight/document/export.rb'
|
341
|
-
- 'lib/blacklight/configuration.rb'
|
342
|
-
- 'lib/blacklight/solr/response/spelling.rb'
|
554
|
+
Enabled: false
|
343
555
|
|
344
|
-
# Offense count:
|
556
|
+
# Offense count: 124
|
345
557
|
# Cop supports --auto-correct.
|
346
|
-
# Configuration parameters: EnforcedStyle
|
558
|
+
# Configuration parameters: EnforcedStyle.
|
347
559
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
348
560
|
Style/MethodDefParentheses:
|
349
561
|
Enabled: false
|
350
562
|
|
351
|
-
# Offense count:
|
352
|
-
# Cop supports --auto-correct.
|
353
|
-
Style/MultilineBlockLayout:
|
354
|
-
Exclude:
|
355
|
-
- 'lib/generators/blacklight/install_generator.rb'
|
356
|
-
- 'lib/generators/blacklight/test_support_generator.rb'
|
357
|
-
|
358
|
-
# Offense count: 3
|
563
|
+
# Offense count: 5
|
359
564
|
# Cop supports --auto-correct.
|
360
565
|
Style/MultilineIfModifier:
|
361
566
|
Exclude:
|
567
|
+
- 'app/views/catalog/index.atom.builder'
|
362
568
|
- 'lib/blacklight/solr/response/facets.rb'
|
363
569
|
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
364
570
|
|
365
|
-
# Offense count:
|
366
|
-
|
367
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
368
|
-
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
369
|
-
Style/MultilineMethodCallIndentation:
|
370
|
-
Exclude:
|
371
|
-
- 'app/controllers/concerns/blacklight/search_helper.rb'
|
372
|
-
- 'lib/blacklight/search_builder.rb'
|
373
|
-
|
374
|
-
# Offense count: 12
|
375
|
-
# Cop supports --auto-correct.
|
376
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
377
|
-
# SupportedStyles: aligned, indented
|
378
|
-
Style/MultilineOperationIndentation:
|
571
|
+
# Offense count: 1
|
572
|
+
Style/MultipleComparison:
|
379
573
|
Exclude:
|
380
|
-
- 'app/controllers/concerns/blacklight/default_component_configuration.rb'
|
381
|
-
- 'app/helpers/blacklight/facets_helper_behavior.rb'
|
382
|
-
- 'app/helpers/blacklight/search_history_constraints_helper_behavior.rb'
|
383
574
|
- 'lib/blacklight/configuration/context.rb'
|
384
|
-
- 'lib/blacklight/search_state.rb'
|
385
|
-
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
386
575
|
|
387
576
|
# Offense count: 2
|
388
577
|
# Cop supports --auto-correct.
|
@@ -390,167 +579,74 @@ Style/MutableConstant:
|
|
390
579
|
Exclude:
|
391
580
|
- 'lib/blacklight/solr/request.rb'
|
392
581
|
|
393
|
-
# Offense count:
|
394
|
-
#
|
395
|
-
#
|
396
|
-
#
|
397
|
-
|
398
|
-
Style/PredicateName:
|
582
|
+
# Offense count: 9
|
583
|
+
# Cop supports --auto-correct.
|
584
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
|
585
|
+
# SupportedStyles: predicate, comparison
|
586
|
+
Style/NumericPredicate:
|
399
587
|
Exclude:
|
400
588
|
- 'spec/**/*'
|
401
|
-
- 'app/controllers/concerns/blacklight/catalog.rb'
|
402
|
-
- 'app/controllers/concerns/blacklight/controller.rb'
|
403
589
|
- 'app/helpers/blacklight/catalog_helper_behavior.rb'
|
404
|
-
- 'app/
|
405
|
-
- '
|
406
|
-
- '
|
407
|
-
- 'app/models/concerns/blacklight/solr/document.rb'
|
408
|
-
- 'lib/generators/blacklight/assets_generator.rb'
|
409
|
-
|
410
|
-
# Offense count: 43
|
411
|
-
# Cop supports --auto-correct.
|
412
|
-
Style/RedundantSelf:
|
413
|
-
Enabled: false
|
414
|
-
|
415
|
-
# Offense count: 17
|
416
|
-
# Cop supports --auto-correct.
|
417
|
-
Style/SpaceAfterComma:
|
418
|
-
Exclude:
|
419
|
-
- 'app/controllers/concerns/blacklight/search_context.rb'
|
420
|
-
- 'app/helpers/blacklight/configuration_helper_behavior.rb'
|
421
|
-
- 'app/helpers/blacklight/facets_helper_behavior.rb'
|
422
|
-
- 'app/helpers/blacklight/render_constraints_helper_behavior.rb'
|
423
|
-
- 'app/models/concerns/blacklight/document/dublin_core.rb'
|
424
|
-
- 'lib/blacklight/configuration/fields.rb'
|
425
|
-
- 'lib/blacklight/parameters.rb'
|
590
|
+
- 'app/services/blacklight/search_service.rb'
|
591
|
+
- 'lib/blacklight/search_builder.rb'
|
592
|
+
- 'lib/blacklight/solr/facet_paginator.rb'
|
426
593
|
- 'lib/blacklight/solr/response/facets.rb'
|
427
594
|
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
428
|
-
- 'lib/blacklight
|
429
|
-
|
430
|
-
# Offense count: 3
|
431
|
-
# Cop supports --auto-correct.
|
432
|
-
# Configuration parameters: EnforcedStyleInsidePipes, SupportedStylesInsidePipes.
|
433
|
-
# SupportedStylesInsidePipes: space, no_space
|
434
|
-
Style/SpaceAroundBlockParameters:
|
435
|
-
Exclude:
|
436
|
-
- 'app/controllers/concerns/blacklight/catalog.rb'
|
437
|
-
- 'app/models/concerns/blacklight/document/extensions.rb'
|
438
|
-
|
439
|
-
# Offense count: 26
|
440
|
-
# Cop supports --auto-correct.
|
441
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
442
|
-
# SupportedStyles: space, no_space
|
443
|
-
Style/SpaceAroundEqualsInParameterDefault:
|
444
|
-
Exclude:
|
445
|
-
- 'app/controllers/concerns/blacklight/search_helper.rb'
|
446
|
-
- 'app/helpers/blacklight/blacklight_helper_behavior.rb'
|
447
|
-
- 'app/helpers/blacklight/component_helper_behavior.rb'
|
448
|
-
- 'app/helpers/blacklight/configuration_helper_behavior.rb'
|
449
|
-
- 'app/helpers/blacklight/facets_helper_behavior.rb'
|
450
|
-
- 'app/helpers/blacklight/url_helper_behavior.rb'
|
451
|
-
- 'app/models/concerns/blacklight/document.rb'
|
452
|
-
- 'app/presenters/blacklight/document_presenter.rb'
|
453
|
-
- 'app/presenters/blacklight/index_presenter.rb'
|
454
|
-
- 'app/presenters/blacklight/show_presenter.rb'
|
455
|
-
- 'lib/blacklight/search_state.rb'
|
456
|
-
|
457
|
-
# Offense count: 11
|
458
|
-
# Cop supports --auto-correct.
|
459
|
-
# Configuration parameters: AllowForAlignment.
|
460
|
-
Style/SpaceAroundOperators:
|
461
|
-
Exclude:
|
462
|
-
- 'app/controllers/concerns/blacklight/request_builders.rb'
|
463
|
-
- 'app/helpers/blacklight/blacklight_helper_behavior.rb'
|
464
|
-
- 'app/helpers/blacklight/facets_helper_behavior.rb'
|
465
|
-
- 'app/helpers/blacklight/search_history_constraints_helper_behavior.rb'
|
466
|
-
- 'app/helpers/blacklight/url_helper_behavior.rb'
|
467
|
-
- 'lib/blacklight/solr/repository.rb'
|
468
|
-
- 'lib/blacklight/solr/response/spelling.rb'
|
469
|
-
- 'tasks/blacklight.rake'
|
470
|
-
|
471
|
-
# Offense count: 1
|
472
|
-
# Cop supports --auto-correct.
|
473
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
474
|
-
# SupportedStyles: space, no_space
|
475
|
-
Style/SpaceBeforeBlockBraces:
|
476
|
-
Exclude:
|
477
|
-
- 'lib/blacklight/solr/response.rb'
|
478
|
-
|
479
|
-
# Offense count: 15
|
480
|
-
# Cop supports --auto-correct.
|
481
|
-
Style/SpaceBeforeComma:
|
482
|
-
Exclude:
|
483
|
-
- 'app/helpers/blacklight/search_history_constraints_helper_behavior.rb'
|
484
|
-
- 'lib/generators/blacklight/controller_generator.rb'
|
485
|
-
- 'lib/generators/blacklight/document_generator.rb'
|
486
|
-
- 'lib/generators/blacklight/install_generator.rb'
|
487
|
-
- 'lib/generators/blacklight/search_builder_generator.rb'
|
488
|
-
- 'lib/generators/blacklight/user_generator.rb'
|
595
|
+
- 'lib/railties/blacklight.rake'
|
489
596
|
|
490
597
|
# Offense count: 3
|
491
598
|
# Cop supports --auto-correct.
|
492
|
-
# Configuration parameters:
|
493
|
-
Style/
|
599
|
+
# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
|
600
|
+
Style/ParenthesesAroundCondition:
|
494
601
|
Exclude:
|
495
|
-
- '
|
496
|
-
- 'lib/generators/blacklight/document_generator.rb'
|
497
|
-
- 'lib/generators/blacklight/search_builder_generator.rb'
|
602
|
+
- 'app/views/catalog/_document.atom.builder'
|
498
603
|
|
499
|
-
# Offense count:
|
604
|
+
# Offense count: 5
|
500
605
|
# Cop supports --auto-correct.
|
501
|
-
# Configuration parameters:
|
502
|
-
|
503
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
504
|
-
Style/SpaceInsideBlockBraces:
|
606
|
+
# Configuration parameters: PreferredDelimiters.
|
607
|
+
Style/PercentLiteralDelimiters:
|
505
608
|
Exclude:
|
506
|
-
- '
|
507
|
-
- '
|
508
|
-
- 'app/controllers/concerns/blacklight/search_helper.rb'
|
509
|
-
- 'app/helpers/blacklight/catalog_helper_behavior.rb'
|
510
|
-
- 'app/helpers/blacklight/facets_helper_behavior.rb'
|
511
|
-
- 'lib/blacklight/search_builder.rb'
|
609
|
+
- 'lib/blacklight/configuration.rb'
|
610
|
+
- 'lib/blacklight/engine.rb'
|
512
611
|
- 'lib/blacklight/solr/request.rb'
|
513
|
-
- 'lib/blacklight/solr/response.rb'
|
514
|
-
- 'lib/blacklight/solr/response/group.rb'
|
515
612
|
|
516
|
-
# Offense count:
|
613
|
+
# Offense count: 7
|
517
614
|
# Cop supports --auto-correct.
|
518
|
-
|
615
|
+
# Configuration parameters: EnforcedStyle.
|
616
|
+
# SupportedStyles: implicit, explicit
|
617
|
+
Style/RescueStandardError:
|
519
618
|
Exclude:
|
619
|
+
- 'app/models/record_mailer.rb'
|
620
|
+
- 'lib/blacklight.rb'
|
520
621
|
- 'lib/blacklight/configuration/fields.rb'
|
622
|
+
- 'lib/railties/blacklight.rake'
|
521
623
|
|
522
|
-
# Offense count:
|
624
|
+
# Offense count: 12
|
523
625
|
# Cop supports --auto-correct.
|
524
|
-
# Configuration parameters:
|
525
|
-
#
|
526
|
-
|
527
|
-
Style/SpaceInsideHashLiteralBraces:
|
626
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
|
627
|
+
# Whitelist: present?, blank?, presence, try, try!
|
628
|
+
Style/SafeNavigation:
|
528
629
|
Exclude:
|
529
630
|
- 'app/controllers/concerns/blacklight/bookmarks.rb'
|
530
|
-
- 'app/controllers/concerns/blacklight/
|
531
|
-
- 'app/
|
532
|
-
- '
|
533
|
-
- '
|
534
|
-
- '
|
535
|
-
- 'lib/blacklight/
|
536
|
-
- 'lib/blacklight/solr/
|
631
|
+
- 'app/controllers/concerns/blacklight/controller.rb'
|
632
|
+
- 'app/services/blacklight/field_retriever.rb'
|
633
|
+
- 'lib/blacklight.rb'
|
634
|
+
- 'lib/blacklight/configuration/facet_field.rb'
|
635
|
+
- 'lib/blacklight/configuration/search_field.rb'
|
636
|
+
- 'lib/blacklight/search_state.rb'
|
637
|
+
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
537
638
|
|
538
|
-
# Offense count:
|
639
|
+
# Offense count: 3
|
539
640
|
# Cop supports --auto-correct.
|
540
|
-
|
641
|
+
# Configuration parameters: AllowAsExpressionSeparator.
|
642
|
+
Style/Semicolon:
|
541
643
|
Exclude:
|
542
|
-
- '
|
543
|
-
- '
|
544
|
-
- 'app/helpers/blacklight/facets_helper_behavior.rb'
|
545
|
-
- 'app/helpers/blacklight/search_history_constraints_helper_behavior.rb'
|
546
|
-
- 'app/helpers/blacklight/url_helper_behavior.rb'
|
547
|
-
- 'app/models/concerns/blacklight/document/dublin_core.rb'
|
548
|
-
- 'app/models/concerns/blacklight/document/extensions.rb'
|
549
|
-
- 'app/models/record_mailer.rb'
|
550
|
-
- 'lib/blacklight/search_state.rb'
|
551
|
-
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
644
|
+
- 'spec/models/blacklight/solr/repository_spec.rb'
|
645
|
+
- 'spec/views/catalog/_paginate_compact.html.erb_spec.rb'
|
552
646
|
|
553
|
-
# Offense count:
|
647
|
+
# Offense count: 31
|
554
648
|
# Cop supports --auto-correct.
|
555
|
-
|
556
|
-
|
649
|
+
# Configuration parameters: MinSize.
|
650
|
+
# SupportedStyles: percent, brackets
|
651
|
+
Style/SymbolArray:
|
652
|
+
EnforcedStyle: brackets
|