mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Add wiki link with error explaination to failure message. Useful for viewers that show the message, but not the source like the gitlab merge request viewer.
6
JUnit.md
6
JUnit.md
@@ -23,8 +23,8 @@ Here it is with the XSLT applied using `xmlstarlet`:
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<testsuite tests="2" failures="2">
|
<testsuite tests="2" failures="2">
|
||||||
<testcase classname="foo.bash" name="foo.bash">
|
<testcase classname="foo.bash" name="foo.bash">
|
||||||
<failure type="ShellCheck.SC2148">Line 1: Tips depend on target shell and yours is unknown. Add a shebang.</failure>
|
<failure type="ShellCheck.SC2148">Line 1: Tips depend on target shell and yours is unknown. Add a shebang. See https://www.shellcheck.net/wiki/SC2148</failure>
|
||||||
<failure type="ShellCheck.SC2086">Line 1: Double quote to prevent globbing and word splitting.</failure>
|
<failure type="ShellCheck.SC2086">Line 1: Double quote to prevent globbing and word splitting. See https://www.shellcheck.net/wiki/SC2086</failure>
|
||||||
</testcase>
|
</testcase>
|
||||||
<testcase classname="bar.bash" name="bar.bash">
|
<testcase classname="bar.bash" name="bar.bash">
|
||||||
</testcase>
|
</testcase>
|
||||||
@@ -71,6 +71,8 @@ Here it is with the XSLT applied using `xmlstarlet`:
|
|||||||
<xsl:value-of select="@line" />
|
<xsl:value-of select="@line" />
|
||||||
<xsl:text>: </xsl:text>
|
<xsl:text>: </xsl:text>
|
||||||
<xsl:value-of select="@message" />
|
<xsl:value-of select="@message" />
|
||||||
|
<xsl:text> - See https://www.shellcheck.net/wiki/</xsl:text>
|
||||||
|
<xsl:value-of select="substring(@source, '12')" />
|
||||||
</failure>
|
</failure>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
Reference in New Issue
Block a user