sul-dlss/SearchWorks

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-06-17 15:00:16 UTC using RuboCop version 1.64.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 128
# Configuration parameters: EnforcedStyle.
# SupportedStyles: link_or_button, strict
Capybara/ClickLinkOrButtonStyle:
  Enabled: false

# Offense count: 21
Capybara/SpecificActions:
  Exclude:
    - 'spec/features/blacklight_customizations/emailing_records_spec.rb'
    - 'spec/features/brief_view_spec.rb'
    - 'spec/features/image_collection_spec.rb'
    - 'spec/features/merged_file_collection_spec.rb'
    - 'spec/features/merged_image_collections_spec.rb'
    - 'spec/features/mhld_spec.rb'
    - 'spec/features/responsive/record_toolbar_responsive_spec.rb'
    - 'spec/features/skip_to_nav_spec.rb'
    - 'spec/features/sort_and_per_page_dropdown_spec.rb'
    - 'spec/features/tabbed_selections_spec.rb'

# Offense count: 64
Capybara/SpecificMatcher:
  Enabled: false

# Offense count: 172
Capybara/VisibilityMatcher:
  Enabled: false

# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: with_first_argument, with_fixed_indentation
Layout/ArgumentAlignment:
  Exclude:
    - 'app/controllers/catalog_controller.rb'
    - 'app/helpers/feedback_form_helper.rb'
    - 'spec/models/eds/repository_spec.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith, Severity.
# SupportedStylesAlignWith: start_of_line, begin
Layout/BeginEndAlignment:
  Exclude:
    - 'app/models/performance_alerts.rb'

# Offense count: 12
# This cop supports safe autocorrection (--autocorrect).
Layout/BlockEndNewline:
  Exclude:
    - 'spec/lib/holdings/library_spec.rb'
    - 'spec/lib/holdings/location_spec.rb'
    - 'spec/models/concerns/cjk_query_spec.rb'
    - 'spec/models/concerns/collection_member_spec.rb'
    - 'spec/models/concerns/digital_collection_spec.rb'
    - 'spec/models/concerns/index_authors_spec.rb'
    - 'spec/views/collection_members/_file_collection_members.html.erb_spec.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Layout/ClosingParenthesisIndentation:
  Exclude:
    - 'app/views/catalog/index.atom.builder'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment.
Layout/CommentIndentation:
  Exclude:
    - 'app/controllers/catalog_controller.rb'

# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
Layout/ElseAlignment:
  Exclude:
    - 'app/components/access_panels/library_component.rb'
    - 'app/helpers/bookmarks_helper.rb'
    - 'app/models/concerns/schema_dot_org.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLineAfterGuardClause:
  Exclude:
    - 'lib/hours_request.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
Layout/EmptyLineBetweenDefs:
  Exclude:
    - 'app/models/concerns/cjk_query.rb'

# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLines:
  Exclude:
    - 'app/models/concerns/cjk_query.rb'
    - 'app/views/catalog/index.atom.builder'
    - 'config/initializers/new_framework_defaults_7_1.rb'
    - 'spec/views/catalog/thumbnails/_collection_thumbnail.html.erb_spec.rb'

# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
# AllowedMethods: alias_method, public, protected, private
Layout/EmptyLinesAroundAttributeAccessor:
  Exclude:
    - 'app/models/concerns/eds_subjects.rb'
    - 'app/models/marc_fields/marc_field_wrapper.rb'
    - 'app/models/search_tips.rb'
    - 'app/services/eds/search_service.rb'
    - 'config/initializers/okcomputer.rb'
    - 'spec/presenters/facet_options_presenter_spec.rb'
    - 'spec/support/stub_article_service.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, no_empty_lines
Layout/EmptyLinesAroundBlockBody:
  Exclude:
    - 'app/views/catalog/index.atom.builder'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith, Severity.
# SupportedStylesAlignWith: keyword, variable, start_of_line
Layout/EndAlignment:
  Exclude:
    - 'app/components/access_panels/library_component.rb'
    - 'app/helpers/bookmarks_helper.rb'
    - 'app/models/concerns/schema_dot_org.rb'

# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
Layout/ExtraSpacing:
  Exclude:
    - 'app/views/catalog/index.atom.builder'
    - 'spec/controllers/concerns/replace_special_quotes_spec.rb'
    - 'spec/features/article_record_toolbar_spec.rb'
    - 'spec/models/concerns/marc_links_spec.rb'
    - 'spec/models/marc_fields/marc_field_wrapper_spec.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
Layout/FirstArgumentIndentation:
  Exclude:
    - 'spec/views/catalog/record/_marc_contents_summary.html.erb_spec.rb'
    - 'spec/views/catalog/record/_marc_subjects.html.erb_spec.rb'

# Offense count: 46
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Layout/FirstArrayElementIndentation:
  EnforcedStyle: consistent

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
Layout/FirstHashElementIndentation:
  Exclude:
    - 'app/controllers/articles_controller.rb'
    - 'app/controllers/catalog_controller.rb'

# Offense count: 131
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/HashAlignment:
  Exclude:
    - 'app/controllers/articles_controller.rb'
    - 'app/controllers/catalog_controller.rb'
    - 'app/models/concerns/eds_links.rb'
    - 'app/models/eds/session.rb'
    - 'app/models/marc_fields/linked_related_works.rb'
    - 'app/views/catalog/index.atom.builder'
    - 'spec/features/article_searching_spec.rb'
    - 'spec/models/concerns/cjk_query_spec.rb'

# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Width, AllowedPatterns.
Layout/IndentationWidth:
  Exclude:
    - 'app/components/access_panels/library_component.rb'
    - 'app/controllers/concerns/stanford_work_facet.rb'
    - 'app/helpers/application_helper.rb'
    - 'app/helpers/bookmarks_helper.rb'
    - 'app/models/concerns/schema_dot_org.rb'
    - 'app/models/marc_fields/marc_field_wrapper.rb'

# Offense count: 10
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
Layout/LeadingCommentSpace:
  Exclude:
    - 'app/controllers/catalog_controller.rb'
    - 'app/helpers/bookmarks_helper.rb'
    - 'app/helpers/xml_api_helper.rb'
    - 'app/models/application_record.rb'
    - 'app/views/catalog/index.mobile.builder'
    - 'spec/components/access_panels/at_the_library_component_spec.rb'
    - 'spec/features/file_collection_spec.rb'
    - 'spec/features/image_collection_spec.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: space, no_space
Layout/LineContinuationSpacing:
  Exclude:
    - 'spec/features/alternate_catalog_spec.rb'
    - 'spec/views/catalog/_alternate_catalog.html.erb_spec.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented
Layout/LineEndStringConcatenationIndentation:
  Exclude:
    - 'spec/features/alternate_catalog_spec.rb'
    - 'spec/views/catalog/_alternate_catalog.html.erb_spec.rb'

# Offense count: 11
# This cop supports safe autocorrection (--autocorrect).
Layout/MultilineBlockLayout:
  Exclude:
    - 'spec/lib/holdings/library_spec.rb'
    - 'spec/lib/holdings/location_spec.rb'
    - 'spec/models/concerns/cjk_query_spec.rb'
    - 'spec/models/concerns/collection_member_spec.rb'
    - 'spec/models/concerns/digital_collection_spec.rb'
    - 'spec/models/concerns/index_authors_spec.rb'
    - 'spec/views/collection_members/_file_collection_members.html.erb_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: symmetrical, new_line, same_line
Layout/MultilineHashBraceLayout:
  Exclude:
    - 'app/helpers/browse_helper.rb'

# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: symmetrical, new_line, same_line
Layout/MultilineMethodCallBraceLayout:
  Exclude:
    - 'app/views/catalog/index.atom.builder'
    - 'spec/models/eds/repository_spec.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented, indented_relative_to_receiver
Layout/MultilineMethodCallIndentation:
  Exclude:
    - 'config/environments/production.rb'

# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented
Layout/MultilineOperationIndentation:
  Exclude:
    - 'app/helpers/feedback_form_helper.rb'
    - 'lib/search_query_modifier.rb'
    - 'spec/helpers/application_helper_spec.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Layout/RescueEnsureAlignment:
  Exclude:
    - 'app/models/performance_alerts.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Layout/SpaceAfterComma:
  Exclude:
    - 'app/views/catalog/index.atom.builder'
    - 'app/views/catalog/opensearch.xml.builder'

# Offense count: 20
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
# SupportedStylesForExponentOperator: space, no_space
# SupportedStylesForRationalLiterals: space, no_space
Layout/SpaceAroundOperators:
  Exclude:
    - 'app/views/catalog/index.atom.builder'
    - 'app/views/catalog/index.rss.builder'
    - 'app/views/catalog/opensearch.xml.builder'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment.
Layout/SpaceBeforeFirstArg:
  Exclude:
    - 'app/views/catalog/index.atom.builder'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBrackets: space, no_space
Layout/SpaceInsideArrayLiteralBrackets:
  Exclude:
    - 'config/environments/production.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceInsideBlockBraces:
  Exclude:
    - 'spec/models/search_builder_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceInsideHashLiteralBraces:
  Exclude:
    - 'spec/helpers/catalog_helper_spec.rb'

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: space, compact, no_space
Layout/SpaceInsideParens:
  Exclude:
    - 'app/views/catalog/index.atom.builder'
    - 'spec/components/access_panels/at_the_library_component_spec.rb'

# Offense count: 10
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowInHeredoc.
Layout/TrailingWhitespace:
  Exclude:
    - 'app/views/catalog/index.atom.builder'
    - 'config/initializers/new_framework_defaults_7_1.rb'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedMethods, AllowedPatterns.
Lint/AmbiguousBlockAssociation:
  Exclude:
    - 'spec/controllers/catalog_controller_spec.rb'

# Offense count: 13
# This cop supports safe autocorrection (--autocorrect).
Lint/AmbiguousRegexpLiteral:
  Exclude:
    - 'spec/controllers/concerns/callnumber_search_spec.rb'
    - 'spec/helpers/collection_helper_spec.rb'
    - 'spec/helpers/masthead_helper_spec.rb'
    - 'spec/helpers/record_helper_spec.rb'
    - 'spec/models/concerns/mods_data_spec.rb'
    - 'spec/tasks/fixtures_indexer_spec.rb'

# Offense count: 1
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
Lint/DuplicateBranch:
  Exclude:
    - 'app/models/concerns/eds_subjects.rb'

# Offense count: 1
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Lint/EmptyBlock:
  Exclude:
    - 'app/controllers/bookmarks_controller.rb'

# Offense count: 7
# Configuration parameters: AllowedParentClasses.
Lint/MissingSuper:
  Exclude:
    - 'app/components/access_panels/base.rb'
    - 'app/components/access_panels/layout_component.rb'
    - 'app/components/access_panels/library_component.rb'
    - 'app/components/access_panels/library_location_component.rb'
    - 'app/components/advanced_search_range_limit_component.rb'
    - 'app/components/searchworks/response/facet_group_component.rb'
    - 'app/models/marc_fields/linked_author.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Lint/ParenthesesAsGroupedExpression:
  Exclude:
    - 'spec/features/home_page_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Lint/RedundantCopDisableDirective:
  Exclude:
    - 'spec/models/marc_fields/linked_author_spec.rb'

# Offense count: 13
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, consistent
Lint/SymbolConversion:
  Exclude:
    - 'app/controllers/catalog_controller.rb'
    - 'spec/models/citation_spec.rb'
    - 'spec/models/json_results_document_presenter_spec.rb'

# Offense count: 12
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect, IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
  Exclude:
    - 'app/models/article_search_builder.rb'
    - 'app/models/marc_fields/issn.rb'
    - 'config/initializers/devise.rb'
    - 'lib/tasks/searchworks.rake'

# Offense count: 9
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect, AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
Lint/UnusedMethodArgument:
  Exclude:
    - 'app/components/advanced_search_range_limit_component.rb'
    - 'app/components/metadata_field_layout_component.rb'
    - 'app/controllers/catalog_controller.rb'
    - 'app/helpers/bookmarks_helper.rb'
    - 'app/helpers/collection_helper.rb'
    - 'app/helpers/thumbnail_helper.rb'
    - 'app/services/eds/search_service.rb'

# Offense count: 1
Naming/AccessorMethodName:
  Exclude:
    - 'app/helpers/collection_access_point_helper.rb'

# Offense count: 58
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: lowercase, uppercase
Naming/HeredocDelimiterCase:
  Exclude:
    - 'spec/fixtures/marc_records/marc_856_fixtures.rb'
    - 'spec/fixtures/marc_records/marc_metadata_fixtures.rb'
    - 'spec/fixtures/mods_records/mods_fixtures.rb'

# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
  Exclude:
    - 'app/controllers/articles_controller.rb'
    - 'app/controllers/catalog_controller.rb'
    - 'app/helpers/article_helper.rb'
    - 'app/models/concerns/solr_set.rb'

# Offense count: 3
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# ForbiddenPrefixes: is_, has_, have_
# AllowedMethods: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
  Exclude:
    - 'app/models/concerns/collection_member.rb'
    - 'app/models/concerns/database_document.rb'
    - 'app/models/concerns/digital_collection.rb'

# Offense count: 23
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
Naming/VariableNumber:
  Exclude:
    - 'app/helpers/xml_api_helper.rb'
    - 'app/models/hoover_open_url_request.rb'
    - 'spec/fixtures/marc_records/marc_856_fixtures.rb'
    - 'spec/fixtures/mods_records/mods_fixtures.rb'
    - 'spec/helpers/results_document_helper_spec.rb'
    - 'spec/models/concerns/cjk_query_spec.rb'

# Offense count: 17
RSpec/AnyInstance:
  Exclude:
    - 'spec/controllers/catalog_controller_spec.rb'
    - 'spec/controllers/feedback_forms_controller_spec.rb'
    - 'spec/features/access_panels/online_spec.rb'
    - 'spec/features/article_display_spec.rb'
    - 'spec/lib/purl_embed_spec.rb'
    - 'spec/presenters/sms_presenter_spec.rb'
    - 'spec/support/stub_article_service.rb'
    - 'spec/support/stub_oclc_response.rb'
    - 'spec/tasks/fixtures_indexer_spec.rb'

# Offense count: 2
RSpec/BeforeAfterAll:
  Exclude:
    - 'spec/helpers/results_document_helper_spec.rb'
    - 'spec/lib/sms_spec.rb'

# Offense count: 18
# This cop supports safe autocorrection (--autocorrect).
RSpec/ContextMethod:
  Exclude:
    - 'spec/helpers/article_helper_spec.rb'
    - 'spec/models/concerns/eds_links_spec.rb'
    - 'spec/models/concerns/eds_subjects_spec.rb'
    - 'spec/models/marc_fields/linked_related_works_spec.rb'
    - 'spec/routing/article_routes_spec.rb'
    - 'spec/services/eds/search_service_spec.rb'

# Offense count: 212
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
  Enabled: false

# Offense count: 81
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
# SupportedStyles: described_class, explicit
RSpec/DescribedClass:
  Enabled: false

# Offense count: 238
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowConsecutiveOneLiners.
RSpec/EmptyLineAfterExample:
  Enabled: false

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
RSpec/EmptyLineAfterFinalLet:
  Exclude:
    - 'spec/features/access_panels/exhibit_spec.rb'
    - 'spec/models/marc_extractor_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
RSpec/EmptyLineAfterSubject:
  Exclude:
    - 'spec/components/access_panels/library_component_spec.rb'

# Offense count: 221
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
  Max: 30

# Offense count: 403
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
# DisallowedExamples: works
RSpec/ExampleWording:
  Enabled: false

# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
RSpec/ExcessiveDocstringSpacing:
  Exclude:
    - 'spec/features/responsive/record_toolbar_responsive_spec.rb'
    - 'spec/features/responsive/results_toolbar_spec.rb'
    - 'spec/features/responsive/search_toolbar_responsive_spec.rb'
    - 'spec/mailers/search_works_record_mailer_spec.rb'

# Offense count: 36
RSpec/ExpectInHook:
  Enabled: false

# Offense count: 2
RSpec/IdenticalEqualityAssertion:
  Exclude:
    - 'spec/controllers/concerns/callnumber_search_spec.rb'
    - 'spec/models/marc_fields/marc_field_wrapper_spec.rb'

# Offense count: 4
# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
RSpec/IndexedLet:
  Exclude:
    - 'spec/controllers/recent_selections_controller_spec.rb'
    - 'spec/models/concerns/cjk_query_spec.rb'

# Offense count: 18
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
  Exclude:
    - 'spec/helpers/bookmarks_helper_spec.rb'
    - 'spec/helpers/results_document_helper_spec.rb'
    - 'spec/services/eds/search_service_spec.rb'

# Offense count: 13
RSpec/IteratedExpectation:
  Exclude:
    - 'spec/lib/holdings_spec.rb'
    - 'spec/lib/search_works_marc/instrumentation_spec.rb'
    - 'spec/models/concerns/collection_member_spec.rb'
    - 'spec/models/concerns/digital_collection_spec.rb'
    - 'spec/models/concerns/eds_links_spec.rb'
    - 'spec/models/concerns/eds_subjects_spec.rb'
    - 'spec/models/concerns/index_links_spec.rb'
    - 'spec/models/concerns/solr_bookplates_spec.rb'
    - 'spec/tasks/fixtures_indexer_spec.rb'

# Offense count: 67
# This cop supports safe autocorrection (--autocorrect).
RSpec/LeadingSubject:
  Enabled: false

# Offense count: 6
RSpec/LetSetup:
  Exclude:
    - 'spec/controllers/recent_selections_controller_spec.rb'
    - 'spec/presenters/facet_options_presenter_spec.rb'

# Offense count: 4
RSpec/MultipleDescribes:
  Exclude:
    - 'spec/features/connection_form_spec.rb'
    - 'spec/features/feedback_form_spec.rb'
    - 'spec/features/preview_spec.rb'
    - 'spec/features/quick_report_spec.rb'

# Offense count: 607
RSpec/MultipleExpectations:
  Max: 24

# Offense count: 84
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
  Max: 10

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
RSpec/MultipleSubjects:
  Exclude:
    - 'spec/services/eds/search_service_spec.rb'

# Offense count: 297
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
  Enabled: false

# Offense count: 106
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
  Max: 6

# Offense count: 1
# Configuration parameters: AllowedPatterns.
# AllowedPatterns: ^expect_, ^assert_
RSpec/NoExpectationExample:
  Exclude:
    - 'spec/lib/purl_embed_spec.rb'

# Offense count: 9
RSpec/PendingWithoutReason:
  Exclude:
    - 'spec/components/access_panels/at_the_library_component_spec.rb'
    - 'spec/features/marc_results_metadata_spec.rb'
    - 'spec/features/preview_spec.rb'
    - 'spec/views/catalog/record/_callnumber_browse.html.erb_spec.rb'
    - 'spec/views/catalog/record/_mods_bibliographic.html.erb_spec.rb'

# Offense count: 42
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
# SupportedStyles: inflected, explicit
RSpec/PredicateMatcher:
  Exclude:
    - 'spec/components/access_panels/online_component_spec.rb'
    - 'spec/helpers/application_helper_spec.rb'
    - 'spec/helpers/bookmarks_helper_spec.rb'
    - 'spec/helpers/collection_access_point_helper_spec.rb'
    - 'spec/helpers/feedback_form_helper_spec.rb'
    - 'spec/lib/search_query_modifier_spec.rb'
    - 'spec/models/concerns/collection_member_spec.rb'
    - 'spec/models/concerns/database_document_spec.rb'
    - 'spec/models/concerns/eds_links_spec.rb'
    - 'spec/models/eds/repository_spec.rb'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
RSpec/ReceiveCounts:
  Exclude:
    - 'spec/helpers/collection_access_point_helper_spec.rb'
    - 'spec/tasks/fixtures_indexer_spec.rb'
    - 'spec/views/collection_members/_file_collection_members.html.erb_spec.rb'

# Offense count: 9
RSpec/RepeatedDescription:
  Exclude:
    - 'spec/controllers/catalog_controller_spec.rb'
    - 'spec/features/blacklight_customizations/devise_spec.rb'

# Offense count: 4
RSpec/RepeatedExample:
  Exclude:
    - 'spec/controllers/catalog_controller_spec.rb'
    - 'spec/models/marc_fields/unlinked_series_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect.
RSpec/ScatteredLet:
  Exclude:
    - 'spec/presenters/sms_presenter_spec.rb'

# Offense count: 57
RSpec/StubbedMock:
  Enabled: false

# Offense count: 6
RSpec/SubjectDeclaration:
  Exclude:
    - 'spec/controllers/concerns/callnumber_search_spec.rb'
    - 'spec/models/bookplate_spec.rb'
    - 'spec/models/concerns/solr_bookplates_spec.rb'
    - 'spec/models/concerns/stacks_images_spec.rb'
    - 'spec/models/eds/date_range_parser_spec.rb'
    - 'spec/models/user_spec.rb'

# Offense count: 20
RSpec/SubjectStub:
  Exclude:
    - 'spec/components/access_panels/sfx_component_spec.rb'
    - 'spec/controllers/concerns/callnumber_search_spec.rb'
    - 'spec/models/concerns/solr_set_spec.rb'
    - 'spec/models/performance_alerts_spec.rb'
    - 'spec/models/search_builder_spec.rb'
    - 'spec/models/sfx_data_spec.rb'
    - 'spec/models/user_spec.rb'
    - 'spec/presenters/article_fulltext_link_presenter_spec.rb'
    - 'spec/presenters/facet_options_presenter_spec.rb'
    - 'spec/presenters/presenter_format_spec.rb'

# Offense count: 69
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
  Enabled: false

# Offense count: 2
RSpec/VoidExpect:
  Exclude:
    - 'spec/controllers/concerns/database_access_point_spec.rb'

# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/ActionControllerFlashBeforeRender:
  Exclude:
    - 'app/controllers/articles_controller.rb'
    - 'app/controllers/catalog_controller.rb'
    - 'app/controllers/feedback_forms_controller.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/ApplicationRecord:
  Exclude:
    - 'app/models/user.rb'

# Offense count: 12
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
Rails/Blank:
  Exclude:
    - 'app/components/access_panels/online_component.rb'
    - 'app/controllers/availability_controller.rb'
    - 'app/controllers/concerns/advanced_search_params_mapping.rb'
    - 'app/helpers/article_helper.rb'
    - 'app/helpers/masthead_helper.rb'
    - 'app/models/citation.rb'
    - 'app/models/concerns/extent.rb'
    - 'app/models/concerns/marc_bound_with_note.rb'
    - 'app/models/marc_field.rb'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/CompactBlank:
  Exclude:
    - 'app/controllers/concerns/email_validation.rb'
    - 'app/models/concerns/extent.rb'
    - 'app/models/hoover_open_url_request.rb'
    - 'app/models/marc_fields/language.rb'
    - 'app/models/marc_fields/subjects.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforceForPrefixed.
Rails/Delegate:
  Exclude:
    - 'app/components/access_panels/course_reserves_component.rb'
    - 'app/components/searchworks_search_bar_component.rb'
    - 'app/models/marc_fields/linked_author.rb'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Rails/DurationArithmetic:
  Exclude:
    - 'spec/models/performance_alerts_spec.rb'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
# Whitelist: find_by_sql, find_by_token_for
# AllowedMethods: find_by_sql, find_by_token_for
# AllowedReceivers: Gem::Specification, page
Rails/DynamicFindBy:
  Exclude:
    - 'spec/lib/holdings_spec.rb'

# Offense count: 10
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: slashes, arguments
Rails/FilePath:
  Exclude:
    - 'app/controllers/concerns/backend_lookup.rb'
    - 'app/controllers/hours_controller.rb'
    - 'app/controllers/sfx_data_controller.rb'
    - 'config/initializers/add_local_config_settings.rb'
    - 'config/initializers/assets.rb'
    - 'lib/fixtures_indexer.rb'
    - 'lib/tasks/searchworks.rake'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods, AllowedPatterns.
# AllowedMethods: order, limit, select, lock
Rails/FindEach:
  Exclude:
    - 'spec/models/concerns/eds_links_spec.rb'

# Offense count: 11
# Configuration parameters: Include.
# Include: app/helpers/**/*.rb
Rails/HelperInstanceVariable:
  Exclude:
    - 'app/helpers/article_helper.rb'
    - 'app/helpers/collection_access_point_helper.rb'
    - 'app/helpers/collection_helper.rb'
    - 'app/helpers/masthead_helper.rb'

# Offense count: 3
Rails/I18nLocaleTexts:
  Exclude:
    - 'app/controllers/articles_controller.rb'
    - 'app/mailers/feedback_mailer.rb'

# Offense count: 13
# Configuration parameters: Include.
# Include: app/controllers/**/*.rb, app/mailers/**/*.rb
Rails/LexicallyScopedActionFilter:
  Exclude:
    - 'app/controllers/articles_controller.rb'
    - 'app/controllers/catalog_controller.rb'
    - 'app/controllers/concerns/advanced_search_params_mapping.rb'
    - 'app/controllers/concerns/all_caps_params.rb'
    - 'app/controllers/concerns/callnumber_search.rb'
    - 'app/controllers/concerns/database_access_point.rb'
    - 'app/controllers/concerns/location_facet.rb'
    - 'app/controllers/concerns/replace_special_quotes.rb'
    - 'app/controllers/concerns/search_relevancy_logging.rb'
    - 'app/controllers/concerns/stanford_work_facet.rb'

# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Include.
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
Rails/Output:
  Exclude:
    - 'config/deploy/preview.rb'

# Offense count: 24
Rails/OutputSafety:
  Exclude:
    - 'app/components/blacklight/start_over_button_component.rb'
    - 'app/helpers/article_helper.rb'
    - 'app/helpers/catalog_helper.rb'
    - 'app/helpers/collection_helper.rb'
    - 'app/helpers/marc_helper.rb'
    - 'app/helpers/preview_helper.rb'
    - 'app/helpers/record_helper.rb'
    - 'app/helpers/results_document_helper.rb'
    - 'app/models/citation.rb'
    - 'app/models/concerns/mods_data.rb'
    - 'app/models/marc_fields/bound_with_note.rb'
    - 'lib/holdings/mhld.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Rails/PluralizationGrammar:
  Exclude:
    - 'config/schedule.rb'

# Offense count: 40
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedReceivers.
# AllowedReceivers: ActionMailer::Preview, ActiveSupport::TimeZone
Rails/RedundantActiveRecordAllMethod:
  Exclude:
    - 'spec/components/access_panels/course_reserves_component_spec.rb'
    - 'spec/features/access_points/course_reserve_spec.rb'
    - 'spec/lib/page_location_spec.rb'
    - 'spec/models/concerns/eds_links_spec.rb'
    - 'spec/models/concerns/index_links_spec.rb'
    - 'spec/models/concerns/marc_links_spec.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Rails/RootPublicPath:
  Exclude:
    - 'app/controllers/concerns/backend_lookup.rb'
    - 'app/controllers/hours_controller.rb'
    - 'app/controllers/sfx_data_controller.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Rails/StripHeredoc:
  Exclude:
    - 'lib/fixtures_indexer.rb'

# Offense count: 24
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, conditionals
Style/AndOr:
  Exclude:
    - 'app/controllers/article_selections_controller.rb'
    - 'app/controllers/feedback_forms_controller.rb'
    - 'app/helpers/application_helper.rb'
    - 'app/helpers/bookmarks_helper.rb'
    - 'app/helpers/feedback_form_helper.rb'
    - 'app/helpers/results_document_helper.rb'
    - 'app/helpers/xml_api_helper.rb'
    - 'app/views/catalog/_index_default.mobile.builder'
    - 'app/views/catalog/index.mobile.builder'
    - 'app/views/catalog/show.mobile.builder'

# Offense count: 76
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
# FunctionalMethods: let, let!, subject, watch
# AllowedMethods: lambda, proc, it
Style/BlockDelimiters:
  Enabled: false

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowOnConstant, AllowOnSelfClass.
Style/CaseEquality:
  Exclude:
    - 'app/helpers/xml_api_helper.rb'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
  Exclude:
    - 'app/models/concerns/searchworks/document/email.rb'
    - 'app/models/concerns/searchworks/document/sms.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: is_a?, kind_of?
Style/ClassCheck:
  Exclude:
    - 'app/models/concerns/cjk_query.rb'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CommentedKeyword:
  Exclude:
    - 'app/views/catalog/index.mobile.builder'
    - 'app/views/catalog/show.mobile.builder'
    - 'spec/models/concerns/cjk_query_spec.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
  Exclude:
    - 'app/helpers/xml_api_helper.rb'
    - 'app/models/eds/repository.rb'
    - 'app/views/catalog/_show_default.mobile.builder'

# Offense count: 160
# Configuration parameters: AllowedConstants.
Style/Documentation:
  Enabled: false

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Style/EmptyCaseCondition:
  Exclude:
    - 'app/controllers/concerns/email_validation.rb'
    - 'app/models/concerns/schema_dot_org.rb'
    - 'lib/holdings/status.rb'
    - 'lib/page_location.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: compact, expanded
Style/EmptyMethod:
  Exclude:
    - 'app/controllers/feedback_forms_controller.rb'

# Offense count: 17
# This cop supports safe autocorrection (--autocorrect).
Style/Encoding:
  Enabled: false

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/ExpandPathArguments:
  Exclude:
    - 'Rakefile'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedVars.
Style/FetchEnvVar:
  Exclude:
    - 'app/models/user.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/GlobalStdStream:
  Exclude:
    - 'config/environments/production.rb'

# Offense count: 17
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
Style/GuardClause:
  Exclude:
    - 'app/controllers/article_selections_controller.rb'
    - 'app/controllers/articles_controller.rb'
    - 'app/controllers/availability_controller.rb'
    - 'app/controllers/concerns/all_caps_params.rb'
    - 'app/controllers/concerns/callnumber_search.rb'
    - 'app/controllers/concerns/database_access_point.rb'
    - 'app/controllers/feedback_forms_controller.rb'
    - 'app/controllers/quick_reports_controller.rb'
    - 'app/helpers/application_helper.rb'
    - 'app/helpers/collection_access_point_helper.rb'
    - 'app/helpers/collection_helper.rb'
    - 'app/helpers/facets_helper.rb'
    - 'app/helpers/feedback_form_helper.rb'
    - 'app/helpers/xml_api_helper.rb'
    - 'app/models/user.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedReceivers.
# AllowedReceivers: Thread.current
Style/HashEachMethods:
  Exclude:
    - 'app/models/article_search_builder.rb'

# Offense count: 49
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent
Style/HashSyntax:
  Exclude:
    - 'app/controllers/catalog_controller.rb'
    - 'app/views/catalog/index.atom.builder'
    - 'app/views/catalog/index.rss.builder'
    - 'app/views/catalog/opensearch.xml.builder'

# Offense count: 24
# This cop supports safe autocorrection (--autocorrect).
Style/IfUnlessModifier:
  Enabled: false

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods.
# AllowedMethods: nonzero?
Style/IfWithBooleanLiteralBranches:
  Exclude:
    - 'app/helpers/feedback_form_helper.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/KeywordParametersOrder:
  Exclude:
    - 'spec/support/stub_article_service.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: line_count_dependent, lambda, literal
Style/Lambda:
  Exclude:
    - 'app/controllers/catalog_controller.rb'

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedMethods, AllowedPatterns.
Style/MethodCallWithoutArgsParentheses:
  Exclude:
    - 'spec/models/concerns/collection_member_spec.rb'
    - 'spec/models/concerns/extent_spec.rb'
    - 'spec/models/concerns/index_authors_spec.rb'
    - 'spec/models/concerns/mods_data_spec.rb'

# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
Style/MethodDefParentheses:
  Exclude:
    - 'app/components/blacklight/start_over_button_component.rb'
    - 'app/controllers/article_selections_controller.rb'
    - 'app/controllers/concerns/all_caps_params.rb'
    - 'app/helpers/bookmarks_helper.rb'
    - 'spec/helpers/bookmarks_helper_spec.rb'
    - 'spec/spec_helper.rb'

# Offense count: 1
Style/MultilineBlockChain:
  Exclude:
    - 'lib/holdings/library.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/MultilineIfModifier:
  Exclude:
    - 'app/models/citation.rb'
    - 'app/views/catalog/index.atom.builder'

# Offense count: 12
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: literals, strict
Style/MutableConstant:
  Exclude:
    - 'app/controllers/articles_controller.rb'
    - 'app/helpers/article_helper.rb'
    - 'lib/constants.rb'
    - 'spec/support/stub_article_service.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: both, prefix, postfix
Style/NegatedIf:
  Exclude:
    - 'app/helpers/results_document_helper.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedMethods.
# AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
Style/NestedParenthesizedCalls:
  Exclude:
    - 'app/views/catalog/_show_default.mobile.builder'

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
Style/NumericLiterals:
  MinDigits: 9

# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
  Exclude:
    - 'app/helpers/application_helper.rb'
    - 'app/helpers/bookmarks_helper.rb'
    - 'app/models/concerns/cjk_query.rb'

# Offense count: 23
Style/OpenStructUse:
  Exclude:
    - 'spec/controllers/concerns/database_access_point_spec.rb'
    - 'spec/helpers/collection_helper_spec.rb'
    - 'spec/helpers/record_helper_spec.rb'
    - 'spec/lib/holdings/status_spec.rb'
    - 'spec/lib/hours_request_spec.rb'
    - 'spec/lib/search_query_modifier_spec.rb'
    - 'spec/models/links_spec.rb'
    - 'spec/views/browse/index.html.erb_spec.rb'
    - 'spec/views/collection_members/_file_collection_members.html.erb_spec.rb'

# Offense count: 31
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
  Enabled: false

# Offense count: 10
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: short, verbose
Style/PreferredHashMethods:
  Exclude:
    - 'app/helpers/facets_helper.rb'
    - 'app/helpers/xml_api_helper.rb'
    - 'app/views/catalog/_index_default.mobile.builder'
    - 'app/views/catalog/_show_default.mobile.builder'
    - 'app/views/catalog/index.mobile.builder'
    - 'app/views/catalog/show.mobile.builder'

# Offense count: 32
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: same_as_string_literals, single_quotes, double_quotes
Style/QuotedSymbols:
  Exclude:
    - 'app/controllers/catalog_controller.rb'
    - 'app/models/concerns/schema_dot_org.rb'
    - 'app/models/marc_field.rb'
    - 'app/models/marc_fields/production_notice.rb'
    - 'spec/models/json_results_document_presenter_spec.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedCompactTypes.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
  Exclude:
    - 'lib/tasks/searchworks.rake'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantBegin:
  Exclude:
    - 'app/models/concerns/schema_dot_org.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantCondition:
  Exclude:
    - 'app/views/catalog/_index_default.mobile.builder'
    - 'app/views/catalog/index.mobile.builder'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantConstantBase:
  Exclude:
    - 'config/environments/production.rb'

# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: SafeForConstants.
Style/RedundantFetchBlock:
  Exclude:
    - 'config/puma.rb'

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/RedundantInterpolation:
  Exclude:
    - 'app/helpers/article_helper.rb'
    - 'app/helpers/xml_api_helper.rb'
    - 'app/views/catalog/opensearch.xml.builder'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantParentheses:
  Exclude:
    - 'app/helpers/xml_api_helper.rb'
    - 'app/presenters/article_fulltext_link_presenter.rb'

# Offense count: 21
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpEscape:
  Exclude:
    - 'app/helpers/article_helper.rb'
    - 'spec/components/access_panels/online_component_spec.rb'
    - 'spec/components/access_panels/online_eds_component_spec.rb'
    - 'spec/helpers/browse_helper_spec.rb'
    - 'spec/helpers/collection_helper_spec.rb'
    - 'spec/models/concerns/index_links_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleReturnValues.
Style/RedundantReturn:
  Exclude:
    - 'app/helpers/masthead_helper.rb'

# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantSelf:
  Exclude:
    - 'app/controllers/concerns/advanced_search_params_mapping.rb'
    - 'app/controllers/concerns/all_caps_params.rb'
    - 'app/controllers/concerns/callnumber_search.rb'
    - 'app/controllers/concerns/database_access_point.rb'
    - 'app/models/concerns/searchworks/document/sms.rb'
    - 'app/models/marc_fields/marc_field_wrapper.rb'

# Offense count: 17
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral:
  Exclude:
    - 'app/helpers/article_helper.rb'
    - 'app/helpers/feedback_form_helper.rb'
    - 'app/models/concerns/eds_subjects.rb'
    - 'config/routes.rb'
    - 'spec/features/article_searching_spec.rb'
    - 'spec/helpers/application_helper_spec.rb'
    - 'spec/helpers/collection_helper_spec.rb'
    - 'spec/helpers/record_helper_spec.rb'
    - 'spec/lib/holdings/mhld_spec.rb'
    - 'spec/mailers/search_works_record_mailer_spec.rb'
    - 'spec/models/json_results_document_presenter_spec.rb'
    - 'spec/tasks/fixtures_indexer_spec.rb'
    - 'spec/views/marc_fields/_linked_author_index.html.erb_spec.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
  Exclude:
    - 'app/controllers/articles_controller.rb'
    - 'app/models/sfx_data.rb'
    - 'app/presenters/sms_presenter.rb'

# Offense count: 11
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
# AllowedMethods: present?, blank?, presence, try, try!
Style/SafeNavigation:
  Exclude:
    - 'app/helpers/application_helper.rb'
    - 'app/helpers/article_helper.rb'
    - 'app/helpers/xml_api_helper.rb'
    - 'app/models/concerns/cjk_query.rb'
    - 'app/models/concerns/digital_collection.rb'
    - 'app/models/concerns/extent.rb'
    - 'app/views/catalog/_show_default.mobile.builder'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/SelectByRegexp:
  Exclude:
    - 'app/models/concerns/digital_image.rb'
    - 'app/models/marc_fields/issn.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowModifier.
Style/SoleNestedConditional:
  Exclude:
    - 'app/views/catalog/_show_default.mobile.builder'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
  Exclude:
    - 'app/helpers/article_helper.rb'
    - 'app/models/concerns/cjk_query.rb'
    - 'app/models/marc_fields/linked_author.rb'
    - 'config/application.rb'
    - 'config/initializers/okcomputer.rb'

# Offense count: 4451
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
  Enabled: false

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiteralsInInterpolation:
  Exclude:
    - 'app/helpers/results_document_helper.rb'
    - 'app/helpers/xml_api_helper.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/StructInheritance:
  Exclude:
    - 'app/models/concerns/eds_subjects.rb'

# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: .
# SupportedStyles: percent, brackets
Style/SymbolArray:
  EnforcedStyle: percent
  MinSize: 14

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArrayLiteral:
  Exclude:
    - 'app/controllers/catalog_controller.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInHashLiteral:
  Exclude:
    - 'app/controllers/catalog_controller.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/WhileUntilModifier:
  Exclude:
    - 'app/services/eds/search_service.rb'

# Offense count: 53
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
# SupportedStyles: percent, brackets
Style/WordArray:
  Enabled: false