Skip to content

Commit

Permalink
#66 less checks
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 29, 2024
1 parent bd86662 commit c8976dc
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions src/main/resources/org/eolang/lints/refs/broken-ref.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -26,34 +26,6 @@ SOFTWARE.
<xsl:output encoding="UTF-8" method="xml"/>
<xsl:template match="/">
<defects>
<xsl:for-each select="//o[@ref and @ref!='' and not(matches(@ref, '^[0-9]+(\.[0-9]+)*$'))]">
<xsl:element name="defect">
<xsl:attribute name="line">
<xsl:value-of select="if (@line) then @line else '0'"/>
</xsl:attribute>
<xsl:attribute name="severity">
<xsl:text>error</xsl:text>
</xsl:attribute>
<xsl:text>The ref at "</xsl:text>
<xsl:value-of select="@base"/>
<xsl:text>" is wrongly formatted: "</xsl:text>
<xsl:value-of select="@ref"/>
<xsl:text>"</xsl:text>
</xsl:element>
</xsl:for-each>
<xsl:for-each select="//o[@ref and @ref='']">
<xsl:element name="defect">
<xsl:attribute name="line">
<xsl:value-of select="if (@line) then @line else '0'"/>
</xsl:attribute>
<xsl:attribute name="severity">
<xsl:text>error</xsl:text>
</xsl:attribute>
<xsl:text>The ref at "</xsl:text>
<xsl:value-of select="@base"/>
<xsl:text>" is empty</xsl:text>
</xsl:element>
</xsl:for-each>
<xsl:for-each select="//o[@ref and @base]">
<xsl:variable name="o" select="."/>
<xsl:if test="not(//o[@name=$o/@base and @line=$o/@ref])">
Expand Down

0 comments on commit c8976dc

Please sign in to comment.