Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding includes and excludes features #13

Closed
Rizary opened this issue Jan 26, 2021 · 1 comment · Fixed by #25
Closed

Adding includes and excludes features #13

Rizary opened this issue Jan 26, 2021 · 1 comment · Fixed by #25
Assignees
Labels
enhancement New feature or request

Comments

@Rizary
Copy link
Contributor

Rizary commented Jan 26, 2021

According to the initial design, prjfmt.toml has includes and excludes features:

[formatters.cargo]
files = [ "*.rs" ]
includes = [ "rust/" ]
excludes = []
command = "cargo"
args = [ "fmt", "--" ]

The behavior on includes is that all files selected should only be in the includes location. excludes is the opposite, which means all files selected should avoid the excludes location.

includes and excludes cannot contain the same values.

@Rizary Rizary self-assigned this Jan 26, 2021
@zimbatm
Copy link
Member

zimbatm commented Jan 26, 2021

Make sure to update the README.md in the PR so it's in sync

@zimbatm zimbatm added the enhancement New feature or request label Jan 26, 2021
basile-henry added a commit that referenced this issue Jan 28, 2021
resolves #13: Includes and excludes
resolves #24: Follows .gitgnore directives
brianmcgee added a commit that referenced this issue May 13, 2024
Stacked on top of #11

Co-authored-by: Brian McGee <[email protected]>
Reviewed-on: https://git.numtide.com/numtide/treefmt/pulls/13
Co-authored-by: zimbatm <[email protected]>
Co-committed-by: zimbatm <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants