.rubocop.yml in rmagick-4.1.0.rc2 vs .rubocop.yml in rmagick-4.1.0

- old
+ new

@@ -9,5 +9,29 @@ EnabledByDefault: true TargetRubyVersion: 2.3 Exclude: - 'vendor/bundle/**/*' - '**/*\.spec' + +################################################################################ +# +# Rules that depart from rubocop defaults +# +################################################################################ + +Layout/MultilineAssignmentLayout: { EnforcedStyle: same_line } +RSpec/FilePath: { CustomTransform: { Magick: rmagick } } +Style/FormatString: { EnforcedStyle: sprintf } +Style/GuardClause: { MinBodyLength: 3 } +# we may not need this after finishing RSpec conversion +# seems like `rubocop-rspec` already excludes the `spec/` directory +Style/MethodCalledOnDoEndBlock: { Exclude: [test/**/*.rb, spec/**/*.rb] } +Style/NumericLiterals: { MinDigits: 6 } + +################################################################################ +# +# Rules we don't want to enable +# +################################################################################ + +RSpec/AlignLeftLetBrace: { Enabled: false } +RSpec/AlignRightLetBrace: { Enabled: false }