mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Improve language stats for .net projects
This excludes some common js used in many .net project so that they don't show up in language stats. Things exlude now include: - Visual Studio intellisense js files - Microsoft's Ajax and Validation js - Anything in the NuGet packages directory
This commit is contained in:
@@ -73,3 +73,14 @@
|
|||||||
|
|
||||||
# Sparkle
|
# Sparkle
|
||||||
- (^|/)Sparkle/
|
- (^|/)Sparkle/
|
||||||
|
|
||||||
|
## .NET ##
|
||||||
|
|
||||||
|
# Visual Studio IntelliSense
|
||||||
|
- -vsdoc\.js$
|
||||||
|
|
||||||
|
# Microsoft Ajax
|
||||||
|
- (^|/)[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$
|
||||||
|
|
||||||
|
# NuGet
|
||||||
|
- ^[Pp]ackages/
|
||||||
|
|||||||
@@ -241,6 +241,20 @@ class TestBlob < Test::Unit::TestCase
|
|||||||
|
|
||||||
# WAF
|
# WAF
|
||||||
assert blob("waf").vendored?
|
assert blob("waf").vendored?
|
||||||
|
|
||||||
|
# Visual Studio IntelliSense
|
||||||
|
assert blob("Scripts/jquery-1.7-vsdoc.js").vendored?
|
||||||
|
|
||||||
|
# Microsoft Ajax
|
||||||
|
assert blob("Scripts/MicrosoftAjax.debug.js").vendored?
|
||||||
|
assert blob("Scripts/MicrosoftAjax.js").vendored?
|
||||||
|
assert blob("Scripts/MicrosoftMvcAjax.debug.js").vendored?
|
||||||
|
assert blob("Scripts/MicrosoftMvcAjax.js").vendored?
|
||||||
|
assert blob("Scripts/MicrosoftMvcValidation.debug.js").vendored?
|
||||||
|
assert blob("Scripts/MicrosoftMvcValidation.js").vendored?
|
||||||
|
|
||||||
|
# NuGet Packages
|
||||||
|
assert blob("packages/Modernizr.2.0.6/Content/Scripts/modernizr-2.0.6-development-only.js").vendored?
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_indexable
|
def test_indexable
|
||||||
|
|||||||
Reference in New Issue
Block a user