aboutsummaryrefslogtreecommitdiffstats
path: root/.rubocop.yml
diff options
context:
space:
mode:
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml19
1 files changed, 8 insertions, 11 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index e6ce1a7..46b9cb8 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -1,8 +1,11 @@
+require: rubocop-performance
+
AllCops:
- TargetRubyVersion: 2.4
+ TargetRubyVersion: 3.1
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
# to ignore them, so only the ones explicitly set in this file are enabled.
DisabledByDefault: true
+ SuggestExtensions: false
Performance:
Exclude:
@@ -13,12 +16,6 @@ Performance:
Style/AndOr:
Enabled: true
-# Do not use braces for hash literals when they are the last argument of a
-# method call.
-Style/BracesAroundHashParameters:
- Enabled: true
- EnforcedStyle: context_dependent
-
# Align `when` with `case`.
Layout/CaseIndentation:
Enabled: true
@@ -127,11 +124,11 @@ Style/StringLiterals:
EnforcedStyle: double_quotes
# Detect hard tabs, no hard tabs.
-Layout/Tab:
+Layout/IndentationStyle:
Enabled: true
# Blank lines should not have any spaces.
-Layout/TrailingBlankLines:
+Layout/TrailingEmptyLines:
Enabled: true
# No trailing whitespace.
@@ -139,14 +136,14 @@ Layout/TrailingWhitespace:
Enabled: true
# Use quotes for string literals when they are enough.
-Style/UnneededPercentQ:
+Style/RedundantPercentQ:
Enabled: true
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
Lint/RequireParentheses:
Enabled: true
-Lint/StringConversionInInterpolation:
+Lint/RedundantStringCoercion:
Enabled: true
Lint/UriEscapeUnescape: