Skip to content

Instantly share code, notes, and snippets.

@chinmaygarde
Created May 6, 2013 21:48
Show Gist options
  • Save chinmaygarde/5528493 to your computer and use it in GitHub Desktop.
Save chinmaygarde/5528493 to your computer and use it in GitHub Desktop.
files = []
["plist", "xml"].each { |t| Dir["**/*.#{t}"].each {|i| files << i} }
files.each do |f|
`xmllint --noout #{f}`
puts "#{f} failed validation" if $?.exitstatus != 0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment