Skip to content

[Developer Issue]: Set up Air in VS Code and remove the instructions for using {styler} #1027

@Bai-Li-NOAA

Description

@Bai-Li-NOAA

Description

@awilnoaa and I noticed that {styler} does not indent function argument names with a single indent (two spaces), it uses two indents instead (see comments here). Air formats the code correctly according to the {tidyverse} style guide.

We could consider setting up Air in VS Code by modifying .vscode/settings.json following the instructions here. This would allow automatic formatting on the fly. We need to use the command Air: Initialize Workspace Folder to format all R files at once. With this setup, we could remove the instructions for using styler::style_pkg() from the codebase (e.g., CONTRIBUTING.md).

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: triage_neededThis is not approved for this milestone, do not work on it yet

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions