mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Exclude minified JavaScript and CSS
Those files are either external libraries or builds of the repository itself. In any case they are generated automatically and shouldn't count in the language statistics. This also simplifies some of the rules that had to exclude both minified and normal dependencies.
This commit is contained in:
		| @@ -36,15 +36,17 @@ | |||||||
| # Go dependencies | # Go dependencies | ||||||
| - Godeps/_workspace/ | - Godeps/_workspace/ | ||||||
|  |  | ||||||
| # Bootstrap minified css and js | # Exclude minified JavaScript and CSS | ||||||
| - (^|/)bootstrap([^.]*)(\.min)?\.(js|css)$ | - \.min\.(js|css)$ | ||||||
|  | - -min\.js$ | ||||||
|  |  | ||||||
|  | # Bootstrap css and js | ||||||
|  | - (^|/)bootstrap([^.]*)\.(js|css)$ | ||||||
|  |  | ||||||
| # Font Awesome | # Font Awesome | ||||||
| - font-awesome.min.css |  | ||||||
| - font-awesome.css | - font-awesome.css | ||||||
|  |  | ||||||
| # Foundation css | # Foundation css | ||||||
| - foundation.min.css |  | ||||||
| - foundation.css | - foundation.css | ||||||
|  |  | ||||||
| # Normalize.css | # Normalize.css | ||||||
| @@ -56,7 +58,6 @@ | |||||||
|  |  | ||||||
| # Animate.css | # Animate.css | ||||||
| - animate.css | - animate.css | ||||||
| - animate.min.css |  | ||||||
|  |  | ||||||
| # Vendored dependencies | # Vendored dependencies | ||||||
| - third[-_]?party/ | - third[-_]?party/ | ||||||
| @@ -73,12 +74,12 @@ | |||||||
| ## Commonly Bundled JavaScript frameworks ## | ## Commonly Bundled JavaScript frameworks ## | ||||||
|  |  | ||||||
| # jQuery | # jQuery | ||||||
| - (^|/)jquery([^.]*)(\.min)?\.js$ | - (^|/)jquery([^.]*)\.js$ | ||||||
| - (^|/)jquery\-\d\.\d+(\.\d+)?(\.min)?\.js$ | - (^|/)jquery\-\d\.\d+(\.\d+)?\.js$ | ||||||
|  |  | ||||||
| # jQuery UI | # jQuery UI | ||||||
| - (^|/)jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?(\.min)?\.(js|css)$ | - (^|/)jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?\.(js|css)$ | ||||||
| - (^|/)jquery\.(ui|effects)\.([^.]*)(\.min)?\.(js|css)$ | - (^|/)jquery\.(ui|effects)\.([^.]*)\.(js|css)$ | ||||||
|  |  | ||||||
| # Prototype | # Prototype | ||||||
| - (^|/)prototype(.*)\.js$ | - (^|/)prototype(.*)\.js$ | ||||||
| @@ -116,21 +117,20 @@ | |||||||
| - (^|/)shLegacy\.js$ | - (^|/)shLegacy\.js$ | ||||||
|  |  | ||||||
| # AngularJS | # AngularJS | ||||||
| - (^|/)angular([^.]*)(\.min)?\.js$ | - (^|/)angular([^.]*)\.js$ | ||||||
|  |  | ||||||
| # D3.js | # D3.js | ||||||
| - (^|\/)d3(\.v\d+)?([^.]*)(\.min)?\.js$ | - (^|\/)d3(\.v\d+)?([^.]*)\.js$ | ||||||
|  |  | ||||||
| # React | # React | ||||||
| - (^|/)react(-[^.]*)?(\.min)?\.js$ | - (^|/)react(-[^.]*)?\.js$ | ||||||
|  |  | ||||||
| # Modernizr | # Modernizr | ||||||
| - (^|/)modernizr\-\d\.\d+(\.\d+)?(\.min)?\.js$ | - (^|/)modernizr\-\d\.\d+(\.\d+)?\.js$ | ||||||
| - (^|/)modernizr\.custom\.\d+\.js$ | - (^|/)modernizr\.custom\.\d+\.js$ | ||||||
|  |  | ||||||
| # Knockout | # Knockout | ||||||
| - (^|/)knockout-(\d+\.){3}(debug\.)?js$ | - (^|/)knockout-(\d+\.){3}(debug\.)?js$ | ||||||
| - knockout-min.js |  | ||||||
|  |  | ||||||
| ## Python ## | ## Python ## | ||||||
|  |  | ||||||
| @@ -168,8 +168,8 @@ | |||||||
| - \.intellisense\.js$ | - \.intellisense\.js$ | ||||||
|  |  | ||||||
| # jQuery validation plugin (MS bundles this with asp.net mvc) | # jQuery validation plugin (MS bundles this with asp.net mvc) | ||||||
| - (^|/)jquery([^.]*)\.validate(\.unobtrusive)?(\.min)?\.js$ | - (^|/)jquery([^.]*)\.validate(\.unobtrusive)?\.js$ | ||||||
| - (^|/)jquery([^.]*)\.unobtrusive\-ajax(\.min)?\.js$ | - (^|/)jquery([^.]*)\.unobtrusive\-ajax\.js$ | ||||||
|  |  | ||||||
| # Microsoft Ajax | # Microsoft Ajax | ||||||
| - (^|/)[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$ | - (^|/)[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$ | ||||||
| @@ -196,7 +196,7 @@ | |||||||
| - (^|/)extjs/welcome/ | - (^|/)extjs/welcome/ | ||||||
|  |  | ||||||
| # Html5shiv | # Html5shiv | ||||||
| - (^|/)html5shiv(\.min)?\.js$ | - (^|/)html5shiv\.js$ | ||||||
|  |  | ||||||
| # Samples folders | # Samples folders | ||||||
| - ^[Ss]amples/ | - ^[Ss]amples/ | ||||||
| @@ -215,8 +215,8 @@ | |||||||
| - ^[Tt]est/fixtures/ | - ^[Tt]est/fixtures/ | ||||||
|  |  | ||||||
| # PhoneGap/Cordova | # PhoneGap/Cordova | ||||||
| - (^|/)cordova([^.]*)(\.min)?\.js$ | - (^|/)cordova([^.]*)\.js$ | ||||||
| - (^|/)cordova\-\d\.\d(\.\d)?(\.min)?\.js$ | - (^|/)cordova\-\d\.\d(\.\d)?\.js$ | ||||||
|  |  | ||||||
| # Foundation js | # Foundation js | ||||||
| - foundation(\..*)?\.js$ | - foundation(\..*)?\.js$ | ||||||
| @@ -236,7 +236,6 @@ | |||||||
|  |  | ||||||
| # Octicons | # Octicons | ||||||
| - octicons.css | - octicons.css | ||||||
| - octicons.min.css |  | ||||||
| - sprockets-octicons.scss | - sprockets-octicons.scss | ||||||
|  |  | ||||||
| # Typesafe Activator | # Typesafe Activator | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user