Remove /cask/ from readall file filter

This commit is contained in:
richiethomas 2017-10-18 17:44:09 -04:00
parent dfaaada8b6
commit 99bccaae13

View File

@ -14,7 +14,7 @@ module Homebrew
def readall
if ARGV.include?("--syntax")
scan_files = "#{HOMEBREW_LIBRARY}/Homebrew/**/*.rb"
ruby_files = Dir.glob(scan_files).reject{|file| file =~ /vendor|cask/ }
ruby_files = Dir.glob(scan_files).reject{|file| file.include? '/vendor/' }
Homebrew.failed = true unless Readall.valid_ruby_syntax?(ruby_files)
end