Adding test to check that languages.yml includes all extensions represented in samples folder

This commit is contained in:
Arfon Smith
2014-08-11 14:16:25 -07:00
parent 41c880afc7
commit 43923976c2
4 changed files with 30636 additions and 30457 deletions

View File

@@ -532,6 +532,7 @@ module Linguist
if extnames = extensions[name]
extnames.each do |extname|
if !options['extensions'].include?(extname)
warn "#{name} has a sample with extension (#{extname}) that isn't explicitly defined in languages.yml" unless extname == '.script!'
options['extensions'] << extname
end
end