mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Remove VS project file supression
This commit is contained in:
@@ -231,7 +231,6 @@ module Linguist
|
||||
#
|
||||
# Includes:
|
||||
# - XCode project XML files
|
||||
# - Visual Studio project XNL files
|
||||
# - Minified JavaScript
|
||||
#
|
||||
# Please add additional test coverage to
|
||||
@@ -239,7 +238,7 @@ module Linguist
|
||||
#
|
||||
# Return true or false
|
||||
def generated?
|
||||
if xcode_project_file? || visual_studio_project_file?
|
||||
if xcode_project_file?
|
||||
true
|
||||
elsif generated_coffeescript? || minified_javascript? || generated_net_docfile?
|
||||
true
|
||||
@@ -258,16 +257,6 @@ module Linguist
|
||||
['.xib', '.nib', '.pbxproj', '.xcworkspacedata', '.xcuserstate'].include?(extname)
|
||||
end
|
||||
|
||||
# Internal: Is the blob a Visual Studio project file?
|
||||
#
|
||||
# Generated if the file extension is a Visual Studio project
|
||||
# file extension.
|
||||
#
|
||||
# Returns true of false.
|
||||
def visual_studio_project_file?
|
||||
['.csproj', '.dbproj', '.fsproj', '.pyproj', '.rbproj', '.vbproj', '.vcxproj', '.wixproj', '.resx', '.sln', '.vdproj', '.isproj'].include?(extname)
|
||||
end
|
||||
|
||||
# Internal: Is the blob minified JS?
|
||||
#
|
||||
# Consider JS minified if the average line length is
|
||||
|
||||
@@ -145,19 +145,6 @@ class TestBlob < Test::Unit::TestCase
|
||||
assert blob("MainMenu.nib").generated?
|
||||
assert blob("project.pbxproj").generated?
|
||||
|
||||
# Visual Studio Files
|
||||
assert blob("project.csproj").generated?
|
||||
assert blob("project.dbproj").generated?
|
||||
assert blob("project.isproj").generated?
|
||||
assert blob("project.pyproj").generated?
|
||||
assert blob("project.rbproj").generated?
|
||||
assert blob("project.vbproj").generated?
|
||||
assert blob("project.vdproj").generated?
|
||||
assert blob("project.vcxproj").generated?
|
||||
assert blob("project.wixproj").generated?
|
||||
assert blob("project.resx").generated?
|
||||
assert blob("project.sln").generated?
|
||||
|
||||
# Generated .NET Docfiles
|
||||
assert blob("net_docfile.xml").generated?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user