I am using JavaScript Lint for checking JavaScript source code. It’s working fine with recursive analysis showing results in command window, but I would like to integrate JavaScript Lint results to Hudson (running JavaScript Lint from batch file).
How can I get log of JavaScript Lint saved to XML?
There are output format configuration in JavaScript Lint, but those customize format of error message.
Thank you in advance,
Andrey
I have found the solution for applying Jslint in Hudson. Instead of JavaScript Lint there is jslint4java which reports in XML format.
Here is step by step instructions:
Prepare Ant script which prepares list of all JS files in project recursively, example:
Apply Ant script in Hudson for a job and select Jslint output file name (jslint.xml) in ‘Report Violations’
Credits: Here is useful post which I found on this topic.