aboutsummaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2021-07-06 08:46:18 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2021-07-06 08:46:18 +0200
commit6be4bdf6ad92eea3e57ccfaf95672daf43cc1090 (patch)
tree090a0fc781b2482be03f8bef69d33dc7d9ba7c09 /.rubocop.yml
parentba3cfcd0b25c2b4ff47d325db3c592a0673df5f6 (diff)
downloadjo.mssola.com-6be4bdf6ad92eea3e57ccfaf95672daf43cc1090.tar.gz
jo.mssola.com-6be4bdf6ad92eea3e57ccfaf95672daf43cc1090.zip
ci: fixed a lot of issues with style and urls
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml46
1 files changed, 5 insertions, 41 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index e547be9..3d4067a 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -1,3 +1,7 @@
+require:
+ - rubocop-performance
+ - rubocop-rake
+
AllCops:
TargetRubyVersion: 3.0
@@ -9,60 +13,20 @@ AllCops:
Exclude:
- './_site/**/*'
-#
-# Layout
-#
-
-# This is a remnant of old SUSE-style alignment for hashes, The table format
-# looks more human readable.
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
-#
-
-# The default is just too small.
Metrics/AbcSize:
Max: 30
Metrics/MethodLength:
Max: 20
-#
-# Style
-#
-
# This forces us to create a new object for no real reason.
Style/MultipleComparison:
Enabled: false
-# This is a common SUSE configuration value: the performance difference between
-# single and double quotes is no longer there, and so it's better to be
-# consistent and force only double quotes.
-Style/StringLiterals:
- EnforcedStyle: double_quotes
-
-# Same as Style/StringLiterals.
-Style/StringLiteralsInInterpolation:
- EnforcedStyle: double_quotes
-
+# It's actually quite cool to spell my own name correctly...
Style/AsciiComments:
Enabled: false
-
-## New stuff
-
-Style/HashEachMethods:
- Enabled: true
-
-Style/HashTransformKeys:
- Enabled: true
-
-Style/HashTransformValues:
- Enabled: true