Skip to content
Snippets Groups Projects
Commit 99bccaae authored by richiethomas's avatar richiethomas
Browse files

Remove /cask/ from readall file filter

parent dfaaada8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment