diff options
| author | Xu Cheng | 2015-08-02 19:57:43 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-08-02 20:03:10 +0800 |
| commit | 6eba862388f77fe2a320bca4cbc391c2409c39ce (patch) | |
| tree | 90f546da31ca92f60b8c52048eafea67fa607bd8 | |
| parent | 79678cb109cd7eb6d7458a0e1f5b11ba8a516fcd (diff) | |
| download | brew-6eba862388f77fe2a320bca4cbc391c2409c39ce.tar.bz2 | |
rubocop: update style rules
Closes Homebrew/homebrew#42355.
Signed-off-by: Xu Cheng <xucheng@me.com>
| -rw-r--r-- | Library/.rubocop.yml | 10 |
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 |
