From 77cd36c158624808e657e5dbb5ec8bc026fafa55 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 19 Feb 2018 17:02:50 +0100 Subject: Sorted out how to properly deploy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .rubocop.yml | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .rubocop.yml (limited to '.rubocop.yml') diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..edc5960 --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,55 @@ +AllCops: + TargetRubyVersion: 2.5 + + DisplayCopNames: true + DisplayStyleGuide: false + + Exclude: + - './_site/**/*' + +# +# Layout +# + +# This is a remnant of old SUSE-style alignment for hashes, The table format +# looks more human readable. +Layout/AlignHash: + EnforcedHashRocketStyle: table + EnforcedColonStyle: table + +# +# Metrics +# + +# The default is just too small. +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 + +# +# 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 + +Style/AsciiComments: + Enabled: false -- cgit v1.2.3