cosmetic

meleu
2022-05-25 13:40:00 -03:00
parent 5cb1586444
commit 99d99b78e8

@@ -1,6 +1,6 @@
## Getting JUnit XML from ShellCheck
ShellCheck does not have a JUnit XML formatter, but here you can find `checkstyle2junit.xslt`, an XSLT program that converts from CheckStyle's XML output to JUnit's XML.
ShellCheck does not have a JUnit XML formatter, but [at the end of this article](#checkstyle2junitxslt) you can find `checkstyle2junit.xslt`, an XSLT program that converts from CheckStyle's XML output to JUnit's XML.
Here's ShellCheck's (CheckStyle-compatible) XML output:
@@ -34,7 +34,8 @@ $ shellcheck -f checkstyle foo.bash bar.bash | xmlstarlet tr checkstyle2junit.xs
</testsuite>
```
`checkstyle2junit.xslt`:
### `checkstyle2junit.xslt`
```xslt
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">