From 6be4bdf6ad92eea3e57ccfaf95672daf43cc1090 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 6 Jul 2021 08:46:18 +0200 Subject: ci: fixed a lot of issues with style and urls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .rubocop.yml | 46 +++++----------------------------------------- 1 file changed, 5 insertions(+), 41 deletions(-) (limited to '.rubocop.yml') 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 -- cgit v1.2.3