summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml40
1 files changed, 16 insertions, 24 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 586ec9e319..01088346f3 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -1,3 +1,5 @@
+require: rubocop-performance
+
AllCops:
DisabledByDefault: true
TargetRubyVersion: 2.3
@@ -219,16 +221,6 @@ Lint/Void:
Layout/AccessModifierIndentation:
Enabled: true
EnforcedStyle: outdent
- Exclude:
- - 'lib/bundler/cli.rb'
- - 'lib/bundler/definition.rb'
- - 'lib/bundler/feature_flag.rb'
- - 'lib/bundler/gem_helpers.rb'
- - 'lib/bundler/index.rb'
- - 'lib/bundler/remote_specification.rb'
- - 'lib/bundler/shared_helpers.rb'
- - 'lib/bundler/source/path.rb'
- - 'spec/realworld/gemfile_source_header_spec.rb'
Layout/AlignArray:
Enabled: true
@@ -309,19 +301,19 @@ Layout/EndOfLine:
Layout/ExtraSpacing:
Enabled: true
-Layout/FirstParameterIndentation:
+Layout/IndentAssignment:
Enabled: true
-Layout/IndentArray:
+Layout/IndentFirstArrayElement:
Enabled: true
EnforcedStyle: consistent
-Layout/IndentAssignment:
+Layout/IndentFirstHashElement:
Enabled: true
+ EnforcedStyle: special_inside_parentheses
-Layout/IndentHash:
+Layout/IndentFirstArgument:
Enabled: true
- EnforcedStyle: special_inside_parentheses
Layout/IndentationConsistency:
Enabled: true
@@ -464,21 +456,12 @@ Performance/EndWith:
Performance/FixedSize:
Enabled: true
-Performance/LstripRstrip:
- Enabled: true
-
-Performance/RedundantSortBy:
- Enabled: true
-
Performance/RegexpMatch:
Enabled: true
Performance/ReverseEach:
Enabled: true
-Performance/Sample:
- Enabled: true
-
Performance/Size:
Enabled: true
@@ -731,6 +714,9 @@ Style/RedundantParentheses:
Style/RedundantSelf:
Enabled: true
+Style/RedundantSortBy:
+ Enabled: true
+
Style/RegexpLiteral:
Enabled: true
@@ -740,6 +726,9 @@ Style/RescueModifier:
Style/RescueStandardError:
Enabled: true
+Style/Sample:
+ Enabled: true
+
Style/SelfAssignment:
Enabled: true
@@ -768,6 +757,9 @@ Style/StringLiteralsInInterpolation:
Enabled: true
EnforcedStyle: double_quotes
+Style/Strip:
+ Enabled: true
+
Style/StructInheritance:
Enabled: true