Skip to content

Commit

Permalink
Merge pull request #365 from alphagov/disable-multiline-block-chain
Browse files Browse the repository at this point in the history
Disable `Style/MultilineBlockChain`
  • Loading branch information
robinjam authored Mar 28, 2024
2 parents 43f8d2f + fba3725 commit e40cd10
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,10 @@ Style/FrozenStringLiteralComment:
# https://rubystyle.guide/#no-datetime
Style/DateTime:
Enabled: true

# This rule conflicts with Style/BlockDelimiters.
# Style/MultilineBlockChain says use do...end instead of {...} for multi-line blocks,
# but Style/BlockDelimiters says use {...} instead of do...end when chaining.
# The latter should take priority over the former, because it leads to more readable code.
Style/MultilineBlockChain:
Enabled: false

0 comments on commit e40cd10

Please sign in to comment.