# This configuration was generated by # `rubocop --auto-gen-config --auto-gen-only-exclude` # on 2023-03-13 15:58:18 UTC using RuboCop version 1.48.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: 3 # Configuration parameters: EnforcedStyle, AllowedGems, Include. # SupportedStyles: Gemfile, gems.rb, gemspec # Include: **/*.gemspec, **/Gemfile, **/gems.rb Gemspec/DevelopmentDependencies: Exclude: - 'cocina-models.gemspec' # Offense count: 1 Lint/NoReturnInBeginEndBlocks: Exclude: - 'lib/cocina/models/mapping/to_mods/description.rb' # Offense count: 13 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. Lint/UnusedMethodArgument: Exclude: - 'lib/cocina/models/mapping/from_mods/admin_metadata.rb' - 'lib/cocina/models/mapping/from_mods/contributor.rb' - 'lib/cocina/models/mapping/from_mods/event.rb' - 'lib/cocina/models/mapping/from_mods/form.rb' - 'lib/cocina/models/mapping/from_mods/geographic.rb' - 'lib/cocina/models/mapping/from_mods/hydrus_default_title_builder.rb' - 'lib/cocina/models/mapping/from_mods/identifier.rb' - 'lib/cocina/models/mapping/from_mods/language.rb' - 'lib/cocina/models/mapping/from_mods/note.rb' - 'lib/cocina/models/mapping/from_mods/subject.rb' - 'lib/cocina/models/mapping/to_mods/event.rb' # Offense count: 98 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. Metrics/AbcSize: Max: 40 # Offense count: 43 # Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/CyclomaticComplexity: Max: 12 # Offense count: 1 # Configuration parameters: Max, CountKeywordArgs, MaxOptionalParameters. Metrics/ParameterLists: Exclude: - 'lib/cocina/generator/schema_base.rb' # Offense count: 41 # Configuration parameters: IgnoredMetadata. RSpec/DescribeClass: Enabled: false # Offense count: 87 # Configuration parameters: CountAsOne. RSpec/ExampleLength: Max: 103 # Offense count: 10 # Configuration parameters: Max, AllowedGroups. RSpec/NestedGroups: Exclude: - 'spec/cocina/models/mapping/normalizers/mods/origin_info_normalizer_spec.rb' - 'spec/cocina/models/validators/date_time_validator_spec.rb' # Offense count: 24 RSpec/PendingWithoutReason: Exclude: - 'spec/cocina/models/mapping/descriptive/mods/name_spec.rb' - 'spec/cocina/models/mapping/descriptive/mods/origin_info_place_spec.rb' - 'spec/cocina/models/mapping/descriptive/mods/part_spec.rb' - 'spec/cocina/models/mapping/descriptive/mods/physical_description_spec.rb' - 'spec/cocina/models/mapping/descriptive/mods/record_info_spec.rb' - 'spec/cocina/models/mapping/descriptive/mods/subject_classification_spec.rb' - 'spec/cocina/models/mapping/descriptive/mods/subject_genre_spec.rb' - 'spec/cocina/models/mapping/descriptive/mods/subject_geographic_spec.rb' - 'spec/cocina/models/mapping/descriptive/mods/subject_name_spec.rb' - 'spec/cocina/models/mapping/descriptive/mods/subject_spec.rb' - 'spec/cocina/models/mapping/descriptive/mods/subject_title_spec.rb' - 'spec/cocina/models/mapping/descriptive/mods/title_info_spec.rb' - 'spec/cocina/models/mapping/descriptive/mods/type_of_resource_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/IfUnlessModifier: Exclude: - 'lib/cocina/models/validators/open_api_validator.rb' # Offense count: 9 Style/MultilineBlockChain: Exclude: - 'lib/cocina/models/mapping/to_mods/access.rb' - 'lib/cocina/models/mapping/to_mods/contributor.rb' - 'lib/cocina/models/mapping/to_mods/form.rb' - 'lib/cocina/models/mapping/to_mods/subject.rb' # Offense count: 239 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. # URISchemes: http, https Layout/LineLength: Max: 267