aboutsummaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2020-03-23 18:41:28 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2020-03-23 18:41:28 +0100
commite14c5f32a62e6dc6fb0d76ffe2bc85463ef40acd (patch)
tree72cabf52c01b033512ca098be59701114df439de /.rubocop.yml
parentbd14c5ecb5904d237365b5a8715daaa1e9bbfb12 (diff)
downloadjo.mssola.com-e14c5f32a62e6dc6fb0d76ffe2bc85463ef40acd.tar.gz
jo.mssola.com-e14c5f32a62e6dc6fb0d76ffe2bc85463ef40acd.zip
Updated gems and js packages
This also required some changes on the rubocop config. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml23
1 files changed, 17 insertions, 6 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index edc5960..555eea7 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -13,10 +13,15 @@ AllCops:
# This is a remnant of old SUSE-style alignment for hashes, The table format
# looks more human readable.
-Layout/AlignHash:
+Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
+# The default is just too small. A limit of 100 looks reasonable and many other
+# projects (including inside of SUSE) are also using this value.
+Layout/LineLength:
+ Max: 100
+
#
# Metrics
#
@@ -25,11 +30,6 @@ Layout/AlignHash:
Metrics/AbcSize:
Max: 30
-# The default is just too small. A limit of 100 looks reasonable and many other
-# projects (including inside of SUSE) are also using this value.
-Metrics/LineLength:
- Max: 100
-
Metrics/MethodLength:
Max: 20
@@ -53,3 +53,14 @@ Style/StringLiteralsInInterpolation:
Style/AsciiComments:
Enabled: false
+
+## New stuff
+
+Style/HashEachMethods:
+ Enabled: true
+
+Style/HashTransformKeys:
+ Enabled: true
+
+Style/HashTransformValues:
+ Enabled: true