Skip to content

Ignore certain file types / directories in style_file() #656

Closed
@pat-s

Description

@pat-s

I would like {styler} to either

  • ignore certain file types (in my case .yml files).
  • certain directories (in my case inst/).

I know this exists in style_pkg(exclude_dirs = ). However, when invoking {styler} via {precommit}, style_file() is called which does not have this option.

This might be a bit tricky since style_file is explicitly called on a path by {precommit} and hence some preprocessing before calling it might need to happen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions