# This configuration was generated by # `rubocop --auto-gen-config` # on 2022-06-27 19:52:51 UTC using RuboCop version 1.31.0. # 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: 5 # Configuration parameters: AutoCorrect. Layout/LineContinuationLeadingSpace: Exclude: - 'lib/generators/blacklight/controller_generator.rb' - 'lib/generators/blacklight/user_generator.rb' # Offense count: 1 # Configuration parameters: IgnoredMethods. Lint/AmbiguousBlockAssociation: Exclude: - 'lib/blacklight/solr/search_builder_behavior.rb' # Offense count: 5 # This cop supports safe autocorrection (--autocorrect). Lint/AmbiguousOperator: Exclude: - 'spec/helpers/blacklight/url_helper_behavior_spec.rb' - 'spec/helpers/blacklight_helper_spec.rb' - 'spec/models/blacklight/facet_paginator_spec.rb' - 'spec/models/blacklight/solr/search_builder_spec.rb' - 'spec/services/blacklight/search_service_spec.rb' # Offense count: 44 # This cop supports safe autocorrection (--autocorrect). Lint/AmbiguousRegexpLiteral: Exclude: - 'spec/controllers/catalog_controller_spec.rb' - 'spec/features/alternate_controller_spec.rb' - 'spec/helpers/blacklight/url_helper_behavior_spec.rb' - 'spec/helpers/catalog_helper_spec.rb' - 'spec/models/record_mailer_spec.rb' - 'spec/views/catalog/_document.html.erb_spec.rb' - 'spec/views/catalog/_search_header.erb_spec.rb' - 'spec/views/catalog/_sort_and_per_page.html.erb_spec.rb' - 'spec/views/catalog/index.html.erb_spec.rb' - 'spec/views/catalog/show.html.erb_spec.rb' # Offense count: 1 Lint/BinaryOperatorWithIdenticalOperands: Exclude: - 'spec/models/blacklight/document/active_model_shim_spec.rb' # Offense count: 14 # Configuration parameters: AllowedMethods. # AllowedMethods: enums Lint/ConstantDefinitionInBlock: Exclude: - 'spec/controllers/bookmarks_controller_spec.rb' - 'spec/controllers/catalog_controller_spec.rb' - 'spec/models/blacklight/configurable_spec.rb' - 'spec/models/blacklight/document/active_model_shim_spec.rb' - 'spec/models/blacklight/document_spec.rb' - 'spec/models/blacklight/solr/document_spec.rb' - 'spec/presenters/blacklight/show_presenter_spec.rb' # Offense count: 2 # Configuration parameters: AllowComments, AllowEmptyLambdas. Lint/EmptyBlock: Exclude: - 'app/controllers/concerns/blacklight/bookmarks.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' # Offense count: 1 # Configuration parameters: AllowComments. Lint/EmptyFile: Exclude: - 'spec/components/blacklight/document_metadata_component_spec.rb' # Offense count: 38 Lint/MissingSuper: Enabled: false # Offense count: 29 # This cop supports safe autocorrection (--autocorrect). Lint/ParenthesesAsGroupedExpression: Exclude: - 'spec/features/did_you_mean_spec.rb' - 'spec/features/search_filters_spec.rb' - 'spec/features/search_pagination_spec.rb' - 'spec/features/search_spec.rb' - 'spec/models/blacklight/solr/repository_spec.rb' # Offense count: 2 Lint/ShadowingOuterLocalVariable: Exclude: - 'spec/models/blacklight/configuration_spec.rb' # Offense count: 74 # Configuration parameters: IgnoredMethods, CountRepeatedAttributes. Metrics/AbcSize: Max: 46 # Offense count: 1 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods, inherit_mode. # IgnoredMethods: refine Metrics/BlockLength: Max: 26 # Offense count: 1 # Configuration parameters: CountBlocks. Metrics/BlockNesting: Max: 4 # Offense count: 43 # Configuration parameters: IgnoredMethods. Metrics/CyclomaticComplexity: Max: 14 # Offense count: 69 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. Metrics/MethodLength: Max: 29 # Offense count: 3 # Configuration parameters: CountComments, CountAsOne. Metrics/ModuleLength: Max: 126 # Offense count: 8 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters. Metrics/ParameterLists: Max: 6 # Offense count: 36 # Configuration parameters: IgnoredMethods. Metrics/PerceivedComplexity: Max: 14 # Offense count: 3 # Configuration parameters: EnforcedStyleForLeadingUnderscores. # SupportedStylesForLeadingUnderscores: disallowed, required, optional Naming/MemoizedInstanceVariableName: Exclude: - 'app/helpers/blacklight/render_partials_helper_behavior.rb' - 'app/models/concerns/blacklight/document/semantic_fields.rb' - 'lib/blacklight/solr/response.rb' # Offense count: 9 # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. # AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to Naming/MethodParameterName: Exclude: - 'app/models/concerns/blacklight/document.rb' - 'app/presenters/blacklight/rendering/link_to_facet.rb' - 'lib/blacklight/nested_open_struct_with_hash_access.rb' - 'lib/blacklight/solr/document.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' # Offense count: 9 # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns. # SupportedStyles: snake_case, normalcase, non_integer # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339 Naming/VariableNumber: Exclude: - 'spec/lib/blacklight/search_state_spec.rb' - 'spec/models/blacklight/search_builder_spec.rb' # Offense count: 7 RSpec/BeforeAfterAll: Exclude: - 'spec/controllers/search_history_controller_spec.rb' - 'spec/models/blacklight/configurable_spec.rb' - 'spec/models/blacklight/document/dublin_core_spec.rb' - 'spec/models/blacklight/document/email_spec.rb' - 'spec/models/blacklight/document/sms_spec.rb' - 'spec/models/blacklight/solr/document_spec.rb' # Offense count: 4 # This cop supports safe autocorrection (--autocorrect). RSpec/Capybara/CurrentPathExpectation: Exclude: - 'spec/features/alternate_controller_spec.rb' # Offense count: 13 RSpec/Capybara/VisibilityMatcher: Exclude: - 'spec/features/facets_spec.rb' - 'spec/features/search_filters_spec.rb' - 'spec/helpers/blacklight_helper_spec.rb' # Offense count: 98 # Configuration parameters: Prefixes. # Prefixes: when, with, without RSpec/ContextWording: Enabled: false # Offense count: 1 RSpec/EmptyExampleGroup: Exclude: - 'spec/models/blacklight/solr/search_builder_spec.rb' # Offense count: 128 # Configuration parameters: CountAsOne. RSpec/ExampleLength: Max: 33 # Offense count: 8 RSpec/ExpectInHook: Exclude: - 'spec/controllers/catalog_controller_spec.rb' # Offense count: 5 # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly. # Include: **/*_spec*rb*, **/spec/**/* RSpec/FilePath: Exclude: - 'spec/controllers/blacklight/catalog/component_configuration_spec.rb' - 'spec/features/sitelinks_search_box.rb' - 'spec/models/blacklight/solr/search_builder_spec.rb' - 'spec/presenters/pipeline_spec.rb' - 'spec/presenters/thumbnail_presenter_spec.rb' # Offense count: 128 # Configuration parameters: AssignmentOnly. RSpec/InstanceVariable: Exclude: - 'spec/controllers/bookmarks_controller_spec.rb' - 'spec/controllers/search_history_controller_spec.rb' - 'spec/helpers/catalog_helper_spec.rb' - 'spec/lib/blacklight/open_struct_with_hash_access_spec.rb' - 'spec/lib/tasks/blacklight_task_spec.rb' - 'spec/models/blacklight/configuration_spec.rb' - 'spec/models/blacklight/document/dublin_core_spec.rb' - 'spec/models/blacklight/solr/document_spec.rb' - 'spec/models/record_mailer_spec.rb' - 'spec/models/search_spec.rb' - 'spec/services/blacklight/search_service_spec.rb' - 'spec/views/catalog/index.atom.builder_spec.rb' # Offense count: 4 RSpec/IteratedExpectation: Exclude: - 'spec/models/blacklight/solr/response/group_response_spec.rb' - 'spec/models/blacklight/solr/response/group_spec.rb' - 'spec/models/blacklight/solr/response_spec.rb' # Offense count: 16 RSpec/LeakyConstantDeclaration: Exclude: - 'spec/controllers/bookmarks_controller_spec.rb' - 'spec/controllers/catalog_controller_spec.rb' - 'spec/models/blacklight/configurable_spec.rb' - 'spec/models/blacklight/document/active_model_shim_spec.rb' - 'spec/models/blacklight/document_spec.rb' - 'spec/models/blacklight/solr/document_spec.rb' - 'spec/presenters/blacklight/show_presenter_spec.rb' # Offense count: 9 RSpec/MessageChain: Exclude: - 'spec/controllers/bookmarks_controller_spec.rb' - 'spec/presenters/blacklight/field_presenter_spec.rb' - 'spec/views/shared/_user_util_links.html.erb_spec.rb' # Offense count: 30 # Configuration parameters: EnforcedStyle. # SupportedStyles: have_received, receive RSpec/MessageSpies: Exclude: - 'spec/controllers/catalog_controller_spec.rb' - 'spec/helpers/blacklight/configuration_helper_behavior_spec.rb' - 'spec/helpers/blacklight/url_helper_behavior_spec.rb' - 'spec/helpers/blacklight_helper_spec.rb' - 'spec/helpers/catalog_helper_spec.rb' - 'spec/models/blacklight/search_builder_spec.rb' - 'spec/models/blacklight/suggest_search_spec.rb' - 'spec/presenters/blacklight/field_presenter_spec.rb' - 'spec/presenters/thumbnail_presenter_spec.rb' # Offense count: 364 RSpec/MultipleExpectations: Max: 16 # Offense count: 258 # Configuration parameters: AllowSubject. RSpec/MultipleMemoizedHelpers: Max: 14 # Offense count: 388 # Configuration parameters: IgnoreSharedExamples. RSpec/NamedSubject: Enabled: false # Offense count: 55 RSpec/NestedGroups: Max: 5 # Offense count: 6 RSpec/RepeatedDescription: Exclude: - 'spec/features/search_results_spec.rb' - 'spec/helpers/catalog_helper_spec.rb' - 'spec/models/blacklight/solr/search_builder_spec.rb' # Offense count: 2 RSpec/RepeatedExample: Exclude: - 'spec/models/blacklight/solr/document_spec.rb' # Offense count: 2 RSpec/RepeatedExampleGroupDescription: Exclude: - 'spec/services/blacklight/search_service_spec.rb' # Offense count: 3 # This cop supports safe autocorrection (--autocorrect). RSpec/ScatteredLet: Exclude: - 'spec/models/blacklight/solr/search_builder_spec.rb' - 'spec/views/catalog/index.atom.builder_spec.rb' # Offense count: 22 RSpec/StubbedMock: Exclude: - 'spec/controllers/catalog_controller_spec.rb' - 'spec/helpers/blacklight/configuration_helper_behavior_spec.rb' - 'spec/helpers/blacklight/url_helper_behavior_spec.rb' - 'spec/helpers/blacklight_helper_spec.rb' - 'spec/helpers/catalog_helper_spec.rb' - 'spec/models/blacklight/suggest_search_spec.rb' - 'spec/presenters/blacklight/field_presenter_spec.rb' - 'spec/presenters/thumbnail_presenter_spec.rb' # Offense count: 1 RSpec/SubjectDeclaration: Exclude: - 'spec/models/blacklight/document/cache_key_spec.rb' # Offense count: 15 RSpec/SubjectStub: Exclude: - 'spec/controllers/catalog_controller_spec.rb' - 'spec/lib/blacklight/search_state_spec.rb' - 'spec/models/blacklight/document/cache_key_spec.rb' - 'spec/models/blacklight/search_builder_spec.rb' - 'spec/presenters/blacklight/document_presenter_spec.rb' - 'spec/services/blacklight/search_service_spec.rb' # Offense count: 77 # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames. RSpec/VerifiedDoubles: Enabled: false # Offense count: 4 # Configuration parameters: EnforcedStyle, AllowToTime. # SupportedStyles: strict, flexible Rails/Date: Exclude: - 'spec/models/search_spec.rb' # Offense count: 1 # Configuration parameters: EnforcedStyle. # SupportedStyles: slashes, arguments Rails/FilePath: Exclude: - 'lib/railties/blacklight.rake' # Offense count: 20 # Configuration parameters: Include. # Include: app/helpers/**/*.rb Rails/HelperInstanceVariable: Exclude: - 'app/helpers/blacklight/blacklight_helper_behavior.rb' - 'app/helpers/blacklight/catalog_helper_behavior.rb' - 'app/helpers/blacklight/document_helper_behavior.rb' - 'app/helpers/blacklight/component_helper_behavior.rb' - 'app/helpers/blacklight/layout_helper_behavior.rb' - 'app/helpers/blacklight/render_partials_helper_behavior.rb' # Offense count: 2 # Configuration parameters: Include. # Include: spec/**/*.rb, test/**/*.rb Rails/I18nLocaleAssignment: Exclude: - 'spec/helpers/blacklight_helper_spec.rb' # Offense count: 10 Rails/OutputSafety: Exclude: - 'app/components/blacklight/search_context/server_item_pagination_component.rb' - 'app/helpers/blacklight/catalog_helper_behavior.rb' - 'app/helpers/blacklight/configuration_helper_behavior.rb' - 'app/presenters/blacklight/rendering/join.rb' # Offense count: 14 Security/Eval: Exclude: - 'spec/models/blacklight/solr/response_spec.rb' # Offense count: 9 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: prefer_alias, prefer_alias_method Style/Alias: Exclude: - 'app/models/concerns/blacklight/document.rb' - 'app/models/concerns/blacklight/document/dublin_core.rb' - 'lib/blacklight/configuration.rb' - 'lib/blacklight/search_builder.rb' - 'lib/blacklight/solr/response.rb' - 'lib/blacklight/solr/response/group_response.rb' # Offense count: 3 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, 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 # IgnoredMethods: lambda, proc, it Style/BlockDelimiters: Exclude: - 'app/views/catalog/index.rss.builder' - 'app/views/catalog/opensearch.xml.builder' # Offense count: 52 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Enabled: false # Offense count: 6 # This cop supports unsafe autocorrection (--autocorrect-all). Style/CommentedKeyword: Exclude: - 'spec/controllers/catalog_controller_spec.rb' - 'spec/services/blacklight/search_service_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. # SupportedStyles: assign_to_condition, assign_inside_condition Style/ConditionalAssignment: Exclude: - 'lib/blacklight/solr/response/spelling.rb' # Offense count: 2 Style/DocumentDynamicEvalDefinition: Exclude: - 'app/builders/blacklight/action_builder.rb' - 'lib/blacklight/configuration/fields.rb' # Offense count: 105 # Configuration parameters: AllowedConstants. Style/Documentation: Enabled: false # Offense count: 10 # This cop supports safe autocorrection (--autocorrect). Style/ExpandPathArguments: Exclude: - 'Gemfile' - 'lib/generators/blacklight/assets_generator.rb' - 'lib/generators/blacklight/controller_generator.rb' - 'lib/generators/blacklight/document_generator.rb' - 'lib/generators/blacklight/install_generator.rb' - 'lib/generators/blacklight/models_generator.rb' - 'lib/generators/blacklight/search_builder_generator.rb' - 'lib/generators/blacklight/solr_generator.rb' - 'lib/generators/blacklight/test_support_generator.rb' - 'lib/generators/blacklight/user_generator.rb' # Offense count: 16 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods. # SupportedStyles: annotated, template, unannotated Style/FormatStringToken: EnforcedStyle: template # Offense count: 6 # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals. Style/GuardClause: Exclude: - 'app/controllers/concerns/blacklight/bookmarks.rb' - 'app/controllers/concerns/blacklight/catalog.rb' - 'app/controllers/concerns/blacklight/search_context.rb' - 'app/helpers/blacklight/catalog_helper_behavior.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' # Offense count: 30 # This cop supports safe autocorrection (--autocorrect). Style/IfUnlessModifier: Enabled: false # Offense count: 6 # This cop supports safe autocorrection (--autocorrect). Style/MultilineIfModifier: Exclude: - 'app/views/catalog/index.atom.builder' - 'lib/blacklight/solr/response/facets.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowMethodComparison. Style/MultipleComparison: Exclude: - 'lib/blacklight/configuration/context.rb' # Offense count: 2 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: literals, strict Style/MutableConstant: Exclude: - 'lib/blacklight/solr/request.rb' # Offense count: 9 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle, IgnoredMethods. # SupportedStyles: predicate, comparison Style/NumericPredicate: Exclude: - 'app/helpers/blacklight/catalog_helper_behavior.rb' - 'app/services/blacklight/search_service.rb' - 'lib/blacklight/search_builder.rb' - 'lib/blacklight/solr/facet_paginator.rb' - 'lib/blacklight/solr/response/facets.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' - 'lib/railties/blacklight.rake' # Offense count: 15 Style/OpenStructUse: Exclude: - 'lib/blacklight/configuration.rb' - 'lib/blacklight/open_struct_with_hash_access.rb' - 'lib/blacklight/solr/response/facets.rb' - 'spec/components/blacklight/facet_item_pivot_component_spec.rb' - 'spec/lib/blacklight/search_state/filter_field_spec.rb' - 'spec/models/blacklight/configuration_spec.rb' - 'spec/models/blacklight/solr/response_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions. Style/ParenthesesAroundCondition: Exclude: - 'app/views/catalog/_document.atom.builder' # Offense count: 3 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: PreferredDelimiters. Style/PercentLiteralDelimiters: Exclude: - 'lib/blacklight/engine.rb' - 'lib/blacklight/solr/request.rb' # Offense count: 7 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: implicit, explicit Style/RescueStandardError: Exclude: - 'app/models/record_mailer.rb' - 'lib/blacklight.rb' - 'lib/blacklight/configuration/fields.rb' - 'lib/railties/blacklight.rake' # 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/controllers/concerns/blacklight/bookmarks.rb' - 'app/controllers/concerns/blacklight/controller.rb' - 'app/services/blacklight/field_retriever.rb' - 'lib/blacklight.rb' - 'lib/blacklight/configuration/facet_field.rb' - 'lib/blacklight/configuration/search_field.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' # Offense count: 6 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowAsExpressionSeparator. Style/Semicolon: Exclude: - 'spec/models/blacklight/solr/repository_spec.rb' - 'spec/views/catalog/_paginate_compact.html.erb_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowModifier. Style/SoleNestedConditional: Exclude: - 'app/controllers/concerns/blacklight/controller.rb' # Offense count: 34 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: MinSize. # SupportedStyles: percent, brackets Style/SymbolArray: EnforcedStyle: brackets