Open klmr opened 8 months ago
Nice find! This should be relatively easy to fix, are you interested in trying a PR? Should be a matter of including EQ_ASSIGN where only LEFT_ASSIGN is assumed now. There's also a relevant note in the wiki
Unfortunately the fix is not quite that easy for somebody who isn’t fluent in XPath, since EQ_ASSIGN
is already included:
(I tried changing it to ./EQ_ASSIGN
because I am unsure about precedence, but this didn’t fix it.)
Ah, I guess this note in the Wiki might address this:
The outermost
<expr>
may be<equal_assign>
or<expr_or_assign_or_help>
instead.
Ah, I guess this note in the Wiki might address this:
The outermost
<expr>
may be<equal_assign>
or<expr_or_assign_or_help>
instead.
yep! it's possible we missed this in this case and only looked for
Consider the following code:
running
lintr::lint()
on this file with the default linters configuration gives the following output:The
object_name_linter
warning is unexpected:f
is declared as a generic. In fact, directly callingdeclared_s3_generics()
on the XML parse tree of the above code returns"g"
where it should returnc("f", "g")
.