Skip to content

Update the documentation of ignore #3580

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

Merged
merged 2 commits into from
May 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2325,7 +2325,8 @@ Copyright 2018 The Rust Project Developers.`, etc.:

## `ignore`

Skip formatting the specified files and directories.
Skip formatting files and directories that match the specified pattern.
The pattern format is the same as [.gitignore](https://git-scm.com/docs/gitignore#_pattern_format).

- **Default value**: format every file
- **Possible values**: See an example below
Expand All @@ -2350,6 +2351,12 @@ ignore = [
]
```

If you want to ignore every file under the directory where you put your rustfmt.toml:

```toml
ignore = ["/"]
```

## `edition`

Specifies which edition is used by the parser.
Expand Down