.rubocop_todo.yml in cocina-models-0.75.0 vs .rubocop_todo.yml in cocina-models-0.76.0

- old
+ new

@@ -1,26 +1,95 @@ # This configuration was generated by # `rubocop --auto-gen-config --auto-gen-only-exclude` -# on 2022-01-14 00:32:36 UTC using RuboCop version 1.24.1. +# on 2022-04-27 19:20:35 UTC using RuboCop version 1.28.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: 1 +Lint/NoReturnInBeginEndBlocks: + Exclude: + - 'lib/cocina/models/mapping/to_mods/description.rb' + +# Offense count: 1 # Configuration parameters: AllowedMethods. # AllowedMethods: present?, blank?, presence, try, try!, in? Lint/SafeNavigationChain: Exclude: - 'lib/cocina/generator/schema_base.rb' +# Offense count: 13 +# This cop supports safe auto-correction (--auto-correct). +# 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: 95 +# Configuration parameters: IgnoredMethods, CountRepeatedAttributes. +Metrics/AbcSize: + Max: 40 + +# Offense count: 42 +# Configuration parameters: IgnoredMethods. +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: 89 +# Configuration parameters: CountAsOne. +RSpec/ExampleLength: + Max: 128 + +# Offense count: 9 +# Configuration parameters: Max. +RSpec/NestedGroups: + Exclude: + - 'spec/cocina/models/mapping/normalizers/mods/origin_info_normalizer_spec.rb' + # Offense count: 1 -# Configuration parameters: MinBodyLength. +# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals. Style/GuardClause: Exclude: - 'lib/cocina/generator/schema_base.rb' + +# Offense count: 1 +# This cop supports safe auto-correction (--auto-correct). +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: 206 +# This cop supports safe auto-correction (--auto-correct). +# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns. +# URISchemes: http, https +Layout/LineLength: + Max: 187