Skip to content

Commit

Permalink
feat(objectionary#133): return 'alias-too-long' back
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Dec 13, 2024
1 parent 26e8f05 commit d628795
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/main/resources/org/eolang/lints/aliases/alias-too-long.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,17 @@ SOFTWARE.
<defects>
<xsl:for-each select="/program/metas/meta[head='alias']">
<xsl:if test="count(part) &gt; 2">
<defect line="{if (@line) then @line else '0'}" severity="error">
The alias has too many parts: "<xsl:value-of select="tail"/>"
</defect>
<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 alias has too many parts: "</xsl:text>
<xsl:value-of select="tail"/>
<xsl:text>"</xsl:text>
</xsl:element>
</xsl:if>
</xsl:for-each>
</defects>
Expand Down

0 comments on commit d628795

Please sign in to comment.