Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@MichaelChirico
Copy link
Collaborator

Closes #1081

@MichaelChirico MichaelChirico added the internals Issues related to inner workings of lintr, i.e., not user-visible label Apr 16, 2022
setmethod_assignment_functions <-
xml2::xml_find_all(xml, "expr[expr[SYMBOL_FUNCTION_CALL/text()='setMethod']]/expr[3]")
direct_assignment_functions <-
xml2::xml_find_all(xml, "//*[((self::expr and LEFT_ASSIGN) or (self::expr_or_assign_or_help and EQ_ASSIGN)) and expr[2][FUNCTION]]/expr[2]")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could also consider combining the two xpaths here to avoid calling xml_find_all() twice, but for now I left it for readability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internals Issues related to inner workings of lintr, i.e., not user-visible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

object_usage_linter doesn't catch assignments with =

3 participants