# This configuration was generated by # `rubocop --auto-gen-config` # on 2016-03-04 09:27:52 -0800 using RuboCop version 0.37.2. # 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: 24 # Cop supports --auto-correct. # Configuration parameters: AlignWith, SupportedStyles, AutoCorrect. # SupportedStyles: keyword, variable, start_of_line Lint/EndAlignment: Enabled: false # Offense count: 30 # Cop supports --auto-correct. # Configuration parameters: IgnoreEmptyBlocks. Lint/UnusedBlockArgument: Exclude: - 'app/controllers/concerns/blacklight/search_context.rb' - 'app/helpers/blacklight/configuration_helper_behavior.rb' - 'app/models/concerns/blacklight/document/dublin_core.rb' - 'lib/blacklight/configuration.rb' - 'lib/blacklight/configuration/fields.rb' - 'lib/blacklight/engine.rb' - 'lib/blacklight/parameters.rb' - 'lib/blacklight/solr/response/facets.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' - 'lib/railties/blacklight.rake' - 'tasks/blacklight.rake' # Offense count: 21 # Cop supports --auto-correct. # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods. Lint/UnusedMethodArgument: Exclude: - 'app/controllers/concerns/blacklight/default_component_configuration.rb' - 'app/helpers/blacklight/blacklight_helper_behavior.rb' - 'app/helpers/blacklight/catalog_helper_behavior.rb' - 'app/helpers/blacklight/component_helper_behavior.rb' - 'app/helpers/blacklight/configuration_helper_behavior.rb' - 'app/helpers/blacklight/deprecated_url_helper_behavior.rb' - 'app/helpers/blacklight/facets_helper_behavior.rb' - 'app/helpers/blacklight/render_partials_helper.rb' - 'app/helpers/blacklight/search_history_constraints_helper_behavior.rb' - 'app/models/concerns/blacklight/document.rb' - 'lib/blacklight/abstract_repository.rb' - 'lib/blacklight/configuration/field.rb' - 'lib/blacklight/search_builder.rb' - 'lib/blacklight/search_state.rb' # Offense count: 9 Lint/UselessAssignment: Exclude: - 'app/controllers/concerns/blacklight/search_context.rb' - 'app/helpers/blacklight/deprecated_url_helper_behavior.rb' - 'app/helpers/blacklight/facets_helper_behavior.rb' - 'app/models/bookmark.rb' - 'lib/blacklight/routes/exportable.rb' - 'lib/blacklight/routes/searchable.rb' - 'lib/blacklight/solr/response/spelling.rb' - 'lib/railties/blacklight.rake' # Offense count: 58 Metrics/AbcSize: Max: 54 # Offense count: 1 Metrics/BlockNesting: Max: 4 # Offense count: 3 # Configuration parameters: CountComments. Metrics/ClassLength: Max: 193 # Offense count: 22 Metrics/CyclomaticComplexity: Max: 19 # Offense count: 63 # Configuration parameters: CountComments. Metrics/MethodLength: Max: 50 # Offense count: 9 # Configuration parameters: CountComments. Metrics/ModuleLength: Max: 218 # Offense count: 20 Metrics/PerceivedComplexity: Max: 22 # Offense count: 6 # Cop supports --auto-correct. Rails/Delegate: Exclude: - 'app/controllers/concerns/blacklight/controller.rb' - 'app/controllers/concerns/blacklight/request_builders.rb' - 'app/controllers/concerns/blacklight/search_helper.rb' - 'app/helpers/blacklight/deprecated_url_helper_behavior.rb' - 'app/models/concerns/blacklight/document.rb' - 'lib/blacklight/search_builder.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: outdent, indent Style/AccessModifierIndentation: Enabled: false # Offense count: 9 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # 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: 7 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: with_first_parameter, with_fixed_indentation Style/AlignParameters: Exclude: - 'app/helpers/blacklight/render_constraints_helper_behavior.rb' - 'app/helpers/blacklight/search_history_constraints_helper_behavior.rb' - 'lib/blacklight/configuration.rb' - 'lib/generators/blacklight/solr4_generator.rb' # Offense count: 73 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: always, conditionals Style/AndOr: Enabled: false # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: braces, no_braces, context_dependent Style/BracesAroundHashParameters: Exclude: - 'lib/blacklight/solr/repository.rb' - 'lib/blacklight/solr/response/facets.rb' - 'lib/generators/blacklight/test_support_generator.rb' # Offense count: 8 Style/CaseEquality: Exclude: - 'app/helpers/blacklight/catalog_helper_behavior.rb' - 'app/helpers/blacklight/facets_helper_behavior.rb' - 'app/presenters/blacklight/document_presenter.rb' - 'lib/blacklight/configuration/context.rb' - 'lib/blacklight/configuration/fields.rb' - 'lib/blacklight/search_builder.rb' # Offense count: 23 # Cop supports --auto-correct. # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth. # SupportedStyles: case, end Style/CaseIndentation: Enabled: false # Offense count: 50 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Enabled: false # Offense count: 4 # Cop supports --auto-correct. Style/ClosingParenthesisIndentation: Exclude: - 'app/helpers/blacklight/facets_helper_behavior.rb' - 'app/helpers/blacklight/render_constraints_helper_behavior.rb' - 'app/helpers/blacklight/search_history_constraints_helper_behavior.rb' - 'lib/blacklight/configuration.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: SingleLineConditionsOnly. Style/ConditionalAssignment: Exclude: - 'lib/blacklight/solr/response/spelling.rb' # Offense count: 52 Style/Documentation: Enabled: false # Offense count: 9 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: leading, trailing Style/DotPosition: Enabled: false # Offense count: 1 Style/DoubleNegation: Exclude: - 'lib/blacklight/search_builder.rb' # Offense count: 21 # Cop supports --auto-correct. Style/ElseAlignment: Exclude: - 'app/controllers/concerns/blacklight/search_context.rb' - 'app/helpers/blacklight/catalog_helper_behavior.rb' - 'app/helpers/blacklight/facets_helper_behavior.rb' - 'app/helpers/blacklight/url_helper_behavior.rb' - 'app/models/concerns/blacklight/configurable.rb' - 'app/presenters/blacklight/document_presenter.rb' - 'lib/blacklight/search_builder.rb' - 'lib/blacklight/solr/response/facets.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' # Offense count: 12 # Cop supports --auto-correct. Style/EmptyLines: Exclude: - 'Vagrantfile' - 'app/controllers/concerns/blacklight/bookmarks.rb' - 'app/controllers/concerns/blacklight/catalog.rb' - 'app/controllers/concerns/blacklight/controller.rb' - 'app/helpers/blacklight/facets_helper_behavior.rb' - 'app/helpers/blacklight/render_partials_helper.rb' - 'app/presenters/blacklight/json_presenter.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' - 'lib/blacklight/utils.rb' - 'lib/generators/blacklight/models_generator.rb' - 'lib/generators/blacklight/test_support_generator.rb' # Offense count: 10 # Cop supports --auto-correct. Style/EmptyLinesAroundAccessModifier: Exclude: - 'app/controllers/concerns/blacklight/bookmarks.rb' - 'app/controllers/concerns/blacklight/catalog.rb' - 'app/helpers/blacklight/render_partials_helper.rb' - 'lib/blacklight/abstract_repository.rb' - 'lib/blacklight/configuration/fields.rb' - 'lib/blacklight/search_builder.rb' - 'lib/blacklight/solr/response/facets.rb' - 'lib/blacklight/utils.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: empty_lines, no_empty_lines Style/EmptyLinesAroundBlockBody: Exclude: - 'Vagrantfile' - 'app/controllers/concerns/blacklight/controller.rb' - 'app/controllers/concerns/blacklight/search_context.rb' - 'app/controllers/concerns/blacklight/token_based_user.rb' - 'lib/generators/blacklight/install_generator.rb' # Offense count: 22 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: empty_lines, no_empty_lines Style/EmptyLinesAroundClassBody: Enabled: false # Offense count: 9 # Cop supports --auto-correct. Style/EmptyLinesAroundMethodBody: Exclude: - 'app/controllers/concerns/blacklight/base.rb' - 'app/controllers/concerns/blacklight/search_context.rb' - 'lib/blacklight/configuration.rb' - 'lib/blacklight/solr/response/group_response.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' - 'lib/generators/blacklight/assets_generator.rb' - 'lib/generators/blacklight/install_generator.rb' # Offense count: 33 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: empty_lines, no_empty_lines Style/EmptyLinesAroundModuleBody: Enabled: false # Offense count: 27 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment. Style/ExtraSpacing: Exclude: - 'app/helpers/blacklight/catalog_helper_behavior.rb' - 'app/helpers/blacklight/configuration_helper_behavior.rb' - 'app/models/concerns/blacklight/document/dublin_core.rb' - 'app/models/concerns/blacklight/document/export.rb' - 'app/models/record_mailer.rb' - 'blacklight.gemspec' - 'config/routes.rb' - 'db/migrate/20140202020201_create_searches.rb' - 'lib/blacklight/configuration.rb' - 'lib/generators/blacklight/controller_generator.rb' - 'lib/generators/blacklight/document_generator.rb' - 'lib/generators/blacklight/install_generator.rb' - 'lib/generators/blacklight/search_builder_generator.rb' - 'lib/railties/blacklight.rake' - 'tasks/blacklight.rake' # Offense count: 10 # Configuration parameters: MinBodyLength. Style/GuardClause: Exclude: - 'app/controllers/concerns/blacklight/base.rb' - '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: 121 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues. # SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets Style/HashSyntax: Enabled: false # Offense count: 1 Style/IfInsideElse: Exclude: - 'app/controllers/concerns/blacklight/bookmarks.rb' # Offense count: 19 # Cop supports --auto-correct. # Configuration parameters: MaxLineLength. Style/IfUnlessModifier: Exclude: - 'app/controllers/concerns/blacklight/controller.rb' - 'app/controllers/concerns/blacklight/request_builders.rb' - 'app/controllers/concerns/blacklight/search_helper.rb' - 'app/controllers/concerns/blacklight/token_based_user.rb' - 'app/helpers/blacklight/catalog_helper_behavior.rb' - 'app/helpers/blacklight/url_helper_behavior.rb' - 'app/models/blacklight/facet_paginator.rb' - 'app/models/search.rb' - 'lib/blacklight/configuration.rb' - 'lib/blacklight/configuration/fields.rb' - 'lib/blacklight/search_state.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' - 'lib/generators/blacklight/install_generator.rb' - 'lib/railties/blacklight.rake' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_braces Style/IndentHash: Enabled: false # Offense count: 54 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: normal, rails Style/IndentationConsistency: Exclude: - 'app/controllers/concerns/blacklight/catalog.rb' - 'app/controllers/concerns/blacklight/controller.rb' - 'app/controllers/concerns/blacklight/saved_searches.rb' - 'app/controllers/concerns/blacklight/search_helper.rb' - 'app/helpers/blacklight/catalog_helper_behavior.rb' - 'app/helpers/blacklight/render_partials_helper.rb' - 'app/presenters/blacklight/document_presenter.rb' - 'lib/blacklight/abstract_repository.rb' - 'lib/blacklight/configuration.rb' - 'lib/blacklight/solr/repository.rb' - 'lib/blacklight/solr/response.rb' - 'lib/blacklight/solr/response/spelling.rb' # Offense count: 26 # Cop supports --auto-correct. # Configuration parameters: Width. Style/IndentationWidth: Exclude: - 'app/controllers/concerns/blacklight/bookmarks.rb' - 'app/controllers/concerns/blacklight/search_context.rb' - 'app/controllers/concerns/blacklight/search_fields.rb' - 'app/controllers/concerns/blacklight/token_based_user.rb' - 'app/helpers/blacklight/catalog_helper_behavior.rb' - 'app/helpers/blacklight/facets_helper_behavior.rb' - 'app/helpers/blacklight/render_constraints_helper_behavior.rb' - 'app/helpers/blacklight/render_partials_helper.rb' - 'app/helpers/blacklight/url_helper_behavior.rb' - 'app/models/concerns/blacklight/configurable.rb' - 'app/presenters/blacklight/document_presenter.rb' - 'lib/blacklight/search_builder.rb' - 'lib/blacklight/solr/response/facets.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' - 'lib/generators/blacklight/assets_generator.rb' # Offense count: 9 # Cop supports --auto-correct. Style/LeadingCommentSpace: Exclude: - 'app/models/blacklight/facet_paginator.rb' - 'app/models/concerns/blacklight/configurable.rb' - 'app/models/concerns/blacklight/document/export.rb' - 'lib/blacklight/configuration.rb' - 'lib/blacklight/solr/response/spelling.rb' # Offense count: 146 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline Style/MethodDefParentheses: Enabled: false # Offense count: 2 # Cop supports --auto-correct. Style/MultilineBlockLayout: Exclude: - 'lib/generators/blacklight/install_generator.rb' - 'lib/generators/blacklight/test_support_generator.rb' # Offense count: 13 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: aligned, indented Style/MultilineMethodCallIndentation: Enabled: false # Offense count: 12 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: aligned, indented Style/MultilineOperationIndentation: Enabled: false # Offense count: 2 # Cop supports --auto-correct. Style/MutableConstant: Exclude: - 'lib/blacklight/solr/request.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles. # SupportedStyles: skip_modifier_ifs, always Style/Next: Exclude: - 'lib/blacklight/solr/response/facets.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' # Offense count: 8 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist. # NamePrefix: is_, has_, have_ # NamePrefixBlacklist: is_, has_, have_ # NameWhitelist: is_a? Style/PredicateName: Exclude: - 'app/controllers/concerns/blacklight/catalog.rb' - 'app/controllers/concerns/blacklight/controller.rb' - 'app/helpers/blacklight/catalog_helper_behavior.rb' - 'app/helpers/blacklight/configuration_helper_behavior.rb' - 'app/helpers/blacklight/facets_helper_behavior.rb' - 'app/models/concerns/blacklight/document.rb' - 'app/models/concerns/blacklight/solr/document.rb' - 'lib/generators/blacklight/assets_generator.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: AllowMultipleReturnValues. Style/RedundantReturn: Exclude: - 'app/helpers/blacklight/blacklight_helper_behavior.rb' - 'app/helpers/blacklight/facets_helper_behavior.rb' - 'lib/blacklight.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' # Offense count: 42 # Cop supports --auto-correct. Style/RedundantSelf: Enabled: false # Offense count: 24 # Cop supports --auto-correct. Style/SpaceAfterComma: Exclude: - 'app/controllers/concerns/blacklight/search_context.rb' - 'app/helpers/blacklight/configuration_helper_behavior.rb' - 'app/helpers/blacklight/facets_helper_behavior.rb' - 'app/helpers/blacklight/render_constraints_helper_behavior.rb' - 'app/models/concerns/blacklight/document/dublin_core.rb' - 'lib/blacklight/configuration.rb' - 'lib/blacklight/configuration/fields.rb' - 'lib/blacklight/parameters.rb' - 'lib/blacklight/solr/response/facets.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' - 'lib/blacklight/utils.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleInsidePipes, SupportedStyles. # SupportedStyles: space, no_space Style/SpaceAroundBlockParameters: Exclude: - 'app/controllers/concerns/blacklight/catalog.rb' - 'app/models/concerns/blacklight/document/extensions.rb' # Offense count: 28 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: space, no_space Style/SpaceAroundEqualsInParameterDefault: Enabled: false # Offense count: 17 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment. Style/SpaceAroundOperators: Exclude: - 'Gemfile' - 'app/controllers/concerns/blacklight/request_builders.rb' - 'app/helpers/blacklight/blacklight_helper_behavior.rb' - 'app/helpers/blacklight/facets_helper_behavior.rb' - 'app/helpers/blacklight/render_constraints_helper_behavior.rb' - 'app/helpers/blacklight/search_history_constraints_helper_behavior.rb' - 'app/helpers/blacklight/url_helper_behavior.rb' - 'app/models/concerns/blacklight/document/export.rb' - 'db/migrate/20140202020202_create_bookmarks.rb' - 'lib/blacklight/configuration.rb' - 'lib/blacklight/solr/repository.rb' - 'lib/blacklight/solr/response/spelling.rb' - 'tasks/blacklight.rake' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: space, no_space Style/SpaceBeforeBlockBraces: Enabled: false # Offense count: 15 # Cop supports --auto-correct. Style/SpaceBeforeComma: Exclude: - 'app/helpers/blacklight/search_history_constraints_helper_behavior.rb' - 'lib/generators/blacklight/controller_generator.rb' - 'lib/generators/blacklight/document_generator.rb' - 'lib/generators/blacklight/install_generator.rb' - 'lib/generators/blacklight/search_builder_generator.rb' - 'lib/generators/blacklight/user_generator.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment. Style/SpaceBeforeFirstArg: Exclude: - 'db/migrate/20140202020201_create_searches.rb' - 'lib/generators/blacklight/controller_generator.rb' - 'lib/generators/blacklight/document_generator.rb' - 'lib/generators/blacklight/search_builder_generator.rb' # Offense count: 14 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. # SupportedStyles: space, no_space Style/SpaceInsideBlockBraces: Enabled: false # Offense count: 8 # Cop supports --auto-correct. Style/SpaceInsideBrackets: Exclude: - 'lib/blacklight/configuration/fields.rb' # Offense count: 18 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles. # SupportedStyles: space, no_space Style/SpaceInsideHashLiteralBraces: Enabled: false # Offense count: 19 # Cop supports --auto-correct. Style/SpaceInsideParens: Exclude: - 'app/controllers/concerns/blacklight/search_context.rb' - 'app/helpers/blacklight/catalog_helper_behavior.rb' - 'app/helpers/blacklight/facets_helper_behavior.rb' - 'app/helpers/blacklight/render_constraints_helper_behavior.rb' - 'app/helpers/blacklight/search_history_constraints_helper_behavior.rb' - 'app/helpers/blacklight/url_helper_behavior.rb' - 'app/models/concerns/blacklight/document/dublin_core.rb' - 'app/models/concerns/blacklight/document/extensions.rb' - 'app/models/record_mailer.rb' - 'lib/blacklight/search_state.rb' - 'lib/blacklight/solr/search_builder_behavior.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: single_quotes, double_quotes Style/StringLiteralsInInterpolation: Enabled: false # Offense count: 242 # Cop supports --auto-correct. Style/TrailingWhitespace: Enabled: false # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist. # Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym Style/TrivialAccessors: Exclude: - 'lib/blacklight/search_builder.rb'