Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix namespace hooks exception in object_name_linter #633

Merged
merged 4 commits into from
Dec 2, 2020

Conversation

MichaelChirico
Copy link
Collaborator

Closes #500

I think the issue is that the old one relies on using object_name_linter_old, which appears obsolete.

I also noticed that we shouldn't have found this issue yet in the first place, since lintr:::is_base_function(".onLoad") is TRUE. Again the issue is that we strip_names the variables found in the file. So if we apply strip_names to the base_functions, that should put the comparison on equal footing.

AshesITR
AshesITR previously approved these changes Nov 30, 2020
Copy link
Collaborator

@AshesITR AshesITR left a comment

Choose a reason for hiding this comment

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

LGTM

@MichaelChirico MichaelChirico merged commit 758ee6b into master Dec 2, 2020
@MichaelChirico MichaelChirico deleted the ns-hooks-redux branch December 2, 2020 00:15
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_name_linter() complains about ns-hooks (e.g. .onLoad)
2 participants