From 6eba862388f77fe2a320bca4cbc391c2409c39ce Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sun, 2 Aug 2015 19:57:43 +0800 Subject: rubocop: update style rules Closes Homebrew/homebrew#42355. Signed-off-by: Xu Cheng --- Library/.rubocop.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3