blacklight 8.13.0 → 9.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 +3 -3
- data/.github/pull_request_template.md +7 -0
- data/.github/workflows/ruby.yml +98 -0
- data/.rubocop.yml +8 -151
- data/.rubocop_todo.yml +53 -74
- data/.solr_wrapper.yml +0 -2
- data/README.md +30 -8
- data/VERSION +1 -1
- data/app/assets/builds/blacklight.css +448 -0
- data/app/assets/javascripts/blacklight/blacklight.esm.js +8 -51
- data/app/assets/javascripts/blacklight/blacklight.esm.js.map +1 -1
- data/app/assets/javascripts/blacklight/blacklight.js +8 -51
- data/app/assets/javascripts/blacklight/blacklight.js.map +1 -1
- data/app/assets/stylesheets/blacklight/_balanced_list.scss +1 -4
- data/app/assets/stylesheets/blacklight/_blacklight_base.scss +1 -3
- data/app/assets/stylesheets/blacklight/_bookmark.scss +44 -41
- data/app/assets/stylesheets/blacklight/_bootstrap_overrides.scss +0 -29
- data/app/assets/stylesheets/blacklight/_constraints.scss +15 -24
- data/app/assets/stylesheets/blacklight/_controls.scss +2 -18
- data/app/assets/stylesheets/blacklight/_facets.scss +15 -82
- data/app/assets/stylesheets/blacklight/_group.scss +2 -5
- data/app/assets/stylesheets/blacklight/_header.scss +4 -11
- data/app/assets/stylesheets/blacklight/_icons.scss +0 -8
- data/app/assets/stylesheets/blacklight/_modal.scss +9 -10
- data/app/assets/stylesheets/blacklight/_pagination.scss +3 -5
- data/app/assets/stylesheets/blacklight/_search_form.scss +0 -1
- data/app/assets/stylesheets/blacklight/_search_history.scss +0 -4
- data/app/assets/stylesheets/blacklight/_search_results.scss +1 -15
- data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +9 -17
- data/app/assets/stylesheets/blacklight/build.scss +4 -0
- data/app/components/blacklight/advanced_search_form_component.rb +3 -3
- data/app/components/blacklight/constraint_component.rb +1 -1
- data/app/components/blacklight/constraint_layout_component.html.erb +2 -2
- data/app/components/blacklight/constraints_component.html.erb +2 -2
- data/app/components/blacklight/constraints_component.rb +3 -3
- data/app/components/blacklight/document/action_component.rb +3 -1
- data/app/components/blacklight/document/bookmark_component.html.erb +3 -3
- data/app/components/blacklight/document/bookmark_component.rb +2 -3
- data/app/components/blacklight/document/group_component.html.erb +1 -1
- data/app/components/blacklight/document/more_like_this_component.rb +2 -2
- data/app/components/blacklight/document/page_header_component.rb +3 -3
- data/app/components/blacklight/document/sidebar_component.rb +5 -5
- data/app/components/blacklight/document_component.rb +14 -20
- data/app/components/blacklight/document_title_component.rb +3 -2
- data/app/components/blacklight/facet_field_component.html.erb +5 -5
- data/app/components/blacklight/facet_field_list_component.rb +4 -22
- data/app/components/blacklight/facet_field_pagination_component.html.erb +2 -2
- data/app/components/blacklight/facet_item_component.rb +2 -2
- data/app/components/blacklight/facet_item_pivot_component.rb +2 -2
- data/app/components/blacklight/header_component.rb +2 -2
- data/app/components/blacklight/metadata_field_plain_text_layout_component.rb +2 -2
- data/app/components/blacklight/response/facet_group_component.html.erb +3 -18
- data/app/components/blacklight/response/facet_group_component.rb +7 -23
- data/app/components/blacklight/response/facet_toggle_button_component.html.erb +16 -0
- data/app/components/blacklight/response/facet_toggle_button_component.rb +14 -0
- data/app/components/blacklight/response/pagination_component.html.erb +1 -1
- data/app/components/blacklight/response/pagination_component.rb +2 -1
- data/app/components/blacklight/response/sort_component.rb +1 -0
- data/app/components/blacklight/response/view_type_button_component.html.erb +1 -1
- data/app/components/blacklight/response/view_type_component.html.erb +1 -1
- data/app/components/blacklight/search/facet_suggest_input.html.erb +7 -10
- data/app/components/blacklight/search/facet_suggest_input.rb +0 -4
- data/app/components/blacklight/search/per_page_component.html.erb +1 -1
- data/app/components/blacklight/search/per_page_component.rb +1 -0
- data/app/components/blacklight/search/sidebar_component.html.erb +1 -1
- data/app/components/blacklight/search/sidebar_component.rb +1 -1
- data/app/components/blacklight/search_bar_component.html.erb +3 -3
- data/app/components/blacklight/search_bar_component.rb +2 -2
- data/app/components/blacklight/search_button_component.rb +2 -2
- data/app/components/blacklight/search_context/server_applied_params_component.html.erb +2 -2
- data/app/components/blacklight/search_context/server_applied_params_component.rb +9 -0
- data/app/components/blacklight/skip_link_component.html.erb +1 -1
- data/app/components/blacklight/skip_link_component.rb +2 -1
- data/app/components/blacklight/system/dropdown_component.html.erb +1 -1
- data/app/components/blacklight/system/dropdown_component.rb +1 -1
- data/app/components/blacklight/top_navbar_component.html.erb +1 -1
- data/app/controllers/concerns/blacklight/bookmarks.rb +5 -5
- data/app/controllers/concerns/blacklight/catalog.rb +3 -2
- data/app/controllers/concerns/blacklight/search_context.rb +2 -14
- data/app/controllers/concerns/blacklight/search_history.rb +1 -1
- data/app/helpers/blacklight/blacklight_helper_behavior.rb +0 -6
- data/app/helpers/blacklight/catalog_helper_behavior.rb +0 -10
- data/app/helpers/blacklight/configuration_helper_behavior.rb +2 -14
- data/app/helpers/blacklight/document_helper_behavior.rb +0 -26
- data/app/helpers/blacklight/icon_helper_behavior.rb +3 -11
- data/app/helpers/blacklight/render_partials_helper_behavior.rb +0 -14
- data/app/helpers/blacklight/url_helper_behavior.rb +1 -1
- data/app/javascript/{blacklight → blacklight-frontend}/bookmark_toggle.js +1 -1
- data/app/javascript/{blacklight → blacklight-frontend}/core.js +2 -10
- data/app/javascript/{blacklight → blacklight-frontend}/debounce.js +1 -1
- data/app/javascript/blacklight-frontend/facet_suggest.js +26 -0
- data/app/javascript/blacklight-frontend/index.js +18 -0
- data/app/javascript/{blacklight → blacklight-frontend}/modal.js +2 -14
- data/app/javascript/{blacklight → blacklight-frontend}/search_context.js +2 -3
- data/app/models/blacklight/icon.rb +2 -3
- data/app/models/concerns/blacklight/document.rb +0 -11
- data/app/models/concerns/blacklight/user.rb +1 -2
- data/app/presenters/blacklight/json_presenter.rb +3 -1
- data/app/presenters/blacklight/rendering/helper_method.rb +4 -4
- data/app/presenters/blacklight/rendering/join.rb +2 -2
- data/app/presenters/blacklight/rendering/microdata.rb +0 -1
- data/app/services/blacklight/search_params_yaml_coder.rb +0 -2
- data/app/values/blacklight/types.rb +2 -2
- data/app/views/bookmarks/_clear_bookmarks_widget.html.erb +0 -2
- data/app/views/bookmarks/index.html.erb +1 -1
- data/app/views/catalog/_document.atom.builder +1 -1
- data/app/views/catalog/_document.html.erb +1 -1
- data/app/views/catalog/_email_form.html.erb +2 -2
- data/app/views/catalog/_results_pagination.html.erb +2 -5
- data/app/views/catalog/_search_results.html.erb +3 -3
- data/app/views/catalog/_search_results_header.html.erb +1 -1
- data/app/views/catalog/_show_main_content.html.erb +1 -1
- data/app/views/catalog/_sms_form.html.erb +2 -2
- data/app/views/catalog/_sort_and_per_page.html.erb +1 -1
- data/app/views/catalog/_sort_widget.html.erb +1 -0
- data/app/views/catalog/facet.html.erb +9 -9
- data/app/views/catalog/show.html.erb +2 -3
- data/app/views/kaminari/blacklight/_paginator.html.erb +1 -2
- data/app/views/layouts/blacklight/base.html.erb +3 -7
- data/app/views/search_history/index.html.erb +0 -2
- data/blacklight.gemspec +5 -5
- data/config/importmap.rb +1 -1
- data/config/locales/blacklight.ar.yml +4 -4
- data/config/locales/blacklight.ca.yml +124 -124
- data/config/locales/blacklight.de.yml +2 -2
- data/config/locales/blacklight.en.yml +14 -14
- data/config/locales/blacklight.es.yml +4 -4
- data/config/locales/blacklight.fr.yml +4 -4
- data/config/locales/blacklight.hu.yml +4 -4
- data/config/locales/blacklight.it.yml +3 -3
- data/config/locales/blacklight.nl.yml +3 -3
- data/config/locales/blacklight.pt-BR.yml +3 -3
- data/config/locales/blacklight.sq.yml +4 -4
- data/config/locales/blacklight.zh.yml +4 -4
- data/lib/blacklight/abstract_repository.rb +2 -2
- data/lib/blacklight/component.rb +1 -4
- data/lib/blacklight/configuration/context.rb +3 -3
- data/lib/blacklight/configuration/field.rb +10 -10
- data/lib/blacklight/configuration/sort_field.rb +2 -2
- data/lib/blacklight/configuration/view_config.rb +2 -4
- data/lib/blacklight/configuration.rb +4 -10
- data/lib/blacklight/engine.rb +0 -6
- data/lib/blacklight/nested_open_struct_with_hash_access.rb +1 -1
- data/lib/blacklight/open_struct_with_hash_access.rb +2 -2
- data/lib/blacklight/parameters.rb +1 -1
- data/lib/blacklight/search_state/filter_field.rb +4 -4
- data/lib/blacklight/search_state/pivot_filter_field.rb +1 -1
- data/lib/blacklight/solr/request.rb +2 -8
- data/lib/blacklight/solr/response/facets.rb +2 -2
- data/lib/blacklight/solr/response.rb +1 -4
- data/lib/generators/blacklight/assets/importmap_generator.rb +10 -51
- data/lib/generators/blacklight/assets/propshaft_generator.rb +1 -1
- data/lib/generators/blacklight/assets_generator.rb +3 -3
- data/lib/generators/blacklight/controller_generator.rb +3 -3
- data/lib/generators/blacklight/search_builder_generator.rb +1 -1
- data/lib/generators/blacklight/templates/.solr_wrapper.yml +0 -2
- data/lib/generators/blacklight/templates/solr/conf/schema.xml +178 -264
- data/lib/generators/blacklight/templates/solr/conf/solrconfig.xml +18 -6
- data/lib/generators/blacklight/user_generator.rb +9 -10
- data/package.json +14 -4
- data/rollup.config.js +1 -1
- data/spec/components/blacklight/document/action_component_spec.rb +2 -6
- data/spec/components/blacklight/document/group_component_spec.rb +1 -1
- data/spec/components/blacklight/document/sidebar_component_spec.rb +5 -20
- data/spec/components/blacklight/document_component_spec.rb +19 -24
- data/spec/components/blacklight/facet_component_spec.rb +2 -2
- data/spec/components/blacklight/facet_field_checkboxes_component_spec.rb +2 -2
- data/spec/components/blacklight/facet_field_list_component_spec.rb +3 -3
- data/spec/components/blacklight/search/facet_suggest_input_spec.rb +3 -27
- data/spec/components/blacklight/search_bar_component_spec.rb +1 -1
- data/spec/controllers/blacklight/catalog_spec.rb +1 -1
- data/spec/controllers/catalog_controller_spec.rb +3 -3
- data/spec/features/advanced_search_spec.rb +12 -12
- data/spec/features/axe_spec.rb +6 -11
- data/spec/features/bookmarks_spec.rb +60 -23
- data/spec/features/did_you_mean_spec.rb +17 -17
- data/spec/features/facet_missing_spec.rb +3 -3
- data/spec/features/facets_spec.rb +22 -90
- data/spec/features/modal_spec.rb +1 -1
- data/spec/features/record_view_spec.rb +14 -14
- data/spec/features/search_context_spec.rb +8 -9
- data/spec/features/search_filters_spec.rb +18 -18
- data/spec/features/search_formats_spec.rb +2 -2
- data/spec/features/search_history_spec.rb +11 -11
- data/spec/features/search_pagination_spec.rb +9 -9
- data/spec/features/search_results_spec.rb +3 -3
- data/spec/features/search_sort_spec.rb +4 -4
- data/spec/features/search_spec.rb +15 -15
- data/spec/helpers/blacklight/configuration_helper_behavior_spec.rb +0 -9
- data/spec/helpers/blacklight/render_partials_helper_behavior_spec.rb +1 -1
- data/spec/helpers/blacklight/url_helper_behavior_spec.rb +14 -14
- data/spec/helpers/blacklight_helper_spec.rb +0 -6
- data/spec/helpers/catalog_helper_spec.rb +6 -6
- data/spec/lib/blacklight/open_struct_with_hash_access_spec.rb +0 -7
- data/spec/lib/blacklight/parameters_spec.rb +1 -12
- data/spec/lib/blacklight/search_state/filter_field_spec.rb +0 -18
- data/spec/lib/blacklight/search_state/pivot_filter_field_spec.rb +1 -1
- data/spec/models/blacklight/solr/request_spec.rb +7 -0
- data/spec/models/record_mailer_spec.rb +5 -5
- data/spec/models/solr_document_spec.rb +1 -5
- data/spec/presenters/blacklight/index_presenter_spec.rb +0 -1
- data/spec/presenters/blacklight/rendering/pipeline_spec.rb +0 -1
- data/spec/presenters/blacklight/show_presenter_spec.rb +0 -1
- data/spec/presenters/blacklight/thumbnail_presenter_spec.rb +0 -1
- data/spec/services/blacklight/search_service_spec.rb +1 -1
- data/spec/support/presenter_test_helpers.rb +1 -1
- data/spec/views/catalog/_document.html.erb_spec.rb +4 -4
- data/spec/views/catalog/_facet_layout.html.erb_spec.rb +3 -3
- data/spec/views/catalog/_sort_and_per_page.html.erb_spec.rb +5 -5
- data/spec/views/catalog/facet.html.erb_spec.rb +1 -9
- data/spec/views/catalog/index.atom.builder_spec.rb +0 -2
- data/spec/views/catalog/index.html.erb_spec.rb +7 -4
- data/spec/views/catalog/show.html.erb_spec.rb +4 -3
- data/tasks/blacklight.rake +8 -5
- metadata +34 -65
- data/.github/matrix.json +0 -109
- data/.github/workflows/build.yml +0 -16
- data/.github/workflows/lint.yml +0 -25
- data/.github/workflows/main.yml +0 -24
- data/.github/workflows/test.yml +0 -57
- data/app/assets/stylesheets/blacklight/_autocomplete.scss +0 -25
- data/app/assets/stylesheets/blacklight/_mixins.scss +0 -20
- data/app/components/blacklight/icons/legacy_icon_component.rb +0 -30
- data/app/javascript/blacklight/facet_suggest.js +0 -48
- data/app/javascript/blacklight/index.js +0 -18
- data/app/views/catalog/_constraints.html.erb +0 -1
- data/app/views/catalog/_facets.html.erb +0 -5
- data/app/views/catalog/_search_form.html.erb +0 -7
- data/app/views/catalog/_search_header.html.erb +0 -1
- data/app/views/catalog/_show_sidebar.html.erb +0 -3
- data/app/views/catalog/_show_tools.html.erb +0 -2
- data/app/views/catalog/_start_over.html.erb +0 -1
- data/app/views/shared/_header_navbar.html.erb +0 -1
- data/lib/generators/blacklight/assets/sprockets_generator.rb +0 -68
- data/spec/components/blacklight/system/dropdown_component_spec.rb +0 -26
- data/spec/views/catalog/_search_header.erb_spec.rb +0 -14
- data/spec/views/catalog/_show_sidebar.erb_spec.rb +0 -24
- data/spec/views/catalog/_show_tools.html.erb_spec.rb +0 -37
- /data/app/javascript/{blacklight → blacklight-frontend}/button_focus.js +0 -0
- /data/app/javascript/{blacklight → blacklight-frontend}/checkbox_submit.js +0 -0
- /data/app/javascript/{blacklight → blacklight-frontend}/modalForm.js +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4ffba1fbfab58e820f1953e4c0b1ff8d3bbcd57da645c10a44aa2f0a09f4a7a
|
|
4
|
+
data.tar.gz: 323b2afff4d4a8b308486ad81978b64f3a88aa8414e890ea5563bd3ae7820d0e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d3bbad62d2d7ecfa2b19657d43dab0186e6a945dbd6093c120f2fa5ba833be91b78f75ccd73379008bfb20e199a44702ce49000ce5561203baae41029a5cd3f
|
|
7
|
+
data.tar.gz: 6a2837ca8deb3fd6650b947197d8dd5c5320631a339ac04a3e804aa1cc930050c50ed097f6fbff27ad3e50aab1c84b0bfe2817e91a466926dc0d0fd0202945b8
|
data/.env
CHANGED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
2
|
+
# They are provided by a third-party and are governed by
|
|
3
|
+
# separate terms of service, privacy policy, and support
|
|
4
|
+
# documentation.
|
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
|
7
|
+
|
|
8
|
+
name: CI
|
|
9
|
+
|
|
10
|
+
on:
|
|
11
|
+
push:
|
|
12
|
+
branches:
|
|
13
|
+
- main
|
|
14
|
+
- "release-*"
|
|
15
|
+
pull_request:
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
lint:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- name: Set up Ruby
|
|
23
|
+
uses: ruby/setup-ruby@v1
|
|
24
|
+
with:
|
|
25
|
+
ruby-version: 3.2
|
|
26
|
+
bundler: "latest"
|
|
27
|
+
- name: Change permissions
|
|
28
|
+
run: "chmod -f -R o-w /opt/hostedtoolcache/Ruby/3.2.5/x64/lib/ruby/gems/3.2.0/gems | :"
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: bundle install
|
|
31
|
+
- name: Run linter
|
|
32
|
+
run: bundle exec rake rubocop
|
|
33
|
+
test:
|
|
34
|
+
runs-on: ubuntu-latest
|
|
35
|
+
name: test (ruby ${{ matrix.ruby }} / rails ${{ matrix.rails_version }} ${{ matrix.additional_name }})
|
|
36
|
+
strategy:
|
|
37
|
+
fail-fast: false
|
|
38
|
+
matrix:
|
|
39
|
+
ruby: ["3.3"]
|
|
40
|
+
rails_version: ["7.1.5.1", "7.2.2.1"]
|
|
41
|
+
bootstrap_version: [null]
|
|
42
|
+
view_component_version: ["~> 3.12"]
|
|
43
|
+
api: [null]
|
|
44
|
+
additional_engine_cart_rails_options: [""]
|
|
45
|
+
additional_name: [""]
|
|
46
|
+
include:
|
|
47
|
+
- ruby: "3.3"
|
|
48
|
+
rails_version: "8.0.1"
|
|
49
|
+
additional_engine_cart_rails_options: --css=bootstrap
|
|
50
|
+
- ruby: "3.3"
|
|
51
|
+
rails_version: "8.0.1"
|
|
52
|
+
additional_engine_cart_rails_options: --css=bootstrap --js=esbuild
|
|
53
|
+
additional_name: "/ esbuild"
|
|
54
|
+
- ruby: "3.2"
|
|
55
|
+
rails_version: "7.1.5.1"
|
|
56
|
+
solr_version: "8.11.2"
|
|
57
|
+
additional_name: "Solr 8.11.2"
|
|
58
|
+
- ruby: "3.1"
|
|
59
|
+
rails_version: "7.1.5.1"
|
|
60
|
+
- ruby: "3.3"
|
|
61
|
+
rails_version: "7.1.5.1"
|
|
62
|
+
additional_name: "/ Propshaft"
|
|
63
|
+
additional_engine_cart_rails_options: -a propshaft --css=bootstrap
|
|
64
|
+
- ruby: "3.3"
|
|
65
|
+
rails_version: "7.1.5.1"
|
|
66
|
+
api: "true"
|
|
67
|
+
additional_engine_cart_rails_options: --api --skip-yarn
|
|
68
|
+
additional_name: "/ API"
|
|
69
|
+
- ruby: "3.3"
|
|
70
|
+
rails_version: "7.2.2.1"
|
|
71
|
+
additional_engine_cart_rails_options: -a propshaft --css=bootstrap --js=esbuild
|
|
72
|
+
additional_name: "/ Propshaft, esbuild"
|
|
73
|
+
env:
|
|
74
|
+
RAILS_VERSION: ${{ matrix.rails_version }}
|
|
75
|
+
SOLR_VERSION: ${{ matrix.solr_version || 'latest' }}
|
|
76
|
+
VIEW_COMPONENT_VERSION: ${{ matrix.view_component_version }}
|
|
77
|
+
BOOTSTRAP_VERSION: ${{ matrix.bootstrap_version }}
|
|
78
|
+
BLACKLIGHT_API_TEST: ${{ matrix.api }}
|
|
79
|
+
ENGINE_CART_RAILS_OPTIONS: "--skip-git --skip-listen --skip-spring --skip-keeps --skip-kamal --skip-solid --skip-coffee --skip-test ${{ matrix.additional_engine_cart_rails_options }}"
|
|
80
|
+
steps:
|
|
81
|
+
- uses: actions/checkout@v4
|
|
82
|
+
- name: Set up Ruby
|
|
83
|
+
uses: ruby/setup-ruby@v1
|
|
84
|
+
with:
|
|
85
|
+
bundler: "latest"
|
|
86
|
+
ruby-version: ${{ matrix.ruby }}
|
|
87
|
+
- name: Change permissions
|
|
88
|
+
run: "chmod -f -R o-w /opt/hostedtoolcache/Ruby/3.2.5/x64/lib/ruby/gems/3.2.0/gems | :"
|
|
89
|
+
- name: Install dependencies
|
|
90
|
+
run: bundle install
|
|
91
|
+
- name: Run tests
|
|
92
|
+
run: bundle exec rake ci
|
|
93
|
+
docker_build:
|
|
94
|
+
runs-on: ubuntu-latest
|
|
95
|
+
steps:
|
|
96
|
+
- uses: actions/checkout@v4
|
|
97
|
+
- name: Build docker image
|
|
98
|
+
run: docker compose build app
|
data/.rubocop.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
require:
|
|
2
2
|
- rubocop-capybara
|
|
3
3
|
- rubocop-rspec
|
|
4
4
|
- rubocop-rspec_rails
|
|
@@ -10,8 +10,8 @@ inherit_from:
|
|
|
10
10
|
|
|
11
11
|
AllCops:
|
|
12
12
|
DisplayCopNames: true
|
|
13
|
-
TargetRubyVersion: 3.
|
|
14
|
-
TargetRailsVersion: 7.
|
|
13
|
+
TargetRubyVersion: 3.1
|
|
14
|
+
TargetRailsVersion: 7.0
|
|
15
15
|
Exclude:
|
|
16
16
|
- "lib/generators/blacklight/templates/**/*"
|
|
17
17
|
- "blacklight.gemspec"
|
|
@@ -75,7 +75,7 @@ Naming/MethodParameterName:
|
|
|
75
75
|
- of
|
|
76
76
|
- by
|
|
77
77
|
|
|
78
|
-
Naming/
|
|
78
|
+
Naming/PredicateName:
|
|
79
79
|
ForbiddenPrefixes:
|
|
80
80
|
- is_
|
|
81
81
|
|
|
@@ -89,9 +89,6 @@ Rails/ApplicationMailer:
|
|
|
89
89
|
Style/AccessModifierDeclarations:
|
|
90
90
|
Enabled: false
|
|
91
91
|
|
|
92
|
-
Style/FormatStringToken:
|
|
93
|
-
EnforcedStyle: template
|
|
94
|
-
|
|
95
92
|
Style/MissingRespondToMissing:
|
|
96
93
|
Exclude:
|
|
97
94
|
- "lib/blacklight/nested_open_struct_with_hash_access.rb"
|
|
@@ -460,11 +457,11 @@ Style/SuperWithArgsParentheses: # new in 1.58
|
|
|
460
457
|
Enabled: true
|
|
461
458
|
Style/YAMLFileRead: # new in 1.53
|
|
462
459
|
Enabled: true
|
|
463
|
-
Capybara/
|
|
460
|
+
Capybara/ClickLinkOrButtonStyle: # new in 2.19
|
|
464
461
|
Enabled: true
|
|
465
|
-
Capybara/
|
|
462
|
+
Capybara/MatchStyle: # new in 2.17
|
|
466
463
|
Enabled: true
|
|
467
|
-
Capybara/
|
|
464
|
+
Capybara/NegationMatcher: # new in 2.14
|
|
468
465
|
Enabled: true
|
|
469
466
|
Exclude:
|
|
470
467
|
- "spec/models/**/*"
|
|
@@ -474,7 +471,7 @@ Capybara/SpecificActions: # new in 2.14
|
|
|
474
471
|
Enabled: true
|
|
475
472
|
Capybara/SpecificFinders: # new in 2.13
|
|
476
473
|
Enabled: true
|
|
477
|
-
Capybara/
|
|
474
|
+
Capybara/SpecificMatcher: # new in 2.12
|
|
478
475
|
Enabled: true
|
|
479
476
|
Capybara/RSpec/HaveSelector: # new in 2.19
|
|
480
477
|
Enabled: true
|
|
@@ -588,143 +585,3 @@ Rails/WhereRange: # new in 2.25
|
|
|
588
585
|
Enabled: true
|
|
589
586
|
Gemspec/AddRuntimeDependency: # new in 1.65
|
|
590
587
|
Enabled: true
|
|
591
|
-
Lint/ArrayLiteralInRegexp: # new in 1.71
|
|
592
|
-
Enabled: true
|
|
593
|
-
Lint/ConstantReassignment: # new in 1.70
|
|
594
|
-
Enabled: true
|
|
595
|
-
Lint/DuplicateSetElement: # new in 1.67
|
|
596
|
-
Enabled: true
|
|
597
|
-
Lint/HashNewWithKeywordArgumentsAsDefault: # new in 1.69
|
|
598
|
-
Enabled: true
|
|
599
|
-
Lint/NumericOperationWithConstantResult: # new in 1.69
|
|
600
|
-
Enabled: true
|
|
601
|
-
Lint/SharedMutableDefault: # new in 1.70
|
|
602
|
-
Enabled: true
|
|
603
|
-
Lint/UnescapedBracketInRegexp: # new in 1.68
|
|
604
|
-
Enabled: true
|
|
605
|
-
Lint/UselessDefined: # new in 1.69
|
|
606
|
-
Enabled: true
|
|
607
|
-
Lint/UselessNumericOperation: # new in 1.66
|
|
608
|
-
Enabled: true
|
|
609
|
-
Style/AmbiguousEndlessMethodDefinition: # new in 1.68
|
|
610
|
-
Enabled: true
|
|
611
|
-
Style/BitwisePredicate: # new in 1.68
|
|
612
|
-
Enabled: true
|
|
613
|
-
Style/CombinableDefined: # new in 1.68
|
|
614
|
-
Enabled: true
|
|
615
|
-
Style/DigChain: # new in 1.69
|
|
616
|
-
Enabled: true
|
|
617
|
-
Style/FileNull: # new in 1.69
|
|
618
|
-
Enabled: true
|
|
619
|
-
Style/FileTouch: # new in 1.69
|
|
620
|
-
Enabled: true
|
|
621
|
-
Style/HashSlice: # new in 1.71
|
|
622
|
-
Enabled: true
|
|
623
|
-
Style/ItAssignment: # new in 1.70
|
|
624
|
-
Enabled: true
|
|
625
|
-
Style/KeywordArgumentsMerging: # new in 1.68
|
|
626
|
-
Enabled: true
|
|
627
|
-
Style/RedundantInterpolationUnfreeze: # new in 1.66
|
|
628
|
-
Enabled: true
|
|
629
|
-
Style/SafeNavigationChainLength: # new in 1.68
|
|
630
|
-
Enabled: true
|
|
631
|
-
Rails/EnumSyntax: # new in 2.26
|
|
632
|
-
Enabled: true
|
|
633
|
-
Rails/MultipleRoutePaths: # new in 2.29
|
|
634
|
-
Enabled: true
|
|
635
|
-
Rails/StrongParametersExpect: # new in 2.29
|
|
636
|
-
Enabled: true
|
|
637
|
-
Lint/CopDirectiveSyntax: # new in 1.72
|
|
638
|
-
Enabled: true
|
|
639
|
-
Lint/RedundantTypeConversion: # new in 1.72
|
|
640
|
-
Enabled: true
|
|
641
|
-
Lint/SuppressedExceptionInNumberConversion: # new in 1.72
|
|
642
|
-
Enabled: true
|
|
643
|
-
Lint/UselessConstantScoping: # new in 1.72
|
|
644
|
-
Enabled: true
|
|
645
|
-
Style/ComparableBetween: # new in 1.74
|
|
646
|
-
Enabled: true
|
|
647
|
-
Style/HashFetchChain: # new in 1.75
|
|
648
|
-
Enabled: true
|
|
649
|
-
Style/ItBlockParameter: # new in 1.75
|
|
650
|
-
Enabled: true
|
|
651
|
-
Style/RedundantFormat: # new in 1.72
|
|
652
|
-
Enabled: true
|
|
653
|
-
Capybara/FindAllFirst: # new in 2.22
|
|
654
|
-
Enabled: true
|
|
655
|
-
Capybara/RSpec/NegationMatcherAfterVisit: # new in 2.22
|
|
656
|
-
Enabled: true
|
|
657
|
-
RSpec/IncludeExamples: # new in 3.6
|
|
658
|
-
Enabled: true
|
|
659
|
-
Lint/UselessDefaultValueArgument: # new in 1.76
|
|
660
|
-
Enabled: true
|
|
661
|
-
Lint/UselessOr: # new in 1.76
|
|
662
|
-
Enabled: true
|
|
663
|
-
Naming/PredicateMethod: # new in 1.76
|
|
664
|
-
Enabled: true
|
|
665
|
-
Style/EmptyStringInsideInterpolation: # new in 1.76
|
|
666
|
-
Enabled: true
|
|
667
|
-
Style/RedundantArrayFlatten: # new in 1.76
|
|
668
|
-
Enabled: true
|
|
669
|
-
Gemspec/AttributeAssignment: # new in 1.77
|
|
670
|
-
Enabled: true
|
|
671
|
-
Layout/EmptyLinesAfterModuleInclusion: # new in 1.79
|
|
672
|
-
Enabled: true
|
|
673
|
-
Lint/DataDefineOverride: # new in 1.85
|
|
674
|
-
Enabled: true
|
|
675
|
-
Lint/UnreachablePatternBranch: # new in 1.85
|
|
676
|
-
Enabled: true
|
|
677
|
-
Style/ArrayIntersectWithSingleElement: # new in 1.81
|
|
678
|
-
Enabled: true
|
|
679
|
-
Style/CollectionQuerying: # new in 1.77
|
|
680
|
-
Enabled: true
|
|
681
|
-
Style/EmptyClassDefinition: # new in 1.84
|
|
682
|
-
Enabled: true
|
|
683
|
-
Style/FileOpen: # new in 1.85
|
|
684
|
-
Enabled: true
|
|
685
|
-
Style/MapJoin: # new in 1.85
|
|
686
|
-
Enabled: true
|
|
687
|
-
Style/ModuleMemberExistenceCheck: # new in 1.82
|
|
688
|
-
Enabled: true
|
|
689
|
-
Style/NegativeArrayIndex: # new in 1.84
|
|
690
|
-
Enabled: true
|
|
691
|
-
Style/OneClassPerFile: # new in 1.85
|
|
692
|
-
Enabled: true
|
|
693
|
-
Style/PartitionInsteadOfDoubleSelect: # new in 1.85
|
|
694
|
-
Enabled: true
|
|
695
|
-
Style/PredicateWithKind: # new in 1.85
|
|
696
|
-
Enabled: true
|
|
697
|
-
Style/ReduceToHash: # new in 1.85
|
|
698
|
-
Enabled: true
|
|
699
|
-
Style/RedundantMinMaxBy: # new in 1.85
|
|
700
|
-
Enabled: true
|
|
701
|
-
Style/ReverseFind: # new in 1.84
|
|
702
|
-
Enabled: true
|
|
703
|
-
Style/SelectByKind: # new in 1.85
|
|
704
|
-
Enabled: true
|
|
705
|
-
Style/SelectByRange: # new in 1.85
|
|
706
|
-
Enabled: true
|
|
707
|
-
Style/TallyMethod: # new in 1.85
|
|
708
|
-
Enabled: true
|
|
709
|
-
Capybara/RSpec/CurrentPathExpectation: # new in 1.18
|
|
710
|
-
Enabled: true
|
|
711
|
-
Capybara/RSpec/HaveContent: # new in 2.23
|
|
712
|
-
Enabled: true
|
|
713
|
-
Capybara/RSpec/VisibilityMatcher: # new in 1.39
|
|
714
|
-
Enabled: true
|
|
715
|
-
RSpec/LeakyLocalVariable: # new in 3.8
|
|
716
|
-
Enabled: true
|
|
717
|
-
RSpec/Output: # new in 3.9
|
|
718
|
-
Enabled: true
|
|
719
|
-
RSpecRails/HttpStatusNameConsistency: # new in 2.32
|
|
720
|
-
Enabled: true
|
|
721
|
-
Rails/FindByOrAssignmentMemoization: # new in 2.33
|
|
722
|
-
Enabled: true
|
|
723
|
-
Rails/OrderArguments: # new in 2.33
|
|
724
|
-
Enabled: true
|
|
725
|
-
Rails/RedirectBackOrTo: # new in 2.34
|
|
726
|
-
Enabled: true
|
|
727
|
-
RSpec/DiscardedMatcher: # new in 3.10
|
|
728
|
-
Enabled: true
|
|
729
|
-
RSpec/MatchWithSimpleRegex: # new in 3.10
|
|
730
|
-
Enabled: true
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on
|
|
3
|
+
# on 2024-09-03 14:22:19 UTC using RuboCop version 1.66.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
|
|
@@ -8,35 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
# Offense count: 4
|
|
10
10
|
# This cop supports safe autocorrection (--autocorrect).
|
|
11
|
-
Capybara/
|
|
11
|
+
Capybara/CurrentPathExpectation:
|
|
12
12
|
Exclude:
|
|
13
13
|
- 'spec/features/alternate_controller_spec.rb'
|
|
14
14
|
|
|
15
|
-
# Offense count: 6
|
|
16
|
-
Capybara/RSpec/NegationMatcherAfterVisit:
|
|
17
|
-
Exclude:
|
|
18
|
-
- 'spec/features/facets_spec.rb'
|
|
19
|
-
- 'spec/features/modal_spec.rb'
|
|
20
|
-
- 'spec/features/record_view_spec.rb'
|
|
21
|
-
- 'spec/features/search_context_spec.rb'
|
|
22
|
-
- 'spec/features/sitelinks_search_box_spec.rb'
|
|
23
|
-
|
|
24
15
|
# Offense count: 13
|
|
25
|
-
Capybara/
|
|
16
|
+
Capybara/VisibilityMatcher:
|
|
26
17
|
Exclude:
|
|
27
18
|
- 'spec/features/facets_spec.rb'
|
|
28
19
|
- 'spec/features/search_filters_spec.rb'
|
|
29
20
|
- 'spec/helpers/blacklight_helper_spec.rb'
|
|
30
21
|
|
|
31
|
-
# Offense count: 5
|
|
32
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
33
|
-
# Configuration parameters: EnforcedStyle.
|
|
34
|
-
# SupportedStyles: leading, trailing
|
|
35
|
-
Layout/LineContinuationLeadingSpace:
|
|
36
|
-
Exclude:
|
|
37
|
-
- 'lib/generators/blacklight/controller_generator.rb'
|
|
38
|
-
- 'lib/generators/blacklight/user_generator.rb'
|
|
39
|
-
|
|
40
22
|
# Offense count: 1
|
|
41
23
|
# This cop supports safe autocorrection (--autocorrect).
|
|
42
24
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
@@ -53,12 +35,20 @@ Lint/AmbiguousOperator:
|
|
|
53
35
|
- 'spec/models/blacklight/facet_paginator_spec.rb'
|
|
54
36
|
- 'spec/services/blacklight/search_service_spec.rb'
|
|
55
37
|
|
|
56
|
-
# Offense count:
|
|
38
|
+
# Offense count: 45
|
|
57
39
|
# This cop supports safe autocorrection (--autocorrect).
|
|
58
40
|
Lint/AmbiguousRegexpLiteral:
|
|
59
41
|
Exclude:
|
|
42
|
+
- 'spec/controllers/catalog_controller_spec.rb'
|
|
60
43
|
- 'spec/features/alternate_controller_spec.rb'
|
|
44
|
+
- 'spec/helpers/blacklight/url_helper_behavior_spec.rb'
|
|
45
|
+
- 'spec/helpers/catalog_helper_spec.rb'
|
|
61
46
|
- 'spec/models/record_mailer_spec.rb'
|
|
47
|
+
- 'spec/views/catalog/_document.html.erb_spec.rb'
|
|
48
|
+
- 'spec/views/catalog/_search_header.erb_spec.rb'
|
|
49
|
+
- 'spec/views/catalog/_sort_and_per_page.html.erb_spec.rb'
|
|
50
|
+
- 'spec/views/catalog/index.html.erb_spec.rb'
|
|
51
|
+
- 'spec/views/catalog/show.html.erb_spec.rb'
|
|
62
52
|
|
|
63
53
|
# Offense count: 1
|
|
64
54
|
Lint/BinaryOperatorWithIdenticalOperands:
|
|
@@ -91,7 +81,7 @@ Lint/EmptyFile:
|
|
|
91
81
|
Exclude:
|
|
92
82
|
- 'spec/components/blacklight/document_metadata_component_spec.rb'
|
|
93
83
|
|
|
94
|
-
# Offense count:
|
|
84
|
+
# Offense count: 48
|
|
95
85
|
# Configuration parameters: AllowedParentClasses.
|
|
96
86
|
Lint/MissingSuper:
|
|
97
87
|
Enabled: false
|
|
@@ -106,12 +96,12 @@ Lint/ParenthesesAsGroupedExpression:
|
|
|
106
96
|
- 'spec/features/search_spec.rb'
|
|
107
97
|
- 'spec/models/blacklight/solr/repository_spec.rb'
|
|
108
98
|
|
|
109
|
-
# Offense count:
|
|
110
|
-
Lint/
|
|
99
|
+
# Offense count: 2
|
|
100
|
+
Lint/ShadowingOuterLocalVariable:
|
|
111
101
|
Exclude:
|
|
112
|
-
- 'spec/models/blacklight/
|
|
102
|
+
- 'spec/models/blacklight/configuration_spec.rb'
|
|
113
103
|
|
|
114
|
-
# Offense count:
|
|
104
|
+
# Offense count: 83
|
|
115
105
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
|
116
106
|
Metrics/AbcSize:
|
|
117
107
|
Max: 46
|
|
@@ -122,12 +112,12 @@ Metrics/AbcSize:
|
|
|
122
112
|
Metrics/BlockLength:
|
|
123
113
|
Max: 26
|
|
124
114
|
|
|
125
|
-
# Offense count:
|
|
115
|
+
# Offense count: 42
|
|
126
116
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
127
117
|
Metrics/CyclomaticComplexity:
|
|
128
|
-
Max:
|
|
118
|
+
Max: 14
|
|
129
119
|
|
|
130
|
-
# Offense count:
|
|
120
|
+
# Offense count: 78
|
|
131
121
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
132
122
|
Metrics/MethodLength:
|
|
133
123
|
Max: 27
|
|
@@ -142,7 +132,7 @@ Metrics/ModuleLength:
|
|
|
142
132
|
Metrics/ParameterLists:
|
|
143
133
|
Max: 6
|
|
144
134
|
|
|
145
|
-
# Offense count:
|
|
135
|
+
# Offense count: 36
|
|
146
136
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
147
137
|
Metrics/PerceivedComplexity:
|
|
148
138
|
Max: 14
|
|
@@ -168,19 +158,10 @@ Naming/MethodParameterName:
|
|
|
168
158
|
- 'lib/blacklight/solr/document.rb'
|
|
169
159
|
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
|
170
160
|
|
|
171
|
-
# Offense count: 3
|
|
172
|
-
# Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
|
|
173
|
-
# AllowedMethods: call
|
|
174
|
-
# WaywardPredicates: infinite?, nonzero?
|
|
175
|
-
Naming/PredicateMethod:
|
|
176
|
-
Exclude:
|
|
177
|
-
- 'app/controllers/concerns/blacklight/catalog.rb'
|
|
178
|
-
- 'lib/blacklight/solr/repository.rb'
|
|
179
|
-
|
|
180
161
|
# Offense count: 9
|
|
181
162
|
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
|
182
163
|
# SupportedStyles: snake_case, normalcase, non_integer
|
|
183
|
-
# AllowedIdentifiers:
|
|
164
|
+
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
|
|
184
165
|
Naming/VariableNumber:
|
|
185
166
|
Exclude:
|
|
186
167
|
- 'spec/lib/blacklight/search_state_spec.rb'
|
|
@@ -194,13 +175,13 @@ RSpec/BeforeAfterAll:
|
|
|
194
175
|
- 'spec/models/blacklight/document/dublin_core_spec.rb'
|
|
195
176
|
- 'spec/models/blacklight/solr/document_spec.rb'
|
|
196
177
|
|
|
197
|
-
# Offense count:
|
|
178
|
+
# Offense count: 109
|
|
198
179
|
# Configuration parameters: Prefixes, AllowedPatterns.
|
|
199
180
|
# Prefixes: when, with, without
|
|
200
181
|
RSpec/ContextWording:
|
|
201
182
|
Enabled: false
|
|
202
183
|
|
|
203
|
-
# Offense count:
|
|
184
|
+
# Offense count: 138
|
|
204
185
|
# Configuration parameters: CountAsOne.
|
|
205
186
|
RSpec/ExampleLength:
|
|
206
187
|
Max: 33
|
|
@@ -227,7 +208,6 @@ RSpec/InstanceVariable:
|
|
|
227
208
|
- 'spec/views/catalog/index.atom.builder_spec.rb'
|
|
228
209
|
|
|
229
210
|
# Offense count: 4
|
|
230
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
231
211
|
RSpec/IteratedExpectation:
|
|
232
212
|
Exclude:
|
|
233
213
|
- 'spec/models/blacklight/solr/response/group_response_spec.rb'
|
|
@@ -266,22 +246,22 @@ RSpec/MessageSpies:
|
|
|
266
246
|
- 'spec/models/blacklight/suggest_search_spec.rb'
|
|
267
247
|
- 'spec/presenters/blacklight/field_presenter_spec.rb'
|
|
268
248
|
|
|
269
|
-
# Offense count:
|
|
249
|
+
# Offense count: 390
|
|
270
250
|
RSpec/MultipleExpectations:
|
|
271
251
|
Max: 16
|
|
272
252
|
|
|
273
|
-
# Offense count:
|
|
253
|
+
# Offense count: 292
|
|
274
254
|
# Configuration parameters: AllowSubject.
|
|
275
255
|
RSpec/MultipleMemoizedHelpers:
|
|
276
256
|
Max: 14
|
|
277
257
|
|
|
278
|
-
# Offense count:
|
|
258
|
+
# Offense count: 399
|
|
279
259
|
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
|
|
280
260
|
# SupportedStyles: always, named_only
|
|
281
261
|
RSpec/NamedSubject:
|
|
282
262
|
Enabled: false
|
|
283
263
|
|
|
284
|
-
# Offense count:
|
|
264
|
+
# Offense count: 60
|
|
285
265
|
# Configuration parameters: AllowedGroups.
|
|
286
266
|
RSpec/NestedGroups:
|
|
287
267
|
Max: 5
|
|
@@ -304,6 +284,7 @@ RSpec/RepeatedExampleGroupDescription:
|
|
|
304
284
|
|
|
305
285
|
# Offense count: 1
|
|
306
286
|
# This cop supports safe autocorrection (--autocorrect).
|
|
287
|
+
# Configuration parameters: AutoCorrect.
|
|
307
288
|
RSpec/ScatteredLet:
|
|
308
289
|
Exclude:
|
|
309
290
|
- 'spec/views/catalog/index.atom.builder_spec.rb'
|
|
@@ -320,7 +301,6 @@ RSpec/StubbedMock:
|
|
|
320
301
|
- 'spec/presenters/blacklight/field_presenter_spec.rb'
|
|
321
302
|
|
|
322
303
|
# Offense count: 1
|
|
323
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
324
304
|
RSpec/SubjectDeclaration:
|
|
325
305
|
Exclude:
|
|
326
306
|
- 'spec/models/blacklight/document/cache_key_spec.rb'
|
|
@@ -335,21 +315,10 @@ RSpec/SubjectStub:
|
|
|
335
315
|
- 'spec/presenters/blacklight/document_presenter_spec.rb'
|
|
336
316
|
- 'spec/services/blacklight/search_service_spec.rb'
|
|
337
317
|
|
|
338
|
-
# Offense count:
|
|
318
|
+
# Offense count: 80
|
|
339
319
|
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
|
|
340
320
|
RSpec/VerifiedDoubles:
|
|
341
|
-
|
|
342
|
-
- 'spec/components/blacklight/search/facet_suggest_input_spec.rb'
|
|
343
|
-
- 'spec/components/blacklight/system/dropdown_component_spec.rb'
|
|
344
|
-
- 'spec/controllers/catalog_controller_spec.rb'
|
|
345
|
-
- 'spec/helpers/blacklight/configuration_helper_behavior_spec.rb'
|
|
346
|
-
- 'spec/helpers/blacklight/url_helper_behavior_spec.rb'
|
|
347
|
-
- 'spec/helpers/catalog_helper_spec.rb'
|
|
348
|
-
- 'spec/presenters/blacklight/document_presenter_spec.rb'
|
|
349
|
-
- 'spec/presenters/blacklight/field_presenter_spec.rb'
|
|
350
|
-
- 'spec/presenters/blacklight/thumbnail_presenter_spec.rb'
|
|
351
|
-
- 'spec/services/blacklight/search_service_spec.rb'
|
|
352
|
-
- 'spec/views/catalog/_document_list.html.erb_spec.rb'
|
|
321
|
+
Enabled: false
|
|
353
322
|
|
|
354
323
|
# Offense count: 4
|
|
355
324
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
@@ -359,7 +328,9 @@ Rails/Date:
|
|
|
359
328
|
Exclude:
|
|
360
329
|
- 'spec/models/search_spec.rb'
|
|
361
330
|
|
|
362
|
-
# Offense count:
|
|
331
|
+
# Offense count: 20
|
|
332
|
+
# Configuration parameters: Include.
|
|
333
|
+
# Include: app/helpers/**/*.rb
|
|
363
334
|
Rails/HelperInstanceVariable:
|
|
364
335
|
Exclude:
|
|
365
336
|
- 'app/helpers/blacklight/catalog_helper_behavior.rb'
|
|
@@ -369,6 +340,8 @@ Rails/HelperInstanceVariable:
|
|
|
369
340
|
- 'app/helpers/blacklight/render_partials_helper_behavior.rb'
|
|
370
341
|
|
|
371
342
|
# Offense count: 2
|
|
343
|
+
# Configuration parameters: Include.
|
|
344
|
+
# Include: spec/**/*.rb, test/**/*.rb
|
|
372
345
|
Rails/I18nLocaleAssignment:
|
|
373
346
|
Exclude:
|
|
374
347
|
- 'spec/helpers/blacklight_helper_spec.rb'
|
|
@@ -378,7 +351,7 @@ Rails/OutputSafety:
|
|
|
378
351
|
Exclude:
|
|
379
352
|
- 'app/presenters/blacklight/rendering/join.rb'
|
|
380
353
|
|
|
381
|
-
# Offense count:
|
|
354
|
+
# Offense count: 14
|
|
382
355
|
Security/Eval:
|
|
383
356
|
Exclude:
|
|
384
357
|
- 'spec/models/blacklight/solr/response_spec.rb'
|
|
@@ -396,7 +369,7 @@ Style/Alias:
|
|
|
396
369
|
- 'lib/blacklight/solr/response.rb'
|
|
397
370
|
- 'lib/blacklight/solr/response/group_response.rb'
|
|
398
371
|
|
|
399
|
-
# Offense count:
|
|
372
|
+
# Offense count: 3
|
|
400
373
|
# This cop supports safe autocorrection (--autocorrect).
|
|
401
374
|
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
|
402
375
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
@@ -408,12 +381,10 @@ Style/BlockDelimiters:
|
|
|
408
381
|
- 'app/views/catalog/index.rss.builder'
|
|
409
382
|
- 'app/views/catalog/opensearch.xml.builder'
|
|
410
383
|
|
|
411
|
-
# Offense count:
|
|
384
|
+
# Offense count: 52
|
|
412
385
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
413
|
-
# Configuration parameters: EnforcedStyle
|
|
386
|
+
# Configuration parameters: EnforcedStyle.
|
|
414
387
|
# SupportedStyles: nested, compact
|
|
415
|
-
# SupportedStylesForClasses: ~, nested, compact
|
|
416
|
-
# SupportedStylesForModules: ~, nested, compact
|
|
417
388
|
Style/ClassAndModuleChildren:
|
|
418
389
|
Enabled: false
|
|
419
390
|
|
|
@@ -438,7 +409,7 @@ Style/DocumentDynamicEvalDefinition:
|
|
|
438
409
|
- 'app/builders/blacklight/action_builder.rb'
|
|
439
410
|
- 'lib/blacklight/configuration/fields.rb'
|
|
440
411
|
|
|
441
|
-
# Offense count:
|
|
412
|
+
# Offense count: 133
|
|
442
413
|
# Configuration parameters: AllowedConstants.
|
|
443
414
|
Style/Documentation:
|
|
444
415
|
Enabled: false
|
|
@@ -457,6 +428,14 @@ Style/ExpandPathArguments:
|
|
|
457
428
|
- 'lib/generators/blacklight/test_support_generator.rb'
|
|
458
429
|
- 'lib/generators/blacklight/user_generator.rb'
|
|
459
430
|
|
|
431
|
+
# Offense count: 16
|
|
432
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
433
|
+
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
|
|
434
|
+
# SupportedStyles: annotated, template, unannotated
|
|
435
|
+
# AllowedMethods: redirect
|
|
436
|
+
Style/FormatStringToken:
|
|
437
|
+
EnforcedStyle: template
|
|
438
|
+
|
|
460
439
|
# Offense count: 6
|
|
461
440
|
# This cop supports safe autocorrection (--autocorrect).
|
|
462
441
|
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
|
@@ -468,7 +447,7 @@ Style/GuardClause:
|
|
|
468
447
|
- 'app/helpers/blacklight/catalog_helper_behavior.rb'
|
|
469
448
|
- 'lib/blacklight/solr/search_builder_behavior.rb'
|
|
470
449
|
|
|
471
|
-
# Offense count:
|
|
450
|
+
# Offense count: 29
|
|
472
451
|
# This cop supports safe autocorrection (--autocorrect).
|
|
473
452
|
Style/IfUnlessModifier:
|
|
474
453
|
Enabled: false
|
|
@@ -490,7 +469,7 @@ Style/MultipleComparison:
|
|
|
490
469
|
|
|
491
470
|
# Offense count: 2
|
|
492
471
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
493
|
-
# Configuration parameters: EnforcedStyle
|
|
472
|
+
# Configuration parameters: EnforcedStyle.
|
|
494
473
|
# SupportedStyles: literals, strict
|
|
495
474
|
Style/MutableConstant:
|
|
496
475
|
Exclude:
|
|
@@ -553,7 +532,7 @@ Style/RescueStandardError:
|
|
|
553
532
|
- 'lib/blacklight/configuration/fields.rb'
|
|
554
533
|
- 'lib/railties/blacklight.rake'
|
|
555
534
|
|
|
556
|
-
# Offense count:
|
|
535
|
+
# Offense count: 11
|
|
557
536
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
558
537
|
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
|
559
538
|
# AllowedMethods: present?, blank?, presence, try, try!
|
|
@@ -582,7 +561,7 @@ Style/SoleNestedConditional:
|
|
|
582
561
|
Exclude:
|
|
583
562
|
- 'app/controllers/concerns/blacklight/controller.rb'
|
|
584
563
|
|
|
585
|
-
# Offense count:
|
|
564
|
+
# Offense count: 32
|
|
586
565
|
# This cop supports safe autocorrection (--autocorrect).
|
|
587
566
|
# Configuration parameters: MinSize.
|
|
588
567
|
# SupportedStyles: percent, brackets
|