cjdev/jshint-mojo — pull request #53 by bobpearson (2014-06-11 18:39:33+00:00)
Title: Check if globals property found by Matcher

A JsHint conf file might not necessarily have a globals property defined. The return of find() should be checked before proceeding to parse the results of matching. The current code generates an IllegalStateException if there is no globals section and group(1) is called.

Optimally, a heavy-duty JSON parser lib (Jackson, GSON?) would be ideal, but I realize that is overkill for your project.

Thanks!