Skip to content

Commit

Permalink
#10 empty with more details
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 19, 2024
1 parent 22c53c0 commit a25068e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/org/eolang/lints/errors/empty-object.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SOFTWARE.
<xsl:output encoding="UTF-8" method="xml"/>
<xsl:template match="/">
<defects>
<xsl:for-each select="//o[@abstract and count(o)=0]">
<xsl:for-each select="//o[@abstract and not(o)]">
<xsl:element name="defect">
<xsl:attribute name="check">
<xsl:text>empty-object</xsl:text>
Expand All @@ -41,7 +41,7 @@ SOFTWARE.
<xsl:text>"</xsl:text>
<xsl:value-of select="@name"/>
<xsl:text>" </xsl:text>
<xsl:text>is empty</xsl:text>
<xsl:text>is empty, it doesn't have any attributes, neither void nor attached</xsl:text>
</xsl:element>
</xsl:for-each>
</defects>
Expand Down

0 comments on commit a25068e

Please sign in to comment.