Override for binary mime type based on languages.yml

If the extension already exists in languages.yml, it's probably not a
binary, but code.
This commit is contained in:
Simon Hafner
2012-09-13 14:55:31 -05:00
parent 567cd6ef68
commit b954d22eba
3 changed files with 15 additions and 2 deletions

View File

@@ -67,8 +67,8 @@ module Linguist
return if @computed_stats
@enum.each do |blob|
# Skip binary file extensions
next if blob.binary_mime_type?
# Skip files that are likely binary
next if blob.likely_binary?
# Skip vendored or generated blobs
next if blob.vendored? || blob.generated? || blob.language.nil?