# This is the configuration used to check the rubocop source code. inherit_from: .rubocop_todo.yml require: - rubocop-rspec AllCops: TargetRubyVersion: 2.5 Layout/LineLength: Max: 114 Exclude: - lib/cocina/models/* Metrics/BlockLength: Exclude: - cocina-models.gemspec - spec/cocina/**/* Metrics/MethodLength: Max: 14 RSpec/MultipleExpectations: Enabled: false RSpec/ExampleLength: Max: 18 Exclude: - spec/cocina/models/description_spec.rb - spec/cocina/models/dro_shared_examples.rb Style/Documentation: Exclude: - lib/cocina/models/* Layout/EmptyLinesAroundAttributeAccessor: Enabled: true Layout/SpaceAroundMethodCallOperator: Enabled: true Lint/DeprecatedOpenSSLConstant: Enabled: true Lint/MixedRegexpCaptureTypes: Enabled: true Lint/RaiseException: Enabled: true Lint/StructNewOverride: Enabled: true Style/AccessorGrouping: Enabled: true Style/BisectedAttrAccessor: Enabled: true Style/ExponentialNotation: Enabled: true Style/HashEachMethods: Enabled: true Style/HashTransformKeys: Enabled: true Style/HashTransformValues: Enabled: true Style/RedundantAssignment: Enabled: true Style/RedundantFetchBlock: Enabled: true Style/RedundantRegexpCharacterClass: Enabled: true Style/RedundantRegexpEscape: Enabled: true Style/SlicingWithRange: Enabled: true Lint/BinaryOperatorWithIdenticalOperands: Enabled: true Lint/DuplicateElsifCondition: Enabled: true Lint/DuplicateRescueException: Enabled: true Lint/EmptyConditionalBody: Enabled: true Lint/FloatComparison: Enabled: true Lint/MissingSuper: Enabled: true Lint/OutOfRangeRegexpRef: Enabled: true Lint/SelfAssignment: Enabled: true Lint/TopLevelReturnWithArgument: Enabled: true Lint/UnreachableLoop: Enabled: true Style/ArrayCoercion: Enabled: true Style/CaseLikeIf: Enabled: true Style/ExplicitBlockArgument: Enabled: true Style/GlobalStdStream: Enabled: true Style/HashAsLastArrayItem: Enabled: true Style/HashLikeCase: Enabled: true Style/OptionalBooleanParameter: Enabled: false Style/RedundantFileExtensionInRequire: Enabled: true Style/SingleArgumentDig: Enabled: true Style/StringConcatenation: Enabled: true