Skip to content

Adding shiny module names to custom whitelist #822

Closed
@schaffstein

Description

@schaffstein

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions