Skip to content

fix namespace hooks exception in object_name_linter - #633

Merged
MichaelChirico merged 4 commits into
masterfrom
ns-hooks-redux
Dec 2, 2020
Merged

MichaelChirico merged 4 commits into
masterfrom
ns-hooks-redux

Conversation

@MichaelChirico

Copy link
Copy Markdown
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

@AshesITR AshesITR left a comment

Copy link
Copy Markdown
Collaborator

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