Sha256: ff60a9078a5dce558f3f52b18e94dc7907b642afec13d188c2b5919865c01238

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

inherit_from:
  - .rubocop_todo.yml

require:
  - rubocop-rspec
  - rubocop-performance

AllCops:
  DefaultFormatter: fuubar
  EnabledByDefault: true
  TargetRubyVersion: 3.0
  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: [spec/**/*.rb]

Style/NumericLiterals:
  MinDigits: 6

Style/TopLevelMethodDefinition:
  Exclude: [doc/**/*.rb, examples/**/*.rb, spec/**/*.rb]

RSpec/BeNil:
  EnforcedStyle: be

RSpec/ClassCheck:
  EnforcedStyle: be_kind_of

################################################################################
#
# Rules we don't want to enable
#
################################################################################

RSpec/AlignLeftLetBrace:
  Enabled: false

RSpec/AlignRightLetBrace:
  Enabled: false

Style/Copyright:
  Enabled: false

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rmagick-6.0.0 .rubocop.yml