Skip to content

Commit bee758f

Browse files
committed
feat(#107): clean grammar
1 parent 3a06fc0 commit bee758f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/resources/org/eolang/lints/misc/wrong-sprintf-arguments.xsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ SOFTWARE.
8080
<xsl:attribute name="severity">
8181
<xsl:text>warning</xsl:text>
8282
</xsl:attribute>
83-
<xsl:text>The sprintf object has the wrong number of arguments: </xsl:text>
83+
<xsl:text>According to the formatting template of the "sprintf" object, a tuple of </xsl:text>
8484
<xsl:value-of select="$declared"/>
85-
<xsl:text> in the placeholder, but </xsl:text>
85+
<xsl:text> elements is expected as the second argument of it, while a tuple of </xsl:text>
8686
<xsl:value-of select="$used"/>
87-
<xsl:text> are passed</xsl:text>
87+
<xsl:text> element(s) is provided</xsl:text>
8888
</defect>
8989
</xsl:if>
9090
</xsl:for-each>

src/test/java/org/eolang/lints/GrammarMatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public boolean matches(final Object obj) {
6464
for (final Rule rule : tool.getAllActiveRules()) {
6565
if (rule instanceof SpellingCheckRule) {
6666
((SpellingCheckRule) rule).addIgnoreTokens(
67-
Arrays.asList("decoratee", "eolang", "sprintf")
67+
Arrays.asList("decoratee", "eolang")
6868
);
6969
}
7070
}

0 commit comments

Comments
 (0)