summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar √Čtienne Deparis 2020-03-28 14:55:09 +0100
committerGravatar √Čtienne Deparis 2020-03-28 14:55:09 +0100
commit18b9cc533f55b9a4275f6e5694b8d868f290944e (patch)
treec750813c452e929ac227037faa2e6f2aed43eafb
parentf7bc188ba657fc1e476047a13cd8686c63c1872c (diff)
downloadstatus-18b9cc533f55b9a4275f6e5694b8d868f290944e.tar.gz
status-18b9cc533f55b9a4275f6e5694b8d868f290944e.tar.xz
status-18b9cc533f55b9a4275f6e5694b8d868f290944e.zip
chore: Improve rubocop rules
-rw-r--r--.rubocop.yml17
1 files 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