Fix Style/CaseIndentation.
This commit is contained in:
parent
240e49052c
commit
1c632f9c1e
@ -109,14 +109,6 @@ Style/CaseEquality:
|
|||||||
Exclude:
|
Exclude:
|
||||||
- 'Homebrew/compilers.rb'
|
- '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
|
# Offense count: 11
|
||||||
Style/ClassVars:
|
Style/ClassVars:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|||||||
@ -66,8 +66,13 @@ class Keg
|
|||||||
INFOFILE_RX = %r{info/([^.].*?\.info|dir)$}
|
INFOFILE_RX = %r{info/([^.].*?\.info|dir)$}
|
||||||
TOP_LEVEL_DIRECTORIES = %w[bin etc include lib sbin share var Frameworks].freeze
|
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
|
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|
|
PRUNEABLE_DIRECTORIES = %w[bin etc include lib sbin share Frameworks LinkedKegs var/homebrew/linked].map do |dir|
|
||||||
case d when "LinkedKegs" then HOMEBREW_LIBRARY/d else HOMEBREW_PREFIX/d end
|
case dir
|
||||||
|
when "LinkedKegs"
|
||||||
|
HOMEBREW_LIBRARY/dir
|
||||||
|
else
|
||||||
|
HOMEBREW_PREFIX/dir
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# These paths relative to the keg's share directory should always be real
|
# These paths relative to the keg's share directory should always be real
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user