I am often writing Shiny modules and following the suggested naming convention for a module called e. g. launcher I would name the modules launcherUI() and launcherServer() according to Mastering Shiny.
This of course triggers the object_name_linter and suggests "snake_case". This is totally fine for the rest of my package as I want to stick to snake case convention for all other functions.
Is there a way to whitelist specific function names during linting based on their name? Currently I use # nolint directly in the code, but I would prefer to have a configuration option where I could specify function names that are allowed. (like in the example above)
I am often writing Shiny modules and following the suggested naming convention for a module called e. g. launcher I would name the modules
launcherUI()andlauncherServer()according to Mastering Shiny.This of course triggers the
object_name_linterand suggests "snake_case". This is totally fine for the rest of my package as I want to stick to snake case convention for all other functions.Is there a way to whitelist specific function names during linting based on their name? Currently I use
# nolintdirectly in the code, but I would prefer to have a configuration option where I could specify function names that are allowed. (like in the example above)