mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-02-11 02:39:34 +00:00
Adding test to check that languages.yml includes all extensions represented in samples folder
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user