aboutsummaryrefslogtreecommitdiffstats
path: root/.rubocop.yml
diff options
context:
space:
mode:
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 54dcaf80f9..0cfe5d5d84 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -1,3 +1,5 @@
+require: rubocop-performance
+
AllCops:
TargetRubyVersion: 2.5
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
@@ -10,7 +12,7 @@ AllCops:
- 'railties/test/fixtures/tmp/**/*'
- 'actionmailbox/test/dummy/**/*'
- 'actiontext/test/dummy/**/*'
- - 'node_modules/**/*'
+ - '**/node_modules/**/*'
Performance:
Exclude:
@@ -116,6 +118,9 @@ Layout/SpaceAroundOperators:
Layout/SpaceBeforeComma:
Enabled: true
+Layout/SpaceBeforeComment:
+ Enabled: true
+
Layout/SpaceBeforeFirstArg:
Enabled: true