summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorSamuel E. Giddins <segiddins@segiddins.me>2015-07-15 20:32:46 -0700
committerSamuel E. Giddins <segiddins@segiddins.me>2015-07-15 20:32:46 -0700
commitc5db3c9fd79b319ebc542d00174231b321587802 (patch)
tree2aaf7731ec5f67a5bef257690d4ad78b24f1dac9 /.rubocop.yml
parente4031f9623d6df9ad88d03757b42c0fd45aadc2e (diff)
downloadbundler-c5db3c9fd79b319ebc542d00174231b321587802.tar.gz
[RuboCop] Add more rules
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml63
1 files changed, 61 insertions, 2 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 9ad3af6345..f7aad16fda 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -6,8 +6,67 @@ AllCops:
- tmp/**/*
DisplayCopNames: true
-Style/HashSyntax:
- EnforcedStyle: hash_rockets
+# Style
+
+# They are idiomatic
+Style/AssignmentInCondition:
+ Enabled: false
+
+
+Style/MultilineOperationIndentation:
+ EnforcedStyle: indented
+
+# We adopted raise instead of fail.
+Style/SignalException:
+ EnforcedStyle: only_raise
Style/StringLiterals:
EnforcedStyle: double_quotes
+
+# Having these make it easier to *not* forget to add one when adding a new
+# value and you can simply copy the previous line.
+Style/TrailingComma:
+ EnforcedStyleForMultiline: comma
+
+# 1.8.7 support
+
+Style/HashSyntax:
+ EnforcedStyle: hash_rockets
+
+Style/Lambda:
+ Enabled: false
+
+Style/DotPosition:
+ EnforcedStyle: trailing
+
+Style/EachWithObject:
+ Enabled: false
+
+Style/SpecialGlobalVars:
+ Enabled: false
+
+# Metrics
+
+# Arbitrary max lengths for classes simply do not work and enabling this will
+# lead to a never ending stream of annoyance and changes.
+Metrics/ClassLength:
+ Enabled: false
+
+# Arbitrary max lengths for methods simply do not work and enabling this will
+# lead to a never ending stream of annoyance and changes.
+Metrics/MethodLength:
+ Enabled: false
+
+# No enforced convention here.
+Metrics/BlockNesting:
+ Enabled: false
+
+# It will be obvious which code is complex, Rubocop should only lint simple
+# rules for us.
+Metrics/AbcSize:
+ Enabled: false
+
+# It will be obvious which code is complex, Rubocop should only lint simple
+# rules for us.
+Metrics/CyclomaticComplexity:
+ Enabled: false