Allow multiple filenames to be passed to Rhino CLI #313

merged 3 commits into from Oct 25, 2011

2 participants


This patch allows multiple filenames to be passed to the Rhino CLI. When checking multiple files, you end up starting up and tearing down a JVM for every single file, which adds a significant amount of time to the overall linting process. By allowing the Rhino CLI to process multiple files, you can dramatically reduce the total amount of time for processing a large number of files.

When I made this change to the CSSLint JSHint task, it went from taking 45s to check the entire source tree to 3s.

I tried to ensure backwards compatibility with the current CLI, and believe everything still works the same way. The only difference is that any value passed on the command line without an = sign is considered to be a filename.

Nicholas C. ... added some commits Sep 27, 2011
@valueof valueof merged commit 3c37587 into jshint:master Oct 25, 2011
JSHint member


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment