-
Notifications
You must be signed in to change notification settings - Fork 186
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
object_name_linter()
complains about ns-hooks (e.g. .onLoad
)
#500
Comments
Thanks for reporting this. The following function names are special in this regard: .onLoad(libname, pkgname)
.onAttach(libname, pkgname)
.onUnload(libpath)
.onDetach(libpath)
.Last.lib(libpath) Additionally, I think a good place to add that would be in a new @jimhester What do you think about this? |
Also remove relevant # nolint in lintrs own .onLoad. fixes #500
) * Allow .onLoad and other special functions regardless of name style Also remove relevant # nolint in lintrs own .onLoad. fixes #500 * add a note about source for maintenance * Clarify NEWS Co-authored-by: Michael Chirico <michaelchirico4@gmail.com>
Yeah, that sounds like a good plan to special case these names. |
Reprex:
R's hooks for namespace events are CamelCase and you can't change that AFAIK, so lintr complaining about
is pointless.
The text was updated successfully, but these errors were encountered: