aboutsummaryrefslogtreecommitdiffstats
path: root/.rubocop.yml
diff options
context:
space:
mode:
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index dafdd063bf..8f619b7956 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -50,6 +50,18 @@ Style/IndentationWidth:
Style/MethodDefParentheses:
Enabled: true
+# Use `foo {}` not `foo{}`.
+Style/SpaceBeforeBlockBraces:
+ Enabled: true
+
+# Use `foo { bar }` not `foo {bar}`.
+Style/SpaceInsideBlockBraces:
+ Enabled: true
+
+# Use `{ a: 1 }` not `{a:1}`.
+Style/SpaceInsideHashLiteralBraces:
+ Enabled: true
+
# Check quotes usage according to lint rule below.
Style/StringLiterals:
Enabled: true