Skip to content

Commit

Permalink
add rubocop config for spaces inside and before blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Laurent committed Apr 20, 2020
1 parent cafc1a2 commit a9302bb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .rubocop.yml
Expand Up @@ -374,3 +374,15 @@ Style/StringLiterals:
Style/UnlessElse:
Description: Checks for unless expressions with else clauses.
Enabled: true

# Supports --auto-correct
Layout/SpaceBeforeBlockBraces:
Enabled: true
EnforcedStyle: space
EnforcedStyleForEmptyBraces: space

# Supports --auto-correct
Layout/SpaceInsideBlockBraces:
Enabled: true
EnforcedStyle: space
EnforcedStyleForEmptyBraces: space

0 comments on commit a9302bb

Please sign in to comment.