style: tweak style.
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
This commit is contained in:
parent
ed0d6b7f61
commit
dfe2b5b2ca
@ -144,7 +144,7 @@ module Homebrew
|
|||||||
files&.map!(&:expand_path)
|
files&.map!(&:expand_path)
|
||||||
if files.blank? || files == [HOMEBREW_REPOSITORY]
|
if files.blank? || files == [HOMEBREW_REPOSITORY]
|
||||||
files = [HOMEBREW_LIBRARY_PATH]
|
files = [HOMEBREW_LIBRARY_PATH]
|
||||||
elsif files.any? { |f| (f.to_s.start_with? HOMEBREW_REPOSITORY/"docs") || (f.basename == "docs") }
|
elsif files.any? { |f| f.to_s.start_with?(HOMEBREW_REPOSITORY/"docs") || (f.basename == "docs") }
|
||||||
args << "--config" << (HOMEBREW_REPOSITORY/"docs/.rubocop.yml")
|
args << "--config" << (HOMEBREW_REPOSITORY/"docs/.rubocop.yml")
|
||||||
elsif files.none? { |f| f.to_s.start_with? HOMEBREW_LIBRARY_PATH }
|
elsif files.none? { |f| f.to_s.start_with? HOMEBREW_LIBRARY_PATH }
|
||||||
args << "--config" << (HOMEBREW_LIBRARY/".rubocop.yml")
|
args << "--config" << (HOMEBREW_LIBRARY/".rubocop.yml")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user