Skip to content

storing styler config in a config file / DESCRIPTION / other  #319

@lorenzwalthert

Description

@lorenzwalthert

Repo may include a file fallbacks.yaml that contains a configuration for styling, like this:

scope: tokens
strict: True
indent_by: 2
reindention: !expr styler::tidyverse_reindention()
math_token_spacing: !expr styler::tidyverse_math_token_spacing()
filetype: !expr c("r", "rmd")

When styler::style_pkg() is run, such a config file is looked for in the root directory and if one is found, the options specified there should be given precedence over what is specified in the function call. Or something like that. WIP @ https://github.com/lorenzwalthert/styler/tree/config

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions