Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Allow multiple filenames to be passed to Rhino CLI #313
Conversation
Sep 27, 2011
added some commits
added a commit
that referenced
this pull request
Oct 25, 2011
valueof
merged commit 3c37587
into
jshint:master
Oct 25, 2011
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
Thanks! |
added a commit
to jugglinmike/jshint
that referenced
this pull request
Oct 21, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nzakas commentedOct 19, 2011
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.