aboutsummaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
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