bolinfest/plovr — pull request #27 by rgpower (2014-09-03 23:34:00+00:00)
Title: Support excluding of warnings via regex pattern

Dear @bolinfest,

Please accept this re-submit of [pull request #20](https://github.com/bolinfest/plovr/pull/20) which includes the code-style fixes you asked for and rebased off your most recent master branch.

Here's the the summary of the feature provided by this pull request:

I believe this will allow a close to [Issue 1: Make it possible to suppress warnings from individual JS file](https://code.google.com/p/plovr/issues/detail?id=1).

Example usage
```c
# plovr.cfg
{
"warning-exclude-paths": [
"^/closure/goog/testing/stacktrace.js",
"^/closure/goog/iter/iter.js",
"^/closure/goog/labs/promise/promise.js",
"^/closure/goog/labs/promise/thenable.js",
# transitive dependencies seem to resolved more fully...
".*?/closure/goog/mochikit/async/deferred.js"
],
}
```
In the interests of other warning suppression, this branch also updates the Config.getJsContentType method to return `application/javascript` instead of `text/javascript` since the latter seems to upset HtmlUnit:

```syslog
WARNING: Obsolete content type encountered: 'text/javascript'
```

Many thanks for considering this pull request, and for plovr itself.

Sincerely,
Rick Power