sul-dlss/cocina-models

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config --auto-gen-only-exclude`
# on 2023-11-01 19:51:40 UTC using RuboCop version 1.57.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: 8
# 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: 224
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
  Max: 103

# Offense count: 19
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/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: 249
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Layout/LineLength:
  Max: 267