You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
object_name_linter() complains about ns-hooks (e.g. .onLoad) #500
Activity
AshesITR commentedon Sep 1, 2020
Thanks for reporting this.
The following function names are special in this regard:
Additionally,
.Rprofilefiles may also define.Firstand.Last.I think a good place to add that would be in a new
is_special_function()for use at https://github.com/jimhester/lintr/blob/83a73fc8698bcd2dbc82c9a12d2b4e929a811a73/R/object_name_linters.R#L129-L133@jimhester What do you think about this?
Allow .onLoad and other special functions regardless of name style
Allow .onLoad and other special functions regardless of name style (#614
jimhester commentedon Nov 30, 2020
Yeah, that sounds like a good plan to special case these names.