inherit_from: .rubocop_todo.yml AllCops: Exclude: - vendor/**/* - example/**/* NewCops: enable TargetRubyVersion: 3.1 SuggestExtensions: false # Layout stuff # Layout/EmptyLinesAroundArguments: Enabled: false Layout/EmptyLinesAroundAttributeAccessor: Enabled: true Layout/FirstHashElementIndentation: EnforcedStyle: consistent Layout/LineLength: Max: 120 Exclude: - spec/**/* Layout/SpaceAroundMethodCallOperator: Enabled: true # Lint stuff # Lint/ConstantDefinitionInBlock: Exclude: - spec/**/* Lint/DeprecatedOpenSSLConstant: Enabled: true Lint/DuplicateElsifCondition: Enabled: true Lint/MixedRegexpCaptureTypes: Enabled: true Lint/RaiseException: Enabled: true Lint/StructNewOverride: Enabled: true # Metrics stuff # Metrics/BlockLength: Exclude: - spec/**/* Metrics/ClassLength: Max: 350 Metrics/CyclomaticComplexity: Max: 17 Metrics/MethodLength: Exclude: - spec/**/* # Naming stuff # Naming: Enabled: false # Style stuff # Style/AccessorGrouping: Enabled: true Style/AsciiComments: Enabled: false Style/ArrayCoercion: Enabled: true Style/BisectedAttrAccessor: Enabled: true Style/CaseLikeIf: Enabled: true Style/ExponentialNotation: Enabled: true Style/ExplicitBlockArgument: Enabled: false Style/HashAsLastArrayItem: Enabled: true Style/HashEachMethods: Enabled: true Style/HashLikeCase: Enabled: true Style/HashSyntax: Enabled: false Style/HashTransformKeys: Enabled: true Style/HashTransformValues: Enabled: true Style/OpenStructUse: Exclude: - spec/**/* Style/RegexpLiteral: Enabled: false Style/RedundantAssignment: Enabled: true Style/RedundantFetchBlock: Enabled: true Style/RedundantFileExtensionInRequire: Enabled: true Style/RedundantRegexpCharacterClass: Enabled: true Style/RedundantRegexpEscape: Enabled: true Style/SlicingWithRange: Enabled: false