aboutsummaryrefslogtreecommitdiffstats
path: root/.rubocop.yml
diff options
context:
space:
mode:
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml19
1 files changed, 18 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index dce1a30d9f..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
@@ -179,6 +184,15 @@ Layout/TrailingWhitespace:
Style/UnneededPercentQ:
Enabled: true
+Lint/AmbiguousOperator:
+ Enabled: true
+
+Lint/AmbiguousRegexpLiteral:
+ Enabled: true
+
+Lint/ErbNewArguments:
+ Enabled: true
+
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
Lint/RequireParentheses:
Enabled: true
@@ -234,5 +248,8 @@ Performance/EndWith:
Performance/RegexpMatch:
Enabled: true
+Performance/ReverseEach:
+ Enabled: true
+
Performance/UnfreezeString:
Enabled: true