From bb456254308acbb89223544db97eb3f1dacacc90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 30 Apr 2019 00:30:17 +0200 Subject: Bump rubocop to 0.68.0 --- .rubocop.yml | 40 ++++++++++++++++------------------------ 1 file changed, 16 insertions(+), 24 deletions(-) (limited to '.rubocop.yml') 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 -- cgit v1.2.1