|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.jslint4java.ant.XmlResultFormatter
public class XmlResultFormatter
Write out JSLint problems to an XML file. This may be easily transformed into a nice report. Sample output:
<jslint>
<file name="bad.js">
<issue line="0" char="0" reason="Insufficient Llamas" evidence="var sheep;"/>
</file>
<file name="good.js"/>
</jslint>
| Constructor Summary | |
|---|---|
XmlResultFormatter()
|
|
| Method Summary | |
|---|---|
void |
begin()
Called at the start of JSLintTask execution. |
void |
end()
Write out the XML file containing the issues for all files. |
void |
output(java.lang.String name,
java.util.List<Issue> issues)
Create a "file" element, containing nested "issue" elements. |
void |
setOut(java.io.OutputStream os)
Called during initialization. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlResultFormatter()
| Method Detail |
|---|
public void begin()
ResultFormatterJSLintTask execution.
begin in interface ResultFormatterpublic void end()
end in interface ResultFormatterResultFormatter.end()
public void output(java.lang.String name,
java.util.List<Issue> issues)
output in interface ResultFormattername - The file just examined.issues - A list of issues fond with this file. May be empty.ResultFormatter.output(String, List)public void setOut(java.io.OutputStream os)
ResultFormatter
setOut in interface ResultFormatter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||