aboutsummaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2018-02-19 17:02:50 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2018-02-19 17:02:50 +0100
commit77cd36c158624808e657e5dbb5ec8bc026fafa55 (patch)
tree4141e83d8cd37e7403ebec66bd1f3dcf11a4b8c7 /.rubocop.yml
parent3c62a936378e490e99c2ac8955797464216b1691 (diff)
downloadjo.mssola.com-77cd36c158624808e657e5dbb5ec8bc026fafa55.tar.gz
jo.mssola.com-77cd36c158624808e657e5dbb5ec8bc026fafa55.zip
Sorted out how to properly deploy
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml55
1 files changed, 55 insertions, 0 deletions
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