readall: also check 'brew.rb' for issues
Closes #119. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
This commit is contained in:
parent
30c0d97e5c
commit
b5c27bb7e5
@ -11,7 +11,11 @@ module Homebrew
|
||||
def readall
|
||||
if ARGV.delete("--syntax")
|
||||
ruby_files = Queue.new
|
||||
Dir.glob("#{HOMEBREW_LIBRARY}/Homebrew/**/*.rb").each do |rb|
|
||||
scan_files = %W[
|
||||
#{HOMEBREW_LIBRARY}/*.rb
|
||||
#{HOMEBREW_LIBRARY}/Homebrew/**/*.rb
|
||||
]
|
||||
Dir.glob(scan_files).each do |rb|
|
||||
next if rb.include?("/vendor/")
|
||||
ruby_files << rb
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user