From 18b9cc533f55b9a4275f6e5694b8d868f290944e Mon Sep 17 00:00:00 2001 From: Étienne Deparis Date: Sat, 28 Mar 2020 14:55:09 +0100 Subject: chore: Improve rubocop rules --- .rubocop.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index cf06840..4ffc86c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,19 +1,21 @@ --- AllCops: TargetRubyVersion: 2.6 + Exclude: + - lib/emojis.rb Layout/EmptyLineAfterGuardClause: Enabled: false +Layout/LineLength: + Max: 80 + Metrics/AbcSize: Enabled: false Metrics/BlockLength: Max: 30 -Metrics/LineLength: - Max: 80 - Metrics/MethodLength: Max: 15 @@ -26,9 +28,18 @@ Style/ConditionalAssignment: Style/ClassAndModuleChildren: EnforcedStyle: compact +Style/HashEachMethods: + Enabled: true + Style/HashSyntax: EnforcedStyle: no_mixed_keys +Style/HashTransformKeys: + Enabled: true + +Style/HashTransformValues: + Enabled: true + Style/PreferredHashMethods: EnforcedStyle: verbose -- cgit v1.2.1