aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-08-02 19:57:43 +0800
committerXu Cheng2015-08-02 20:03:10 +0800
commit6eba862388f77fe2a320bca4cbc391c2409c39ce (patch)
tree90f546da31ca92f60b8c52048eafea67fa607bd8 /Library
parent79678cb109cd7eb6d7458a0e1f5b11ba8a516fcd (diff)
downloadbrew-6eba862388f77fe2a320bca4cbc391c2409c39ce.tar.bz2
rubocop: update style rules
Closes Homebrew/homebrew#42355. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/.rubocop.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml
index b839f3da2..89dcaa463 100644
--- a/Library/.rubocop.yml
+++ b/Library/.rubocop.yml
@@ -121,3 +121,13 @@ Style/SignalException:
# trailing commas in method argument lists are a syntax error in 1.8
Style/TrailingComma:
Enabled: false
+
+# We prefer compact if-else-end/case-when-end alignment
+Lint/EndAlignment:
+ AlignWith: variable
+Style/CaseIndentation:
+ IndentWhenRelativeTo: end
+
+# We prefer Perl-style regex back references
+Style/PerlBackrefs:
+ Enabled: false