diff options
| author | Markus Reiter | 2016-09-21 08:55:07 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-23 15:30:06 +0200 |
| commit | 1c632f9c1ee8727c084e6020552c5983b1127b1c (patch) | |
| tree | 87a0983cfd8384d93e84bca3171ea78bacdf8983 /Library | |
| parent | 240e49052cf113b74c0b2940531d7b6a28ab83af (diff) | |
| download | brew-1c632f9c1ee8727c084e6020552c5983b1127b1c.tar.bz2 | |
Fix Style/CaseIndentation.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/.rubocop_todo.yml | 8 | ||||
| -rw-r--r-- | Library/Homebrew/keg.rb | 9 |
2 files changed, 7 insertions, 10 deletions
diff --git a/Library/.rubocop_todo.yml b/Library/.rubocop_todo.yml index fde1d853f..421944874 100644 --- a/Library/.rubocop_todo.yml +++ b/Library/.rubocop_todo.yml @@ -109,14 +109,6 @@ Style/CaseEquality: Exclude: - 'Homebrew/compilers.rb' -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth. -# SupportedStyles: case, end -Style/CaseIndentation: - Exclude: - - 'Homebrew/keg.rb' - # Offense count: 11 Style/ClassVars: Exclude: diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index db3705bc1..e49c8126b 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -66,8 +66,13 @@ class Keg INFOFILE_RX = %r{info/([^.].*?\.info|dir)$} TOP_LEVEL_DIRECTORIES = %w[bin etc include lib sbin share var Frameworks].freeze ALL_TOP_LEVEL_DIRECTORIES = (TOP_LEVEL_DIRECTORIES + %w[lib/pkgconfig share/locale share/man opt]).freeze - PRUNEABLE_DIRECTORIES = %w[bin etc include lib sbin share Frameworks LinkedKegs var/homebrew/linked].map do |d| - case d when "LinkedKegs" then HOMEBREW_LIBRARY/d else HOMEBREW_PREFIX/d end + PRUNEABLE_DIRECTORIES = %w[bin etc include lib sbin share Frameworks LinkedKegs var/homebrew/linked].map do |dir| + case dir + when "LinkedKegs" + HOMEBREW_LIBRARY/dir + else + HOMEBREW_PREFIX/dir + end end # These paths relative to the keg's share directory should always be real |
