Skip to content

fix object_usage_linter() XPath for assign() and setMethod() - #1323

Merged
AshesITR merged 4 commits into
mainfrom
fix/1322-object_usage-assign
May 30, 2022
Merged

AshesITR merged 4 commits into
mainfrom
fix/1322-object_usage-assign

Conversation

@AshesITR

Copy link
Copy Markdown
Collaborator

fixes #1322

@MichaelChirico

Copy link
Copy Markdown
Collaborator

tests?

@AshesITR

Copy link
Copy Markdown
Collaborator Author

will add.

@AshesITR

Copy link
Copy Markdown
Collaborator Author

@MichaelChirico good call. Turns out neither assign() nor setMethod() were tested before and setMethod() was dysfunctional because it takes the function as the third positional argument and not the second.

@AshesITR

Copy link
Copy Markdown
Collaborator Author

NB: add info to #834 about the fix to setMethods() - that was not working in 2.0.1 either.

@AshesITR
AshesITR merged commit 850ec5e into main May 30, 2022
@AshesITR
AshesITR deleted the fix/1322-object_usage-assign branch May 30, 2022 16:27
@MichaelChirico MichaelChirico mentioned this pull request May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

object_usage_linter() tries too many assignments

2 participants