diff options
Diffstat (limited to '.rubocop.yml')
| -rw-r--r-- | .rubocop.yml | 46 |
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 |
