Skip to content

Commit

Permalink
Remove VS project file supression
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Dec 23, 2011
1 parent 354cd3a commit 395a88a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
13 changes: 1 addition & 12 deletions lib/linguist/blob_helper.rb
Expand Up @@ -231,15 +231,14 @@ def average_line_length
#
# Includes:
# - XCode project XML files
# - Visual Studio project XNL files
# - Minified JavaScript
#
# Please add additional test coverage to
# `test/test_blob.rb#test_generated` if you make any changes.
#
# 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
Expand All @@ -258,16 +257,6 @@ def xcode_project_file?
['.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
Expand Down
13 changes: 0 additions & 13 deletions test/test_blob.rb
Expand Up @@ -145,19 +145,6 @@ def test_generated
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?

Expand Down

0 comments on commit 395a88a

Please sign in to comment.