From a9302bb40ea2ef8a407c9fbb8bdf1a3e1f73348d Mon Sep 17 00:00:00 2001 From: Nicolas Laurent Date: Mon, 20 Apr 2020 16:33:48 +0200 Subject: [PATCH] add rubocop config for spaces inside and before blocks --- .rubocop.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 8ec67a35f09b..63eed1dd0b09 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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 \ No newline at end of file